mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 18:48:08 +00:00
finish injection implementation
This commit is contained in:
@ -1749,6 +1749,34 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
}
|
||||
|
||||
// Marker: ADD_TO_INJECTIONS
|
||||
if (getenv("AFL_LLVM_INJECTIONS_ALL") || getenv("AFL_LLVM_INJECTIONS_SQL") ||
|
||||
getenv("AFL_LLVM_INJECTIONS_LDAP") || getenv("AFL_LLVM_INJECTIONS_XSS")) {
|
||||
|
||||
OKF("Adding injection tokens to dictionary.");
|
||||
if (getenv("AFL_LLVM_INJECTIONS_ALL") ||
|
||||
getenv("AFL_LLVM_INJECTIONS_SQL")) {
|
||||
|
||||
add_extra(afl, "'\"\"'", 4);
|
||||
|
||||
}
|
||||
|
||||
if (getenv("AFL_LLVM_INJECTIONS_ALL") ||
|
||||
getenv("AFL_LLVM_INJECTIONS_LDAP")) {
|
||||
|
||||
add_extra(afl, "*)(1=*))(|", 10);
|
||||
|
||||
}
|
||||
|
||||
if (getenv("AFL_LLVM_INJECTIONS_ALL") ||
|
||||
getenv("AFL_LLVM_INJECTIONS_XSS")) {
|
||||
|
||||
add_extra(afl, "1\"><\"", 5);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
OKF("Generating fuzz data with a length of min=%u max=%u", afl->min_length,
|
||||
afl->max_length);
|
||||
u32 min_alloc = MAX(64U, afl->min_length);
|
||||
|
Reference in New Issue
Block a user