{"id":13422926,"url":"https://github.com/Comsecuris/gdbghidra","last_synced_at":"2025-03-15T12:30:58.692Z","repository":{"id":135247134,"uuid":"186974778","full_name":"Comsecuris/gdbghidra","owner":"Comsecuris","description":"gdbghidra - a visual bridge between a GDB session and GHIDRA","archived":false,"fork":false,"pushed_at":"2019-10-18T09:07:38.000Z","size":2665,"stargazers_count":304,"open_issues_count":10,"forks_count":34,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-10-28T00:02:48.704Z","etag":null,"topics":["bridge","debugger","engineering","gdb","ghidra","plugin","reverse"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Comsecuris.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}},"created_at":"2019-05-16T07:26:05.000Z","updated_at":"2024-09-14T09:48:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd9ac845-9d09-476c-832a-1de529368d5b","html_url":"https://github.com/Comsecuris/gdbghidra","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Comsecuris%2Fgdbghidra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Comsecuris%2Fgdbghidra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Comsecuris%2Fgdbghidra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Comsecuris%2Fgdbghidra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Comsecuris","download_url":"https://codeload.github.com/Comsecuris/gdbghidra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243731100,"owners_count":20338773,"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":["bridge","debugger","engineering","gdb","ghidra","plugin","reverse"],"created_at":"2024-07-30T23:00:59.936Z","updated_at":"2025-03-15T12:30:58.117Z","avatar_url":"https://github.com/Comsecuris.png","language":"Java","funding_links":[],"categories":["GDB Plugins","Java"],"sub_categories":[],"readme":"# gdbghidra - a visual bridge between a GDB session and GHIDRA\n\nThe purpose of gdbghidra is to provide means during interactive debug sessions in\ngdb to quickly follow the flow in GHIDRA; similar to our [gdbida](https://github.com/Comsecuris/gdbida) plugin for IDA Pro. gdbghidra is not meant to be a full debugger. Instead, it merely serves as a small helper tool to assist during interactive debug \nsessions that make use of a mixture of tools. It provides simple means to quickly follow along a gdb debug\nsession in GHIDRA. Also it does not need any dependencies on the Python side.\n\ngdbghidra consists of the following two parts:\n* dist/ghidra_9.0.1_PUBLIC_*_GDBGHIDRA.zip\n* data/gdb\\_ghidra\\_bridge\\_client.py : gdb python script\n\n![data/gdbghidra](data/gdbghidra.gif)\n\nFeatures\n========\n* Sync/colorize cursor inside GHIDRA to PC of GDB session\n* Sync stack to GHIDRA on GDB break\n* Automatically set register values within GHIDRA for better decompilation\n* GHIDRA register window\n* Set/Toggle/Delete breakpoints from GHIDRA\n* Automatic relocation\n\nInstallation\n============\nMake a change the ~/.gdbinit configuration file to include the plugin:\n```\nsource ~/gdb_ghidra_bridge_client.py\n```\n\nTo install the plugin in GHIDRA follow these steps:\n\n* Open GHIDRA and select `File/Install Extensions`. \n* Press the green `+` button and select `dist/ghidra_9.0.1_PUBLIC_*_GDBGHIDRA.zip`. \n* Make sure the Plugin has a tick in the box left.\n* Start GHIDRA CodeBrowser.\n* Open `File/Configure` and press the adapter icon in above left oft 'Ghidra Core'.\n* Filter for `gdb` and make sure `GDBGhidraPlugin` is enabled.\n\nNow you should see the `GDBGhidraPlugin` window. You can now configure the listener port using the `configuration` button and start the server using the `refresh` button.\n\nNext, configure the gdb stub to connect to gdbghidras's port (either command line or gdbinit):\n```\nghidrabridge 10.0.10.10:2305\n```\n\nBuilding\n========\nTo build this plugin using gradle run the following command inside gdbghidra directory\n```bash\ngradle -PGHIDRA_INSTALL_DIR=\u003cPATH_TO_GHIDRA_FOLDER\u003e\n```\nThis produces a fresh extension zip within the `gdbghidra/dist` folder. \n\nDevelopment\n===========\nIf you want to build gdbghidra from source using GHIDRA's eclipse environment make sure to add `json-simple-1.1.1.jar` to the classpath as follows:\n\n* Click the `Run` Menu and select `Run Configurations`.\n* Navigate to `Ghidra/GDBGhidra` and select `Classpath`.\n* Navigate down the list to `User Entries`, select `User Entries` and click on `ADD JARS...`.\n* Select `lib/json-simple-1.1.1.jar`\n\nBetween GHIDRA and GDB a simple JSON message format is spoken which could also be used to connect other tools/debuggers to this GHIDRA plugin.\n\n\nNotes\n=====\nPlease be aware that this is not considered to be finished. Specifically, the following thoughts are on my mind:\n* Network listening input masks untested for errors.\n* The network connection is not authenticated in any way.\n* A lot of potential for additional commands. For now, I kept it super simple.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FComsecuris%2Fgdbghidra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FComsecuris%2Fgdbghidra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FComsecuris%2Fgdbghidra/lists"}