Commit 7317527a authored by Russell D's avatar Russell D

added erro checking

parent 918e38aa
......@@ -18,7 +18,7 @@ host="$HOSTNAME"
#Elevated privledges requred to run /usr/bin/tcpdump
echo -en "Sufficient privledges are usually requred to run /usr/bin/tcpdump on a NIC\n"
echo -en "Begin traffic analysis...\n\n"
......@@ -36,7 +36,7 @@ echo -en "Initiating tcpdump...\n"
tcpdump -c "$pcaplength" -nn not multicast and not broadcast 2>&1 | cat >> "$tmppcap"
pcapstat=$( cat "$tmppcap" | cut -d' ' -f 5 | cut -d ':' -f 1 |/bin/grep '^[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*.*$' | sort -r | uniq )
cat "$tmppcap" | grep -i permission
echo -en "found remote connections:\n\n"
echo "$pcapstat"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment