Skip to content

Instantly share code, notes, and snippets.

@attacker34
Forked from ntrzz/linkfinder-oneliner.sh
Created June 16, 2018 04:49
Show Gist options
  • Save attacker34/4b5b8c0a27a99333bb43adfa7ed9d02f to your computer and use it in GitHub Desktop.
Save attacker34/4b5b8c0a27a99333bb43adfa7ed9d02f to your computer and use it in GitHub Desktop.
curl -s $1 | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*" | sort | uniq | grep ".js" > jslinks.txt; while IFS= read link; do python linkfinder.py -i "$link" -o cli; done < jslinks.txt | grep $2 | grep -v $3 | sort -n | uniq; rm -rf jslinks.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment