Created
August 11, 2020 20:03
-
-
Save SAVE-UP/ca362b97cf842effde6ed76a74e1e49a to your computer and use it in GitHub Desktop.
Extract urls to junk data
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
#!/usr/bin/env sh | |
# abort on errors | |
set -e | |
cat file | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*"* | |
# If file is on remote web server | |
curl http://path.cc/file | grep -Eo "(http|https)://[a-zA-Z0-9./?=_-]*"* | |
#bugbountytips | |
#Linux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment