Skip to content

Instantly share code, notes, and snippets.

@maikroservice
Created October 25, 2022 22:14
Show Gist options
  • Save maikroservice/ae7090e7b35ae4cde77d6f73d3e10795 to your computer and use it in GitHub Desktop.
Save maikroservice/ae7090e7b35ae4cde77d6f73d3e10795 to your computer and use it in GitHub Desktop.
automated recon script for bug bounty | built live on twitter
#!/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