Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.
This repository was archived by the owner on May 12, 2025. It is now read-only.

Exit 1 when analysing wpa2-psk-mfp.pcapng.gz #8

Description

@maxhbr

Just did a random scan and the file https://github.com/wireshark/wireshark/blob/master/test/captures/wpa2-psk-mfp.pcapng.gz resulted in the following hard error:

[...]
  > wpa2-psk-mfp.pcapng.gz
gzip
Traceback (most recent call last):
  File "/usr/local/bin/thundera", line 8, in <module>
    sys.exit(cli())
  File "/opt/thundera-bsa.venv/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/opt/thundera-bsa.venv/lib/python3.8/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/opt/thundera-bsa.venv/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/thundera-bsa.venv/lib/python3.8/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/opt/thundera-bsa.venv/lib/python3.8/site-packages/thundera/thundera.py", line 55, in cli
    scanner = FolderScanner.FolderScanner(target)
  File "/opt/thundera-bsa.venv/lib/python3.8/site-packages/thundera/libs/FolderScanner.py", line 36, in __init__
    self.scanFolder(rootfolder, '-')
  File "/opt/thundera-bsa.venv/lib/python3.8/site-packages/thundera/libs/FolderScanner.py", line 164, in scanFolder
    self.scanFolder(target, ar.checksum)
  File "/opt/thundera-bsa.venv/lib/python3.8/site-packages/thundera/libs/FolderScanner.py", line 164, in scanFolder
    self.scanFolder(target, ar.checksum)
  File "/opt/thundera-bsa.venv/lib/python3.8/site-packages/thundera/libs/FolderScanner.py", line 164, in scanFolder
    self.scanFolder(target, ar.checksum)
  [Previous line repeated 1 more time]
  File "/opt/thundera-bsa.venv/lib/python3.8/site-packages/thundera/libs/FolderScanner.py", line 156, in scanFolder
    ArchiveHandler.ArchiveHandler(
  File "/opt/thundera-bsa.venv/lib/python3.8/site-packages/thundera/libs/ArchiveHandler.py", line 21, in __init__
    self.archive_handler(filepath, filename, filetype, slugify, checksum)
  File "/opt/thundera-bsa.venv/lib/python3.8/site-packages/thundera/libs/ArchiveHandler.py", line 41, in archive_handler
    handler(filepath, filename, slugify)
  File "/opt/thundera-bsa.venv/lib/python3.8/site-packages/thundera/libs/ArchiveHandler.py", line 62, in ungzip_archive
    file_content = file_content.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb4 in position 4: invalid start byte
thunderaBSA ended on: ExitFailure 1

using 564c766

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions