I'm facing this issue in two different devices, running Debian based distros:
python3 simple_IMSI-catcher.py --sniff
Nb IMSI ; TMSI-1 ; TMSI-2 ; IMSI ; country ; brand ; operator ; MCC ; MNC ; LAC ; CellId
Traceback (most recent call last):
File "simple_IMSI-catcher.py", line 533, in <module>
sniff(iface=options.iface, filter="port {} and not icmp and udp".format(options.port), prn=find_imsi_from_pkg, store=0)
File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 972, in sniff
sniffer._run(*args, **kwargs)
File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 925, in _run
session.on_packet_received(p)
File "/usr/lib/python3/dist-packages/scapy/sessions.py", line 47, in on_packet_received
result = self.prn(pkt)
File "simple_IMSI-catcher.py", line 493, in find_imsi_from_pkg
find_imsi(udpdata)
File "simple_IMSI-catcher.py", line 365, in find_imsi
gsm = gsmtap_hdr.from_buffer_copy(udpdata)
TypeError: a bytes-like object is required, not 'str'
I'm facing this issue in two different devices, running Debian based distros: