aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAkira Moroo <retrage01@gmail.com>2021-06-22 05:34:20 +0000
committerAkira Moroo <retrage01@gmail.com>2021-11-11 09:52:21 +0000
commit9100f3c416707d926fc100d4441cf32bb1da6dd6 (patch)
treebd0d24e3919acd56c48cda64f5266f5fb99585ef /include
parent26238516804a45636f8c675d492b048c32b82d31 (diff)
downloadafl++-9100f3c416707d926fc100d4441cf32bb1da6dd6.tar.gz
Add initial CoreSight mode support
The original code is: https://github.com/RICSecLab/AFLplusplus-cs/tree/retrage/coresight-mode-pr Signed-off-by: Akira Moroo <retrage01@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/common.h1
-rw-r--r--include/forkserver.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index e3997aa4..6c8e3b3a 100644
--- a/include/common.h
+++ b/include/common.h
@@ -46,6 +46,7 @@ void check_environment_vars(char **env);
char **argv_cpy_dup(int argc, char **argv);
void argv_cpy_free(char **argv);
+char **get_cs_argv(u8 *own_loc, u8 **target_path_p, int argc, char **argv);
char **get_qemu_argv(u8 *own_loc, u8 **target_path_p, int argc, char **argv);
char **get_wine_argv(u8 *own_loc, u8 **target_path_p, int argc, char **argv);
char * get_afl_env(char *env);
diff --git a/include/forkserver.h b/include/forkserver.h
index 7af01cb2..464f208d 100644
--- a/include/forkserver.h
+++ b/include/forkserver.h
@@ -82,6 +82,8 @@ typedef struct afl_forkserver {
bool frida_asan; /* if running with asan in frida mode */
+ bool cs_mode; /* if running in CoreSight mode or not */
+
bool use_stdin; /* use stdin for sending data */
bool no_unlink; /* do not unlink cur_input */