Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running CGC binaries with Driller #86

Open
tiwns opened this issue Sep 3, 2020 · 1 comment
Open

Running CGC binaries with Driller #86

tiwns opened this issue Sep 3, 2020 · 1 comment

Comments

@tiwns
Copy link

tiwns commented Sep 3, 2020

Hello, I have been trying to run driller in a docker container and cannot seem to get it to work. The error I obtain -

shellphuzz -d 2 -w workdir/shellphuzz/ -C --length-extension 4 ./CADET_00001
[] Drilling...
[
] Creating fuzzer...
ERROR | 2020-09-03 16:33:21,002 | fuzzer.fuzzer | AFL Warning: We probably want the fork() children to run first
execute 'echo 1 | sudo tee /proc/sys/kernel/sched_child_runs_first'

Traceback (most recent call last):
File "/home/angr/.virtualenvs/angr/bin/shellphuzz", line 7, in
exec(compile(f.read(), file, 'exec'))
File "/home/angr/angr-dev/fuzzer/shellphuzz", line 87, in
memory=args.memory, seeds=seeds, timeout=args.run_timeout,
File "/home/angr/angr-dev/fuzzer/fuzzer/fuzzer.py", line 99, in init
Fuzzer._perform_env_checks()
File "/home/angr/angr-dev/fuzzer/fuzzer/fuzzer.py", line 599, in _perform_env_checks
raise InstallError(err)
fuzzer.fuzzer.InstallError: AFL Warning: We probably want the fork() children to run first
execute 'echo 1 | sudo tee /proc/sys/kernel/sched_child_runs_first'

Exception ignored in: <bound method Fuzzer.del of <fuzzer.fuzzer.Fuzzer object at 0x7f6062895e10>>
Traceback (most recent call last):
File "/home/angr/angr-dev/fuzzer/fuzzer/fuzzer.py", line 665, in del
self.kill()
File "/home/angr/angr-dev/fuzzer/fuzzer/fuzzer.py", line 266, in kill
for p in self.procs:
AttributeError: 'Fuzzer' object has no attribute 'procs'

Running 'echo 1 | sudo tee /proc/sys/kernel/sched_child_runs_first' tells me the file system is read_only.

Any advice would be much appreciated.

@twizmwazin
Copy link
Collaborator

I believe you need to either run the container as privileged, or you can run it on the host.

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

No branches or pull requests

2 participants