1 Star 0 Fork 1

jinyu00/winafl-vs2017

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
afl-staticinstr.h 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
hac425 提交于 2019-09-08 21:00 . add vs2017 project
/*
WinAFL persistent loop implementation for statically instrumented target
-----------------------------------------------------------------------
Written by Axel "0vercl0k" Souchet <0vercl0k@tuxfamily.org>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
This header is the glue you need to make afl-fuzz and your statically
instrumented target play nice together.
The entry-point __afl_persistent_loop is meant to be called at the start of the harness,
in a loop like below. The function will set up everything needed to communicate
and synchronize with afl-fuzz - if it is present (named pipe, shm, etc).
while(__afl_persistent_loop()) {
// init state
// exercise target
// clear state
}
If afl-fuzz isn't detected, then the function will simply return TRUE the first
time so that the body gets executed once.
*/
#pragma once
#include <Windows.h>
#include <stdint.h>
#include <tchar.h>
#if defined(_M_X64) || defined(__amd64__)
#error Static instrumentation is only available for 32 bit binaries
#endif
//
// Enable the variable behavior debugging mode.
//
// #define AFL_STATIC_VARIABLE_BEHAVIOR_DEBUG
#ifdef __cplusplus
extern "C" {
#endif
BOOL __afl_persistent_loop();
#ifdef __cplusplus
}
#endif
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hac425/winafl-vs2017.git
git@gitee.com:hac425/winafl-vs2017.git
hac425
winafl-vs2017
winafl-vs2017
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385