Created
October 25, 2022 22:14
-
-
Save maikroservice/ae7090e7b35ae4cde77d6f73d3e10795 to your computer and use it in GitHub Desktop.
automated recon script for bug bounty | built live on twitter
This file contains hidden or 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
| #!/bin/bash | |
| Help() | |
| { | |
| # Display Help | |
| echo "Automated recon script for Bug Bounty - author @maikroservice" | |
| echo | |
| echo "Syntax: recon.sh [-h|v|V] <targetdomain>" | |
| echo "options:" | |
| echo "h Print this Help." | |
| echo "v Verbose mode." | |
| echo "V Print software version and exit." | |
| echo | |
| } | |
| if [ -z "$1" ]; then | |
| Help | |
| exit | |
| elif ping -c 1 $1 &> /dev/null; then | |
| echo "Host reachable" | |
| host $1 | grep -E -o "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)" | |
| else | |
| echo "host unavailable" | |
| exit | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment