Created
October 25, 2022 22:14
-
-
Save maikroservice/ae7090e7b35ae4cde77d6f73d3e10795 to your computer and use it in GitHub Desktop.
Revisions
-
maikroservice created this gist
Oct 25, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ #!/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