Analyze a Go binary in Ghidra through Cursor
A developer used Cursor with GhidraMCP to map a stripped Go server and hunt for bugs in its routes and handlers.
- What they did
- Huli loaded a stripped Gin server into Ghidra with the GolangAnalyzerExtension, then linked GhidraMCP to Cursor so the agent could query the decompiler directly. After first asking it to identify the binary and its functions, they pushed it to rebuild the Go source and inspect it for security issues.
- How it went
- With Cursor’s composer 1.5, it recovered the route list, libraries, and general file layout, though a few route names were off. It found the path traversal issue, but it treated the SQL injection as already fixed and missed it. The same prompt on Opus 4.6 caught both bugs, though some routes were still mislabeled.
- Tips
- Model choice mattered a lot, so compare results from more than one run if the findings are important. Treat route names and vulnerability calls as leads to verify manually before relying on them.
Try it yourself with Cursor
Connect to Ghidra through MCP and inspect this Go binary at [path or file name]. First identify its main packages, routes, and handler functions from the decompiler output. Then reconstruct the likely source structure and check for security problems such as path traversal or SQL injection. Pause and ask me before making any change that would send, delete, submit, or otherwise alter data. Finish with a short report listing the routes, suspected bugs, and anything you are not fully sure about.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Use a patch diff to map a sandbox exploit path
A researcher had Claude Code study a PaperCut NG fix, rebuild the flaw chain in a lab, and reach working code execution.
Use OpenClaw to script robot arm motions
OpenClaw can take movement instructions in everyday language and turn them into Python for a 7-axis NERO arm.
Calibrate a robot hand and test gestures safely
Use an OpenClaw agent to inspect a 16-joint printed hand, verify motion with a camera, and calibrate firmware before trying simple gestures.
Wire an MCP math server into your agent
They let an agent route math work to MathKernel, which planned the request and delegated computation to several theorem and numeric engines.
Generate editable CAD models from a text prompt
An agent can draft a 3D part from plain language, then let you fine-tune key measurements before export.
Scan code for business-logic and auth bypass flaws
A developer used Devin to split a codebase into parts, trace exploit paths across files, confirm issues in a sandbox, and open fix pull requests.