From 73c036997c5eac8340fddebf2e40a1989df4c145 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 19 Feb 2018 09:14:26 +1300 Subject: Show only --open ports --- bin/nwatch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/nwatch b/bin/nwatch index 03ef0ab..3579c9b 100755 --- a/bin/nwatch +++ b/bin/nwatch @@ -47,7 +47,7 @@ cache=$cachedir/${self}.scan.${date} diff=$cachedir/${self}.diff.${date} # Run the scan or give up -if ! nmap -v -T4 -sV -iL "$hostlist" -oA "$cache" >/dev/null ; then +if ! nmap -v -T4 -sV --open -iL "$hostlist" -oA "$cache" >/dev/null ; then exit 1 fi -- cgit v1.2.3