Migrating to Python v3
- support for Python v3.8.x
- support for Python v3.5.x
- new tag, 2019.2.8
- updates class generation and iterators
- unittests updated with coverage >75%
- new coverage routines
- unittests profiling
- full fake data for unittests
- unittest testrun is ~1.5 seconds long
Bugfixes
- 34834, proper use of 'sudo' option
- multiple proper iterator use
- 37919, show warning when installed and candidate versions
are newer comparing to release version
Change-Id: Idd6b889f7ce94ae0c832e2f0a0346e4fdc3264a3
Related-PROD: PROD-34834 PROD-34664 PROD-34919
diff --git a/scripts/sniffer.py b/scripts/sniffer.py
index 9b6830c..8657f8a 100644
--- a/scripts/sniffer.py
+++ b/scripts/sniffer.py
@@ -121,15 +121,15 @@
print "\n\n=== [+] ------------ Ethernet Header----- [+]"
# print data on terminal
- for i in u.eth_header(pkt[0][0:14]).iteritems():
+ for i in u.eth_header(pkt[0][0:14]).items():
a, b = i
print "{} : {} | ".format(a, b),
print "\n=== [+] ------------ IP Header ------------[+]"
- for i in u.ip_header(pkt[0][14:34]).iteritems():
+ for i in u.ip_header(pkt[0][14:34]).items():
a, b = i
print "{} : {} | ".format(a, b),
print "\n== [+] ------------ Tcp Header ----------- [+]"
- for i in u.tcp_header(pkt[0][34:54]).iteritems():
+ for i in u.tcp_header(pkt[0][34:54]).items():
a, b = i
print "{} : {} | ".format(a, b),
print "\n===== Data ===="