Skip to content

Instantly share code, notes, and snippets.

@SAVE-UP
Created August 11, 2020 20:03
Show Gist options
  • Save SAVE-UP/ca362b97cf842effde6ed76a74e1e49a to your computer and use it in GitHub Desktop.
Save SAVE-UP/ca362b97cf842effde6ed76a74e1e49a to your computer and use it in GitHub Desktop.
Extract urls to junk data
#!/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