Network check HTML report
- uniform map generation
- POC for additional checks on env
Change-Id: I52edcc94f4d9826cbfb1159e5311514097a15f62
Related-PROD: PROD-32792
diff --git a/scripts/sniffer.py b/scripts/sniffer.py
index 612ff20..9b6830c 100644
--- a/scripts/sniffer.py
+++ b/scripts/sniffer.py
@@ -112,23 +112,27 @@
s = socket.socket(socket.PF_PACKET, socket.SOCK_RAW, socket.ntohs(0x0800))
u = unpack()
-count = 5
+count = 32
while count > 0:
count -= 1
# Capture packets from network
pkt = s.recvfrom(65565)
- print "\n\n===>> [+] ------------ Ethernet Header----- [+]"
+ print "\n\n=== [+] ------------ Ethernet Header----- [+]"
# print data on terminal
for i in u.eth_header(pkt[0][0:14]).iteritems():
a, b = i
print "{} : {} | ".format(a, b),
- print "\n===>> [+] ------------ IP Header ------------[+]"
+ print "\n=== [+] ------------ IP Header ------------[+]"
for i in u.ip_header(pkt[0][14:34]).iteritems():
a, b = i
print "{} : {} | ".format(a, b),
- print "\n===>> [+] ------------ Tcp Header ----------- [+]"
+ print "\n== [+] ------------ Tcp Header ----------- [+]"
for i in u.tcp_header(pkt[0][34:54]).iteritems():
a, b = i
print "{} : {} | ".format(a, b),
+ print "\n===== Data ===="
+ print pkt[0][54:]
+ print "\n======="
+ print pkt[1:]