Skip to content
This repository has been archived by the owner on May 1, 2019. It is now read-only.

Unable to apply AFL patch #31

Open
caballomaldito opened this issue Sep 13, 2018 · 2 comments
Open

Unable to apply AFL patch #31

caballomaldito opened this issue Sep 13, 2018 · 2 comments

Comments

@caballomaldito
Copy link

So tested: Ubuntu 18.04 TLS

Executing the following command will reproduce the problem:

pip install git+https://github.com/shellphish/fuzzer

Installing collected packages: future, ana, z3-solver, claripy, smmap2, gitdb2, GitPython, decorator, networkx, cooldict, dpkt-fix, capstone, mulpyplexer, ailment, unicorn, pycparser, cffi, archinfo, plumbum, rpyc, sortedcontainers, idalink, pefile, pyelftools, bitstring, pyvex, cle, progressbar, cachetools, futures, angr, shellphish-afl, shellphish-qemu, tqdm, fuzzer
Running setup.py install for future ... done
Running setup.py install for ana ... done
Running setup.py install for claripy ... done
Running setup.py install for networkx ... done
Running setup.py install for cooldict ... done
Running setup.py install for dpkt-fix ... done
Running setup.py install for mulpyplexer ... done
Running setup.py install for ailment ... done
Running setup.py install for pycparser ... done
Running setup.py install for archinfo ... done
Running setup.py install for rpyc ... done
Running setup.py install for idalink ... done
Running setup.py install for pefile ... done
Running setup.py install for pyelftools ... done
Running setup.py install for bitstring ... done
Running setup.py install for cle ... done
Running setup.py install for progressbar ... done
Running setup.py install for shellphish-afl ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-QluSO3/shellphish-afl/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-wpVEXT-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
Setting up AFL-other-arch
Cloning into 'bin/afl-unix'...
patching file qemu_mode/patches/elfload.diff
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 9.
2 out of 2 hunks FAILED -- saving rejects to file qemu_mode/patches/elfload.diff.rej
error: Unable to apply AFL patch

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-QluSO3/shellphish-afl/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-wpVEXT-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-QluSO3/shellphish-afl/

Any ideas?

Thank you!

@rhelmot
Copy link
Member

rhelmot commented Sep 13, 2018

We'll get to this eventually, in the meantime please use this wheel.

@rhelmot
Copy link
Member

rhelmot commented Sep 19, 2018

This was a weirdly complicated issue, but I think I've uploaded a fix. Can you verify it works on your end?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants