-
Notifications
You must be signed in to change notification settings - Fork 62
call the python3 binary. needed on OSX, and tested working on Debian #32
Conversation
1 similar comment
A second issue on OSX is the gdb+exploitable step isn't working. I'll need to dig a little deeper to figure out what's going on there (it is working fine on my debian box). Envoking like this:
gdb is configured and has the "exploitable" command available. no idea how i could invoke the command in gdb though, any clues?
|
Hm, I think this is the issue, investigating...
reinstalling with
|
Regarding your second issue: Where is your |
Ah, binary is /usr/local/bin/gdb. I will look at afl_collect.py too on my previous note, recompiling gdb didnt seem to have much effect, will investigate some more.
(it still uses python 2.7) |
Regarding your PR: I'd prefer to keep the code as it is for two reasons:
Using virtualenv -p python3 my_venv
source my_venv/bin/activate
cd <path-to-afl-utils>
python setup.py install
python setup.py test
afl-collect <opts> That's the way I'm using afl-utils all the time. In case of a python package fuckup I simply do rm -rf ./my_venv and start from scratch. |
Adapt the path to If this still doesn't fix your problems, may I ask you to open a separate issue summarizing the problem you've encountered? Let's keep the PR separate from other issues. ;) |
Ah, I see!. now at least gdb is executed (can tell because osx gives notice about a process tries to control another one), however still stuck on gdb having python 2.7 so the script wont run. Python 3.3+ has shutil.which() that solves this in a clean way, instead of hardcoding paths; https://docs.python.org/3.3/library/shutil.html#shutil.which Regarding to not change python to python3:
Let me poke some more, maybe we can turn this PR into a OSX caution in the INSTALL.md instead. I'm more interested in using these tools as-is, than developing them further. (found this project by the instinct of not writing my own afl triager) so I just want them to work, as I am working on other tooling for afl atm. |
Sure, and thanks for your patient help! |
Thanks for the hint! You might want to check the updated experimental branch.
Yep, updating INSTALL.md with a more verbose description of the process of using |
I've only had time to try out afl-collect yet, but these changes are needed for proper usage on OSX.
2 tests are failing on OSX because the
setsid
binary is not available.