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

TypeError: unsupported operand #2

Closed
Tux-Panik opened this issue Mar 22, 2018 · 2 comments
Closed

TypeError: unsupported operand #2

Tux-Panik opened this issue Mar 22, 2018 · 2 comments

Comments

@Tux-Panik
Copy link

Hello,
I made an exercice today to test this interesting tool, but I reached the following error:

Command:
python3 /opt/AVSignSeek/avsignseek.py -f sample.exe -p infected /media/sf_ANALYSIS/DIODE/test.zip

Output:
Traceback (most recent call last):
File "/opt/AVSignSeek/avsignseek.py", line 46, in <module>
main(args)
File "/opt/AVSignSeek/avsignseek.py", line 28, in main
print_results(file_bin, signature_range_list, args.output_file)
File "/opt/AVSignSeek/result.py", line 20, in print_results
output_line = b"".join([b"%.2x " % c for c in row]).decode().ljust(60)
File "/opt/AVSignSeek/result.py", line 20, in <listcomp>
output_line = b"".join([b"%.2x " % c for c in row]).decode().ljust(60)
TypeError: unsupported operand type(s) for %: 'bytes' and 'int'

If you have any idea about this issue.
Thanks in advance,

Regards,
Julien

@hegusung
Copy link
Owner

Hello,

Thank you for reporting this, apparently you are using python3.4 which does not support the '%' statement like in python3.6.

I just pushed a new commit to solve this compatibility issue, the code should now also work for python3.4. Please let me know if you encounter any other issues.

Regards,
Hegusung

@Tux-Panik
Copy link
Author

Issue fix.
Thanks for fast answer.
Regards,
Julien

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