- CTF Pwnable Auto Solver
-
You must have
gdb-peda -
pip install fastmcp pwntools -
Download ghidra in
mcpsdirectory (FYI : https://dokhakdubini.tistory.com/564)https://github.com/NationalSecurityAgency/ghidra/releases
-
Add this in mcp config file
"ghidra-mcp": {
"command": "[python Directory]",
"args": [
"[wrapper.py Directory]"
]
}- These files have to run in Ubuntu, so HOST IP will be your wsl or ubuntu ip.
-
Move Target Binary to
mcps/test&mcps/pwntools_tools/server/challenge -
Fast run
./run_ghidra_server.sh- Individual exec If you have to run these files individually for some reason, use these.
- Static Debugging : use 9999 port
./ghidra_12.0.2_PUBLIC/support/analyzeHeadless challenge test \
-process chall \
-scriptPath ./ghidra_tools/server \
-postScript ghidra_server.py- Dynamic Debugging : use 19090 port
python3 debug_bridge/server.py --host 0.0.0.0 --port 19090- Close Server
- Just
Ctrl + C. run_ghidra_server.sh will clear backup files and cache folders.