January 2019
Intermediate to advanced
548 pages
12h 7m
English
The speed and reliability of masscan and nmap ability to enumerate in detail is a great combination to use in our goal-based penetration testing strategy. In this section, we will write a small script that can save time and provide more accurate results that can be used during exploitation and identifying the right vulnerabilities:
#!/bin/bashfunction helptext {
echo "enter the massnmap with the file input with list of IP address ranges"
}if [ "$#" -ne 1 ]; then
echo "Sorry cannot understand the command"
helptext>&2
exit 1
elif [ ! -s $1 ]; then
echo "ooops it is empty"
helptext>&2
exit 1
fi
if [ "$(id -u)" != "0" ]; then
echo "I assume you are running as root"
helptext>&2
exit 1
fifor range ...Read now
Unlock full access