{"id":19820020,"url":"https://github.com/mbund/decompiler-explorer","last_synced_at":"2025-05-01T11:33:22.441Z","repository":{"id":195804128,"uuid":"693451735","full_name":"mbund/decompiler-explorer","owner":"mbund","description":"Watch for changes in a binary and output a C-like decompilation","archived":false,"fork":false,"pushed_at":"2023-09-20T21:29:36.000Z","size":2471,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-24T03:22:32.982Z","etag":null,"topics":["c","decompiler","ghidra","python","reverse-engineering","visualization"],"latest_commit_sha":null,"homepage":"","language":"Python","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/mbund.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}},"created_at":"2023-09-19T04:06:31.000Z","updated_at":"2024-03-06T15:16:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"554d9b4c-1509-41b6-887a-8f42f35aef54","html_url":"https://github.com/mbund/decompiler-explorer","commit_stats":null,"previous_names":["mbund/decompiler-explorer"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbund%2Fdecompiler-explorer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbund%2Fdecompiler-explorer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbund%2Fdecompiler-explorer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbund%2Fdecompiler-explorer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbund","download_url":"https://codeload.github.com/mbund/decompiler-explorer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224254346,"owners_count":17281145,"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":["c","decompiler","ghidra","python","reverse-engineering","visualization"],"created_at":"2024-11-12T10:21:05.163Z","updated_at":"2024-11-12T10:21:05.763Z","avatar_url":"https://github.com/mbund.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Decompiler Explorer\n\nWatch for changes in a binary and output a C-like decompilation.\n\n![usage gif](docs/usage.gif)\n\n## Usage\n\nRun with nix\n\n```\nnix run github:mbund/decompiler-explorer\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eCLI Usage\u003c/summary\u003e\n\n```\nusage: decompiler-explorer [-h] [-o OUTPUT] [-v] [-n FUNCTIONS [FUNCTIONS ...]] bin\n\nDecompiler explorer\n\npositional arguments:\n  bin                   Path to binary used for analysis\n\noptions:\n  -h, --help            show this help message and exit\n  -o OUTPUT, --output OUTPUT\n                        Location for all decompilations\n  -v, --verbose         Verbose output\n  -n FUNCTIONS [FUNCTIONS ...], --functions FUNCTIONS [FUNCTIONS ...]\n                        Function names to decompile\n```\n\n\u003c/details\u003e\n\nUse something like [entr](https://github.com/eradman/entr) to watch for changes in a file and recompile.\n\n```bash\nexamples$ find . -name '*.c' | entr make\n```\n\nThen also watch with the decompiler explorer.\n\n```bash\nexamples$ decompiler-explorer program\n```\n\nOr with extra options\n\n```bash\nexamples$ decompiler-explorer -o output.gc ./program -n main myFunction\n```\n\n`output.gc` is the default output file, where `.gc` is short for \"C-like ghidra decompilation\"\n\n## VSCode tips\n\nSet the language mode of the outputted C like code to `C#` or some other language where you don't have a language server set up that will just give errors, but still has good syntax highlighting.\n\nRun `File: Toggle Active Editor Read-only in Session` to set the outputted C like code to read only, since it will always be overwritten by Decompiler Explorer if your source binary changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbund%2Fdecompiler-explorer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbund%2Fdecompiler-explorer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbund%2Fdecompiler-explorer/lists"}