Skip to content

Instantly share code, notes, and snippets.

@pwn1sher
Forked from 1lastBr3ath/linkfinder.md
Created May 20, 2018 05:57
Show Gist options
  • Save pwn1sher/502340881f3e8bf1ca1ca1b38b5c3e58 to your computer and use it in GitHub Desktop.
Save pwn1sher/502340881f3e8bf1ca1ca1b38b5c3e58 to your computer and use it in GitHub Desktop.
Usage of LinkFinder (@GerbenJavado)
  • Navigate to page from where you want to extract links
  • Open your browser's console and paste the following ;
    document.querySelectorAll('script[src]').forEach((i)=>document.write(i.src+'<br/>'))
  • Copy all links and write it into a file (ex: jslinks.txt)
  • Open your terminal and cd to directory where you've downloaded LinkFinder
  • Run the following command
    while IFS= read link; do python linkfinder.py -i "$link" -o cli; done < jslinks.txt | tee -a output.html

You have it- all unique paths only :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment