Skip to content

Instantly share code, notes, and snippets.

@apertureless
Created November 25, 2019 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apertureless/96bceb6bcfa3f07353333334f83891b9 to your computer and use it in GitHub Desktop.
Save apertureless/96bceb6bcfa3f07353333334f83891b9 to your computer and use it in GitHub Desktop.
#!/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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment