bl4de / security-tools

My collection of various security tools created mostly in Python and Bash. For CTFs and Bug Bounty.
MIT License
863 stars 176 forks source link

[hexview] Error when i run the tool #31

Closed Hao1503 closed 2 years ago

Hao1503 commented 2 years ago

Traceback (most recent call last): File "hexview.py", line 307, in print(file_type(open(args.file, 'rb').read(8))) File "hexview.py", line 174, in file_type if file_signature.startswith(signature.upper()): TypeError: startswith first arg must be bytes or a tuple of bytes, not str

How can i fix it?