Skip to content

Conversation

@stdmedoth
Copy link

@stdmedoth stdmedoth commented Dec 13, 2022

I tried to run this script, but i got a error.

Traceback (most recent call last): File "/home/kali/Downloads/vulns/BackdoorMan/./BackdoorMan", line 603, in <module> Initialize(dest) File "/home/kali/Downloads/vulns/BackdoorMan/./BackdoorMan", line 50, in __init__ open('databases/functions/low.txt', 'rb').read().strip().split('\n') TypeError: a bytes-like object is required, not 'str'

I got the same error in this two machines:

  • Linux kali 6.0.0-kali5-amd64 SMP PREEMPT_DYNAMIC Debian 6.0.10-2kali1 (2022-12-06) x86_64 GNU/Linux
  • Linux calistu-debian 5.10.0-13-amd64 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux

So, i fix this error removing the binary parameter on open() function.

Before: open(file, 'rb')
After: open(file, 'r')

Since the files are in text format, I believe there is no need to use the binary attribute.

@stdmedoth stdmedoth changed the title Fix open file bug fix - Error on open file Dec 13, 2022
@stdmedoth stdmedoth closed this by deleting the head repository Apr 7, 2023
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

Successfully merging this pull request may close these issues.

1 participant