You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFLTriage is great, super easy to use. I've run into a small issue though. I would like to LD_PRELOAD a library into my target when it is run. However, I cannot seem to see a way to pass an environment variable to the target without it also being passed to afl-triage itself. Whilst in the most part, environment variables can just be allowed to propagate from parent to the child, in the case of LD_PRELOAD this causes an issue.
Obviously, you can't simply replace your target with a script, since the target then won't be the direct child of afl-triage, so for now, I've managed to workaround by making a small loader application which calls setenv and execve, but it would be awesome if you could just pass environment variables direct to afl-triage.
Maybe something like...
afl-triage -e LD_PRELOAD=mylib.so ...
The text was updated successfully, but these errors were encountered:
That should work fine for me. Just wondered if any other environment variables caused issues and something more generic was required? If not then similarity to AFL++ is probably more desirable.
Hey there, thanks for the issue. This has been on my mental TODO for a bit. I like the idea of -e or -D to pass arbitrary environment variables. I'll work on getting this for you
AFLTriage is great, super easy to use. I've run into a small issue though. I would like to
LD_PRELOAD
a library into my target when it is run. However, I cannot seem to see a way to pass an environment variable to the target without it also being passed toafl-triage
itself. Whilst in the most part, environment variables can just be allowed to propagate from parent to the child, in the case ofLD_PRELOAD
this causes an issue.Obviously, you can't simply replace your target with a script, since the target then won't be the direct child of
afl-triage
, so for now, I've managed to workaround by making a small loader application which callssetenv
andexecve
, but it would be awesome if you could just pass environment variables direct toafl-triage
.Maybe something like...
afl-triage -e LD_PRELOAD=mylib.so ...
The text was updated successfully, but these errors were encountered: