May 2017
Intermediate to advanced
634 pages
16h 24m
English
The example that follows demonstrates how we can use the Bash scripting language to extract information from Nmap's greppable format. We then use that information to run Nikto against hosts running web services:
#! /bin/bashif [ ! $1 ]; then echo "Usage: #./script <file>"; exit; fifile=$1for x in $(grep open $file | grep 80 | cut -d " " -f 2); do echo "Nikto scanning the following host: $x" nikto -h $x -F text -output /tmp/nikto-scans/$x.txtdone
Read now
Unlock full access