fix header when use scapy and no IPV6

This commit is contained in:
Oros 2017-09-20 22:54:16 +02:00
parent 56ed7f1e6f
commit 1a336ecf52

View file

@ -560,9 +560,10 @@ if __name__ == '__main__':
print("123")
exit(1)
imsitracker.track_this_imsi(imsi_to_track)
imsitracker.header()
if options.sniff:
from scapy.all import sniff, UDP
imsitracker.header()
sniff(iface=options.iface, filter="port {} and not icmp and udp".format(options.port), prn=find_imsi_from_pkg, store=0)
else:
imsitracker.header()
udpserver(port=options.port, prn=find_imsi)