Skip to content

Instantly share code, notes, and snippets.

@nullenc0de
Created August 7, 2021 11:17
Show Gist options
  • Star 30 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save nullenc0de/5dd7d22d3a2c7070774371abadea4b2d to your computer and use it in GitHub Desktop.
Save nullenc0de/5dd7d22d3a2c7070774371abadea4b2d to your computer and use it in GitHub Desktop.
Exports links and params from API documentation
wget https://gist.githubusercontent.com/nullenc0de/bb16be959686295b3b1caff519cc3e05/raw/2016dc0e692821ec045edd5ae5c0aba5ec9ec3f1/api-linkfinder.yaml
echo https://stripe.com/docs/api | hakrawler -t 500 -d 10 |nuclei -t ./linkfinder.yaml -o api.txt
cat api.txt |grep url_params |cut -d ' ' -f 7 |tr , '\n' | tr ] '\n' | tr [ '\n' |tr -d '"' |tr -d "'" |sort -u > api_params.txt
cat api.txt |grep relative_links |cut -d ' ' -f 7 |tr , '\n' | tr ] '\n' | tr [ '\n' |tr -d '"' |tr -d "'" |sort -u > api_link_finder.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment