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

UnicodeDecodeError: 'utf16' codec can't decode bytes #29

Open
Chewie9999 opened this issue Dec 16, 2019 · 1 comment
Open

UnicodeDecodeError: 'utf16' codec can't decode bytes #29

Chewie9999 opened this issue Dec 16, 2019 · 1 comment

Comments

@Chewie9999
Copy link

When scanning a fileserver, it didn't like one of the .PST files:

Traceback (most recent call last):|                     | ETA:  --:--:-- PANs:0
  File "panhunt.py", line 251, in <module>
  File "panhunt.py", line 198, in hunt_pans
  File "filehunt.py", line 349, in find_all_regexs_in_psts
  File "filehunt.py", line 139, in check_pst_regexs
  File "pst.py", line 1989, in get_total_attachment_count
  File "pst.py", line 1924, in message_generator
  File "pst.py", line 1329, in __init__
  File "pst.py", line 1135, in get_pc_by_nid
  File "pst.py", line 905, in __init__
  File "pst.py", line 627, in __init__
  File "pst.py", line 707, in value
  File "encodings\utf_16_le.py", line 16, in decode
UnicodeDecodeError: 'utf16' codec can't decode bytes in position 508-509: unexpected end of data
Failed to execute script panhunt

Not quite sure why, could it be that the file changed during the scan?

@parteeksingh005
Copy link

When scanning a fileserver, I am getting a wired error. Attached for image for reference.

image (3)

Not quite sure why this happened..

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

2 participants