Skip to content

Instantly share code, notes, and snippets.

@apertureless
Created November 25, 2019 08:35
Show Gist options
  • Save apertureless/96bceb6bcfa3f07353333334f83891b9 to your computer and use it in GitHub Desktop.
Save apertureless/96bceb6bcfa3f07353333334f83891b9 to your computer and use it in GitHub Desktop.

Revisions

  1. apertureless created this gist Nov 25, 2019.
    36 changes: 36 additions & 0 deletions lazymap.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    #!/bin/bash
    RED=`tput setaf 1`
    GREEN=`tput setaf 2`
    BLUE=`tput setaf 4`
    MAGENTA=`tput setaf 5`
    CYAN=`tput setaf 6`
    NOCOLOR=`tput sgr0`

    echo "${CYAN}
    _____ _____
    __|_ |__ ____ ______ __ _ ___| _|__ ____ _____
    | | || \ |___ |\ \ //| \ / | || \ | |
    | |_ || \ .-`.-` \ \// | \/ | || \ | _|
    |______| __||__|\__\|______| /__/ |__/\__/|__|_||__|\__\|___|
    |_____| |_____|
    ${MAGENTA}by [PHCN]NetGhost03 ${NOCOLOR}
    "
    # Check for input arguments.

    if [ $# -eq 0 ]; then
    echo '${RED}No arguments provded. Please provde a list with hosts${NOCOLOR}'
    exit 1
    fi

    while IFS= read -r line
    do
    echo "[${CYAN}*${NOCOLOR}] Starting scan for ${line}\n"
    nmap -sV -sT -sC -o $line.nmap $line > /dev/null
    echo "[${GREEN}${NOCOLOR}] Finished scan for ${line}\n"

    done < "$1"

    echo "[${GREEN}${NOCOLOR}] Finished scanning all targets"