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

Provide a way to get marker strings in to a binary without the fuzz! macro #501

Open
smoelius opened this issue Jul 11, 2024 · 0 comments
Open

Comments

@smoelius
Copy link
Member

smoelius commented Jul 11, 2024

From #499 (comment):

... a target binary must contain certain strings for AFL++ to handle it properly:

afl.rs/afl/src/lib.rs

Lines 49 to 52 in 462eff5

// this marker strings needs to be in the produced executable for
// afl-fuzz to detect `persistent mode` and `defered mode`
static PERSIST_MARKER: &str = "##SIG_AFL_PERSISTENT##\0";
static DEFERED_MARKER: &str = "##SIG_AFL_DEFER_FORKSRV##\0";

...

It used to be one could simply add the following to get those strings into their binary:

#[allow(unused_imports)]
use afl::fuzz;

... afl.rs should provide an easy way to get those strings into a binary.

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

1 participant