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

Error when trying to decode ESSIDs using invalid UTF-8 characters #4

Closed
SkypLabs opened this issue Apr 2, 2018 · 2 comments
Closed
Assignees
Labels
bug New bug parser Related to the parser

Comments

@SkypLabs
Copy link
Owner

SkypLabs commented Apr 2, 2018

An exception is raised when an ESSID contains invalid UTF-8 characters:

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/local/bin/sniff-probe-req", line 239, in run
    probe_request = self.parse(packet)
  File "/usr/local/bin/sniff-probe-req", line 273, in parse
    essid = packet.getlayer(Dot11ProbeReq).info.decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfd in position 1: invalid start byte
@SkypLabs SkypLabs added the bug New bug label Apr 2, 2018
@SkypLabs SkypLabs added this to the v0.6.0 milestone Apr 2, 2018
@SkypLabs SkypLabs self-assigned this Apr 2, 2018
@SkypLabs SkypLabs removed this from the v0.6.0 milestone Jun 12, 2018
SkypLabs added a commit that referenced this issue Oct 11, 2018
Drop the packet if the ESSID is not a valid UTF-8 string.
@SkypLabs SkypLabs added this to the v0.8.0 milestone Oct 17, 2018
@SkypLabs
Copy link
Owner Author

SkypLabs commented Jan 9, 2019

This issue has been fixed and will be included in the next release.

@SkypLabs SkypLabs closed this as completed Jan 9, 2019
@SkypLabs SkypLabs removed this from the v0.8.0 milestone Mar 6, 2019
@SkypLabs
Copy link
Owner Author

SkypLabs commented Mar 6, 2019

Version 0.7.1 contains a patch addressing this issue.

@SkypLabs SkypLabs added the parser Related to the parser label Mar 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug New bug parser Related to the parser
Projects
None yet
Development

No branches or pull requests

1 participant