Skip to content

Getting a bunch of errors when using the tool #7

@init5-SF

Description

@init5-SF

Hello, this is the command syntax I am using and the error I am getting:

dev@ubuntu:~/Desktop/exp/expdevBadChars$ python3 ./badchars.py allchars.txt stack.txt 

	:: BadChars.py (v:0.4) - Exploit Development Bad Characters hunting tool.
		Equipped with Corelan.be Mona's buffers comparison LCS-based algorithm

Traceback (most recent call last):
  File "./badchars.py", line 1063, in <module>
    sys.exit(main(sys.argv))
  File "./badchars.py", line 977, in main
    buffers[0].extend(fetch_file(filenames[0], 'good_buffer', options.format1))
  File "./badchars.py", line 871, in fetch_file
    b = BytesParser(buff, name, format)
  File "./badchars.py", line 132, in __init__
    self.recognize_format()
  File "./badchars.py", line 186, in recognize_format
    if not all(c in string.printable for c in self.input):
  File "./badchars.py", line 186, in <genexpr>
    if not all(c in string.printable for c in self.input):
TypeError: 'in <string>' requires string as left operand, not int

Am I missing something?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions