shellphish / fuzzer

A Python interface to AFL, allowing for easy injection of testcases and other functionality.
BSD 2-Clause "Simplified" License
638 stars 130 forks source link

shellphuzz - filepath for seed has to be open with 'rb' option #36

Closed kburova closed 5 years ago

kburova commented 5 years ago

Line 80:

     with open(filepath) as seedfile:
            seeds.append(seedfile.read())

If 'rb' option isn't used, "a bytes-like object is required, not 'str' " error occurs. Even if file has b'' pre-pended. It adds "" around bytes-like string and sees it as normal string. Also, it reeds in a new line.

rhelmot commented 5 years ago

Thanks for reporting. Sorry for taking so long to get to it; things have been a little hectic.