Jump to content
papadrellbo

tool to find difference in dlls in c#

Recommended Posts

papadrellbo

Hello bros,

 

which tool is the best to compare two dlls which are written in c#?

i need the difference from both...

 

Some idea?

i can't any plugin or function in dnspy and don't know a coder tool which is possible for it.

 

Thanks a lot.

Share this post


Link to post
Share on other sites
tonyweb

The first thing that comes to my mind ...

... if you can decompile them (dnSpy, Reflector, ...), just save the source for both and then compare the actual sources.

 

Regards,

Tony

  • Like 1

Share this post


Link to post
Share on other sites
igorca

i have,but it private tool,if needed send me you files and i give you compare

Share this post


Link to post
Share on other sites
abhi93696

@igorca just a guess.... :D

 

Are you using beyond compare to compare dlls?? 

Share this post


Link to post
Share on other sites
papadrellbo

i konw beyond compare..does it give my the lines... i want to know which lines...

Share this post


Link to post
Share on other sites
igorca
55 minutes ago, abhi93696 said:

Are you using beyond compare

its private tool?

Share this post


Link to post
Share on other sites
neil
1 hour ago, igorca said:

its private tool?

Is it a python script?

 

Share this post


Link to post
Share on other sites
Kjacky

use dup2 to compare 

  • Upvote 1

Share this post


Link to post
Share on other sites
papadrellbo

thanks for your answers. dup2 and others are good.

but i want to see the difference lines in c#...thats my idea. i want to learn from a crack and see all lines from original and patched to compare directly.

Share this post


Link to post
Share on other sites
papadrellbo

hello again.

is there a programm which compare two dlls and make patch?

I think dup2 needs andresses?

 

Some ideas?

 

Share this post


Link to post
Share on other sites
soft4u

hi

no dup2 is very good to compare, but if this file have differnt size, it's will not work ;-(

 

if you have fore example the original and pached file, compare with dup (search and replease) than maybe you can use this for the updated file, i  do this many times

 

i forgot, ....

 

fc /b original.dll patched.dll >myresult.txt

fc windows file filecompare

/b unse binary

> means write a file what ever you want....

myresult.txt is the name of file Iuse always 1 or x......

 

best regards

Edited by soft4u

Share this post


Link to post
Share on other sites
papadrellbo

okay i will test it. very thanks for your posting and your idea.

Share this post


Link to post
Share on other sites
GameMaster Greatee

I think advanced hex editors like 010 Editor & Hex Workshop have this feature built in. BTW they can only find differences byte-wise and aren't targeted at a specific language.

 

You can mark the va's in each file and then see what's the corresponding code in dnSpy (has a built-in hex-viewer)

  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Guidelines