Skip to content

Instantly share code, notes, and snippets.

@REPTILEHAUS
Created March 31, 2019 14:56
Show Gist options
  • Save REPTILEHAUS/49c7021ac3fe033a989df2f0b2acee4e to your computer and use it in GitHub Desktop.
Save REPTILEHAUS/49c7021ac3fe033a989df2f0b2acee4e to your computer and use it in GitHub Desktop.
#!/bin/bash
# need to extract email addresses from an sql dump in a hurry? try this one liner:
grep -o '[[:alnum:]+\.\_\-]*@[[:alnum:]+\.\_\-]*' dump.sql | sort | uniq -i
# One liner to fetch all URLs in scope of all public programs (wildcard domains excluded) needs jq:
curl -s https://raw.githubusercontent.com/arkadiyt/bounty-targets-data/master/data/hackerone_data.json|jq -r '.[].targets.in_scope[] | select(.asset_type|contains("URL")) | .asset_identifier' |grep -v "*" | sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment