|
@@ -35,7 +35,7 @@ def _to_str(inp):
|
|
|
return "".join( chr(x) for x in inp)
|
|
|
|
|
|
|
|
|
-VERSION = "1.2"
|
|
|
+VERSION = "1.3"
|
|
|
|
|
|
PROC_TCP4 = "/proc/net/tcp"
|
|
|
PROC_UDP4 = "/proc/net/udp"
|
|
@@ -484,7 +484,7 @@ if args.pHl:
|
|
|
payloadHl = True
|
|
|
if args.filter:
|
|
|
fillter = " and (" + args.filter + ")"
|
|
|
- print("> Applying Filter: \"" + rfilter + fillter + "\"")
|
|
|
+ print("\033[1m> Applying Filter: \"" + rfilter + fillter + "\"\033[0m")
|
|
|
if args.p:
|
|
|
filter_prog = args.p
|
|
|
|
|
@@ -519,9 +519,13 @@ print("")
|
|
|
print("Prog/PID mavericks: \033[1m?/?\033[0m = No entry in /proc/net/xxx; \033[1m-/-\033[0m = No PID for Inode found; \033[1m./.\033[0m = Inode=0;")
|
|
|
print("")
|
|
|
print("Program/PID: Local addr:port <<->> Remote addr:port [Flags] Len:length : [Payload]")
|
|
|
-print("-------------------------------------------------------------------------------")
|
|
|
+print("----------------------------------------------------------------------------------")
|
|
|
|
|
|
# sniff, filtering for IP traffic
|
|
|
-sniff(filter=rfilter+fillter,iface=iface,prn=doPackets, store=0)
|
|
|
+try:
|
|
|
+ sniff(filter=rfilter+fillter,iface=iface,prn=doPackets, store=0)
|
|
|
+except Exception as e:
|
|
|
+ print("\n \033[1mError: " + str(e) + "\033[0m \n")
|
|
|
+
|
|
|
|
|
|
## -- oond denn isch schloss
|