0xsha/GoLinkFinder ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Go command line tool that takes a website URL and extracts possible API endpoints and links from the HTML and any embedded JavaScript it finds.
I want it to be simple and fast, something I can run like goLinkFinder -d https://example.com and get a list of endpoints back, with an optional output file if I want to save them. It should be useful for bug bounty and pentesting work, so make the output easy to pipe into grep or other tools. If it helps, look up current docs online when needed.
Please keep the app minimal, with a clean help message, clear usage, and sensible defaults. It should handle a required domain input, support writing results to a file, and print found endpoints in a way that is easy to read and filter. I’d like it to work from a single Go file if possible, and feel like a lightweight endpoint extractor rather than a big framework.