{"id":16170280,"url":"https://github.com/magnuschase03/gopatch","last_synced_at":"2025-04-07T07:28:46.402Z","repository":{"id":257120301,"uuid":"857378077","full_name":"MagnusChase03/GoPatch","owner":"MagnusChase03","description":"Tool to easily patch binary files.","archived":false,"fork":false,"pushed_at":"2024-09-14T13:54:35.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T11:34:29.658Z","etag":null,"topics":["binary","go","patcher","patching"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MagnusChase03.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}},"created_at":"2024-09-14T13:54:02.000Z","updated_at":"2024-09-14T13:55:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"25f52114-019d-4a5b-ad2e-c1202ddf77a2","html_url":"https://github.com/MagnusChase03/GoPatch","commit_stats":null,"previous_names":["magnuschase03/gopatch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MagnusChase03%2FGoPatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MagnusChase03%2FGoPatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MagnusChase03%2FGoPatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MagnusChase03%2FGoPatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MagnusChase03","download_url":"https://codeload.github.com/MagnusChase03/GoPatch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247611076,"owners_count":20966463,"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","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":["binary","go","patcher","patching"],"created_at":"2024-10-10T03:18:07.319Z","updated_at":"2025-04-07T07:28:46.380Z","avatar_url":"https://github.com/MagnusChase03.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoPatch\n\n*Tool to easily patch binary files.*\n\n## Build\n\nTo build the tool:\n\n```\n$ go build main.go\n$ strip main\n$ mv main /usr/bin/gopatch\n```\n\n## Usage\n\nTo patch a binary:\n\n```\n$ gopatch \u003cbinary\u003e \u003cpatchfile\u003e\n```\n\n## Patchfile\n\nA patchfile should follow the below syntax:\n\n```\n1 \u003caddress\u003e:\n2 0x\u003cbytes\u003e\n```\n\nExample:\n\n```\n1 0x12345678:\n2 0x5058\n3 0xe9\n4\n5 0x23456789:\n6 0x45\n```\n\nThis patches will happen at specified binary addresses, and the bytes will be\nwritten in order.\n\n## Example\n\nHere is an example of gopatch being used:\n\n`patch.txt`\n```\n1 0x0:\n2 0x67\n3 0x6869\n```\n\n```\n$ xxd binary\n00000000: 6162 630a 6465 660a                      abc.def.\n\n$ gopatch binary patch.txt\n\n$ xxd binary\n00000000: 6768 690a 6465 660a                      ghi.def.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagnuschase03%2Fgopatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagnuschase03%2Fgopatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagnuschase03%2Fgopatch/lists"}