{"id":27429713,"url":"https://github.com/gerbilsoft/hack-detection","last_synced_at":"2025-10-25T04:38:19.506Z","repository":{"id":108734389,"uuid":"96591720","full_name":"GerbilSoft/hack-detection","owner":"GerbilSoft","description":"*** HACK DETECTION ***","archived":false,"fork":false,"pushed_at":"2017-07-08T04:19:07.000Z","size":61,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-26T02:02:28.073Z","etag":null,"topics":["hack-detection","rom-hacking"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GerbilSoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-07-08T02:51:21.000Z","updated_at":"2025-08-10T18:49:14.000Z","dependencies_parsed_at":"2023-03-31T11:22:03.532Z","dependency_job_id":null,"html_url":"https://github.com/GerbilSoft/hack-detection","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/GerbilSoft/hack-detection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerbilSoft%2Fhack-detection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerbilSoft%2Fhack-detection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerbilSoft%2Fhack-detection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerbilSoft%2Fhack-detection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GerbilSoft","download_url":"https://codeload.github.com/GerbilSoft/hack-detection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GerbilSoft%2Fhack-detection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280906490,"owners_count":26411408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hack-detection","rom-hacking"],"created_at":"2025-04-14T14:29:11.989Z","updated_at":"2025-10-25T04:38:19.479Z","avatar_url":"https://github.com/GerbilSoft.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# *** HACK DETECTION ***\n\nThis is a simple command line utility that can check if a ROM hack appears\nto be a hex-edited binary hack instead of a hack based on a disassembly.\nIt works by checking how many bytes in the two ROMs match and how many\ndiffer. If more than 50% of the bytes are identical, it is assumed to be\na hex-edited binary hack.\n\nIf the source ROM has extra padding at the end (due to ROM chips being\npowers-of-two sizes), the padding is ignored. Only the used area is checked.\n\nIf the hacked ROM is smaller than the source ROM, then anything past the\nhacked ROM's size in the source ROM is ignored.\n\n## How to use:\n\n```\n$ hack-detection [Source ROM] [Hacked ROM]\n```\n\n* Source ROM: The original ROM, e.g. \"Sonic 1 Rev00.gen\".\n* Hacked ROM: The hacked ROM, e.g. \"Sonic 1337.gen\".\n\n## Screenshots\n\nThese examples use Sonic 1 Rev00 as the source ROM and\n[Sonic 1337](https://info.sonicretro.org/Sonic_1337) as the hacked ROM.\n\n![hack-detection on Windows XP](screenshots/hd-winxp.png)\n\n![hack-detection on xterm (KDE5)](screenshots/hd-xterm.png)\n\n## How to compile\n\n* On Linux or other Unix-like systems: `./build-gcc.sh`\n* On Windows, using MSVC (2010 or later): Run `build-msvc.bat` from an MSVC command prompt.\n\nTested on the following platforms:\n\n* Gentoo Linux (amd64)\n* OpenBSD (amd64)\n* Windows XP (i386)\n* Windows 7 (amd64)\n\n## License\n\nhack-detection is licensed under the GNU AGPLv3. See [LICENSE](LICENSE)\nfor more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerbilsoft%2Fhack-detection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgerbilsoft%2Fhack-detection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerbilsoft%2Fhack-detection/lists"}