Grepping for Gold
Information
The North Pole - The North Pole
Conversations
Solution
What port does 34.76.1.22 have open?
grep 34.76.1.22 bigscan.gnmap
What port does 34.77.207.226 have open?
grep 34.77.207.226 bigscan.gnmap
How many hosts appear "Up" in the scan?
grep 'Status: Up' bigscan.gnmap | wc -l
How many hosts have a web port open? (Let's just use TCP ports 80, 443, and 8080)
grep -e 80 -e 443 -e 8080 bigscan.gnmap | wc -l
grep -e '80/open' -e '443/open' -e '8080/open' bigscan.gnmap | wc -l
How many hosts with status Up have no (detected) open TCP ports?
grep 1000 bigscan.gnmap
No results so 0. - WRONG
Hint 1:
Hint 2:
Hint 3:
Ahhhh, Ok, there are less lines with open ports than total scanned hosts. 25652
echo $((`grep 'Status: Up' bigscan.gnmap | wc -l` - `grep '///' bigscan.gnmap | wc -l`))
What's the greatest number of TCP ports any one host has open?
grep Ignored bigscan.gnmap | awk -F '(' '{print $3}' | sed 's/)//g' | sort | head -n 5
988 Ignored == 12 open max
Next: term-4