Sonic and Sega Retro Message Board: *** HACK DETECTION *** - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Page 1 of 1
    Locked Forum

*** HACK DETECTION *** a ROM hack checker

#1 User is offline GerbilSoft 

Posted 07 July 2017 - 10:24 PM

  • RickRotate'd.
  • Posts: 2844
  • Joined: 11-January 03
  • Gender:Male
  • Location:USA
  • Project:Gens/GS
  • Wiki edits:5,000 + one spin
Introducing *** HACK DETECTION ***, a quick and dirty program that checks if a ROM is a hex-edited binary hack of another ROM instead of e.g. a hack based on a disassembly.

Posted Image

I wrote this because I was getting annoyed by all the poor-quality hacks that were being uploaded to the Wiki.

Basically, what it does is it compares how many bytes match in the source ROM and the hacked ROM. Hacks based on disassemblies have things shifted around everywhere, whereas hex-edited hacks don't. If more than 50% of the hacked ROM matches the source ROM, it's assumed to be a hex-edited hack, and the *** HACK DETECTION *** banner is displayed.

EDIT: My MinGW-w64 installation is apparently broken, so the 1.0 binary for Windows didn't work. The 1.0.1 binary is compiled with MSVC 2010 SP1 and should work correctly.

EDIT 2: 1.0.2 now shows "COPY DETECTION" if the two ROMs have identical contents, ignoring padding.
This post has been edited by GerbilSoft: 07 July 2017 - 11:23 PM
Reason for edit: 1.0.2 COPY DETECTION

Page 1 of 1
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users