c# - Update reference without decompiling source? -
i'm searching way change referenced dll in .net exe.
why? have crackme, , crack it, i'm not allowed use reflector modify (would easy - am allowed read source). must way. (that's challenge of crackme)
problem source obfuscated control flow , i'm not allowed use automatic tool solve it, doing manually long , painful.
the crackme uses open-source library embedded work, download source of library, modify "dump" code (because crackme uses api , gives serial api, modify dump), put in crackme, run , key in desktop.
it should (but not mandatory) done ildasm.
so, question is: is there way "update" referenced dll own?
you can disassemble assembly il-code using ildasm. can use following command:
ildasm.exe <yourassembly> /output:yourassemblyilcode.il
now can change assembly reference (version , public key token) in il-code. references external assembly in il code looks this:
.assembly extern system { .publickeytoken = (b7 7a 5c 56 19 34 e0 89 ) .ver 2:0:0:0 }
then can assemble corrected il-file .net assembly using ilasm.exe
Comments
Post a Comment