Last active
January 21, 2023 10:12
-
-
Save ntrzz/bc8190a21a1324f5ad34d13b1ac4ccfa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
This is a simple oneliner for getting paths in js files gathered from source-code using Linkfinder.
Note This script must be in root directory of linkfinder.
Note 2 This works if .js files are imported as absolute paths and not relative paths.
Installation:
chmod +x linkfinder-onliner.sh
./linkfinder-onliner.sh https://twitter.com $1 $2
Where
Example:
./linkfinder-oneliner.sh https://twitter.com "/" "https://"
// output all paths found, but don't print https:// links found./linkfinder-oneliner.sh https://twitter.com "https://" " "
// output all https links found