Skip to content

Instantly share code, notes, and snippets.

@maikroservice
Created October 25, 2022 22:14
Show Gist options
  • Select an option

  • Save maikroservice/ae7090e7b35ae4cde77d6f73d3e10795 to your computer and use it in GitHub Desktop.

Select an option

Save maikroservice/ae7090e7b35ae4cde77d6f73d3e10795 to your computer and use it in GitHub Desktop.

Revisions

  1. maikroservice created this gist Oct 25, 2022.
    25 changes: 25 additions & 0 deletions recon.sh
    Original 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