{"id":13720796,"url":"https://github.com/SourceDiver42/Ghidra-ChatGPT","last_synced_at":"2025-05-07T13:30:25.739Z","repository":{"id":173874160,"uuid":"576080606","full_name":"SourceDiver42/Ghidra-ChatGPT","owner":"SourceDiver42","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-09T13:27:04.000Z","size":18,"stargazers_count":88,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-08-04T01:13:53.551Z","etag":null,"topics":["chatgpt","ghidra","ghidra-scripts"],"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/SourceDiver42.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}},"created_at":"2022-12-09T00:51:32.000Z","updated_at":"2024-07-22T11:25:44.000Z","dependencies_parsed_at":"2024-01-29T22:08:51.811Z","dependency_job_id":null,"html_url":"https://github.com/SourceDiver42/Ghidra-ChatGPT","commit_stats":null,"previous_names":["sourcediver42/ghidra-chatgpt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SourceDiver42%2FGhidra-ChatGPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SourceDiver42%2FGhidra-ChatGPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SourceDiver42%2FGhidra-ChatGPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SourceDiver42%2FGhidra-ChatGPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SourceDiver42","download_url":"https://codeload.github.com/SourceDiver42/Ghidra-ChatGPT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224604575,"owners_count":17339164,"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":["chatgpt","ghidra","ghidra-scripts"],"created_at":"2024-08-03T01:01:08.132Z","updated_at":"2024-11-14T10:30:33.568Z","avatar_url":"https://github.com/SourceDiver42.png","language":"Python","funding_links":[],"categories":["Languages"],"sub_categories":["Python"],"readme":"# Ghidra-ChatGPT\n\n## Description\nThis is a simple python3 script that uses the [Ghidra API](https://ghidra.re/ghidra_docs/api/) to explain highlighted code segments.\nIt is designed to work with the [ChatGPT](https://chat.openai.com/) model, but can be used with any model that uses the same format.\n\n## Installation\n1. Install [Ghidra](https://ghidra-sre.org/)\n2. Install [Python3](https://www.python.org/downloads/)\n3. Install [Ghidrathon](https://github.com/mandiant/Ghidrathon)\n4. Install [pyChatGPT](https://github.com/terry3041/pyChatGPT)\n    1. `pip3 install pyChatGPT`\n5. Put this script in your ghidra_scripts folder\n6. Replace the session_token variable with your own `__Secure-next-auth.session-token` from [ChatGPT](https://chat.openai.com/)\nor replace the `api` variable with a different auth mechanism for pyChatGPT\n\n## Usage\n1. Open a program in Ghidra\n2. Highlight some code\n3. Run the script\n4. Wait for the model to generate a response\n5. Read the response from the console\n6. Repeat (sometimes the model will generate a response that is not helpful or very short)\n\n## Notes\n- The model will generate a response based on the highlighted code, so it is best to highlight a\nfunction or a block of code that is related to the function you are trying to understand.\n- Sometimes the script will seem to be stuck. I have no clue why but by hitting \"Cancel\" once, the script will\noutput the response within seconds.\n- Due to Jython shenanigans, I had to do some very ugly hacks to get this to work. I am not proud of this code.\n\n## Disclaimer\nThis project is not affiliated with OpenAI in any way. Use at your own risk. I am not responsible for any damage caused by this project. Please read the OpenAI Terms of Service before using this project.\n\n## Credits\n- [ChatGPT](https://chat.openai.com)\n- [Ghidra](https://ghidra-sre.org/)\n- [Ghidrathon](https://github.com/mandiant/Ghidrathon)\n- [pyChatGPT](https://github.com/terry3041/pyChatGPT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSourceDiver42%2FGhidra-ChatGPT","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSourceDiver42%2FGhidra-ChatGPT","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSourceDiver42%2FGhidra-ChatGPT/lists"}