Grepping for Gold

Information

The North Pole - The North Pole

Conversations

Pasted image 20220909220929

Solution

Pasted image 20220909220940

What port does 34.76.1.22 have open?

grep 34.76.1.22 bigscan.gnmap

Pasted image 20220909221034

Pasted image 20220909221049

What port does 34.77.207.226 have open?

grep 34.77.207.226 bigscan.gnmap

Pasted image 20220909221127 Pasted image 20220909221133

How many hosts appear "Up" in the scan?

grep 'Status: Up' bigscan.gnmap | wc -l

Pasted image 20220909221153 Pasted image 20220909221158

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

Pasted image 20220909221219

grep -e '80/open' -e '443/open' -e '8080/open' bigscan.gnmap | wc -l

Pasted image 20220909221237 Pasted image 20220909221242

How many hosts with status Up have no (detected) open TCP ports?

grep 1000 bigscan.gnmap

No results so 0. - WRONG

Hint 1: Pasted image 20220909221327

Hint 2: Pasted image 20220909221335

Hint 3: Pasted image 20220909221342

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`))

Pasted image 20220909221414 Pasted image 20220909221418

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 Pasted image 20220909221452 Pasted image 20220909221456


Next: term-4