Skip to content

Instantly share code, notes, and snippets.

@affilares
Forked from ntrzz/linkfinder-oneliner.sh
Created September 3, 2019 03:53
Show Gist options
  • Save affilares/88fd068ec9148e180abb7370c7ed940f to your computer and use it in GitHub Desktop.
Save affilares/88fd068ec9148e180abb7370c7ed940f 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