don't click here

*** HACK DETECTION ***

Discussion in 'Engineering & Reverse Engineering' started by GerbilSoft, Jul 8, 2017.

  1. GerbilSoft

    GerbilSoft

    RickRotate'd. Administrator
    2,971
    76
    28
    USA
    rom-properties
    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.

    [​IMG]

    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.