Recompiling a VB.NET application -
so have vb.net application. uses sql server database, "hard-codes" ip address of database inside compiled code.
the server ip has changed , can't start software anymore. also, can't change ip address of server (another server using same ip , can't changed).
it 2 exe files no external dlls or else. opened both of them in hex editor, tried search ascii of ip address, couldn't find it, tried hex search no result.
then used .net reflector (http://www.red-gate.com/products/reflector/), , exported code. see ip address located: in form2 string variable named "strmyconnectionstring". however, recompiling files exported reflector didn't work me: got 100 error , alot of warnings; obviously, forms missing codes decompiled. has 100 forms, , hard redesign them (if considered solution - not sure).
how suggest solving this? need change ip can't use software anymore!
thanks!
if have .net exe don't have source code for, you're going need brush on ildasm , ilasm. use ildasm covert .exe microsoft's intermediate language. change code there - it'll in text format, il code more assembly language 3gl. once you've changed il, can recompile .exe ilasm. yucky, functional , best choice without original source.
Comments
Post a Comment