Jump to content

Bindiffing for Nyerguds


peterthepigeon

Recommended Posts

I started to rewrite some of his patches in nasm source files, but it's a pain in the ass and takes ages to port :D Plan is to jump out and run his code in newly added sections to keep it clean and being able to modify it with ease. I made cdecl -> watcall wrapper to be able to rewrite stuff in C too

 

http://funkyfr3sh.cncnet.org/files/temp/cnc95-v107.exe

Link to comment
Share on other sites

My disasm engine spits out mnemonics and the works.  I'm tempted to do likewise for his executable.  I'd copy the original code to the new section and set a check(config parsed at startup or new map) to execute original or jump over to the patched or nopped code, then back to the regular execution.  Clean, simple and efficient.

 

As for nasm files, meh, I'd just write my own mini assembler ;)

Link to comment
Share on other sites

The only time I've ever really used patches like these is to create cheats.

 

So, what are you guys on about? Do you really need to "patch" your little hearts out? IMHO this should be considered cheating.

 

Now people will think a "patch" cannot be bad. Well, yeah, it can be pretty bad. It usually gives the guy who has the "patch" significant advantages.

 

 

CreateFile on both files

ReadFile on both

 

[...]

 

iterate until through ( *pbOldCodeSection != *pbPatchedCodesection )

A lot of WinAPi and hungarian notation, eh? Typical CnC hacker...

Link to comment
Share on other sites

The only time I've ever really used patches like these is to create cheats.

 

So, what are you guys on about? Do you really need to "patch" your little hearts out? IMHO this should be considered cheating.

 

Now people will think a "patch" cannot be bad. Well, yeah, it can be pretty bad. It usually gives the guy who has the "patch" significant advantages.

 

 

CreateFile on both files

ReadFile on both

 

[...]

 

iterate until through ( *pbOldCodeSection != *pbPatchedCodesection )

A lot of WinAPi and hungarian notation, eh? Typical CnC hacker...

 

Grow up.  I hacked FPS games long before I took a whack at CnC.

 

It's easy to determine whether a patch gives an advantage or not, just have a whitelist.  Ergo, what are you talking about.

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...