Open 1Sveta1 opened 1 year ago
Traceback (most recent call last): File "simple_IMSI-catcher.py", line 602, in sniff(iface=options.iface, filter=f"port {options.port} and not icmp and udp", prn=find_imsi_from_pkt, store=0) File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 603, in sniff r = prn(p) File "simple_IMSI-catcher.py", line 553, in find_imsi_from_pkt find_imsi(udpdata) File "simple_IMSI-catcher.py", line 482, in find_imsi t.register_imsi(gsm.arfcn, imsi1, imsi2, tmsi1, tmsi2, p) File "simple_IMSI-catcher.py", line 278, in register_imsi self.pfields(str(n), tmsi1, tmsi2, imsi1, str(self.mcc), str(self.mnc), str(self.lac), str(self.cell), p) File "simple_IMSI-catcher.py", line 194, in pfields self.output_function(cpt, tmsi1, tmsi2, imsi, imsicountry, imsibrand, imsioperator, mcc, mnc, lac, cell, now, packet) File "simple_IMSI-catcher.py", line 183, in output print(f"{str(cpt):7s} ; {tmsi1:10s} ; {tmsi2:10s} ; {imsi:17s} ; {imsicountry:16s} ; {imsibrand:14s} ; {imsioperator:21s} ; {str(mcc):4s} ; {str(mnc):5s} ; {str(lac):6s} ; {str(cell):6s} ; {now.isoformat():s}") UnicodeEncodeError: 'ascii' codec can't encode character '\u201c' in position 98: ordinal not in range(128) Help me, please
Traceback (most recent call last): File "simple_IMSI-catcher.py", line 602, in
sniff(iface=options.iface, filter=f"port {options.port} and not icmp and udp", prn=find_imsi_from_pkt, store=0)
File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 603, in sniff
r = prn(p)
File "simple_IMSI-catcher.py", line 553, in find_imsi_from_pkt
find_imsi(udpdata)
File "simple_IMSI-catcher.py", line 482, in find_imsi
t.register_imsi(gsm.arfcn, imsi1, imsi2, tmsi1, tmsi2, p)
File "simple_IMSI-catcher.py", line 278, in register_imsi
self.pfields(str(n), tmsi1, tmsi2, imsi1, str(self.mcc), str(self.mnc), str(self.lac), str(self.cell), p)
File "simple_IMSI-catcher.py", line 194, in pfields
self.output_function(cpt, tmsi1, tmsi2, imsi, imsicountry, imsibrand, imsioperator, mcc, mnc, lac, cell, now, packet)
File "simple_IMSI-catcher.py", line 183, in output
print(f"{str(cpt):7s} ; {tmsi1:10s} ; {tmsi2:10s} ; {imsi:17s} ; {imsicountry:16s} ; {imsibrand:14s} ; {imsioperator:21s} ; {str(mcc):4s} ; {str(mnc):5s} ; {str(lac):6s} ; {str(cell):6s} ; {now.isoformat():s}")
UnicodeEncodeError: 'ascii' codec can't encode character '\u201c' in position 98: ordinal not in range(128)
Help me, please