Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeEncodeError #156

Open
1Sveta1 opened this issue Feb 14, 2023 · 0 comments
Open

UnicodeEncodeError #156

1Sveta1 opened this issue Feb 14, 2023 · 0 comments

Comments

@1Sveta1
Copy link

1Sveta1 commented Feb 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant