Commit d91e758d by 文周繁

feat:更新s2fuzzer说明

parent f367d764
# S2fuzzer说明
# S2fuzzer说明
......@@ -70,6 +70,8 @@
### 1.S2fuzzer工具编译
按如下命令编译`s2fuzzer`工具:
```sh
# Install clang (as required by AFL/AFLNet to enable llvm_mode)
sudo apt-get install clang llvm
......@@ -90,8 +92,8 @@ make
编译完成后,工具目录生成如下程序:
| 名称 | |
| :--------------: | :-------------------: |
| 名称 | 说明 |
| :--------------: | :--------------------------: |
| afl-analyze | 输入数据模式分析器 |
| afl-as | 汇编器包装器 |
| afl-gcc | `gcc`编译器封装器 |
......@@ -107,6 +109,8 @@ make
| aflnet-replay | 有状态网络协议重放器 |
| afl-llvm-pass.so | LLVM插桩插件 |
| sock2shm.so | 共享内存加速库 |
| e9tool | `E9Patch` 的线性反汇编工具 |
| testghidra | java实现的`Ghidra`脚本工具集 |
......@@ -135,6 +139,8 @@ make
一般情况下,可以通过以下命令启动对一个server的协议模糊测试:
```sh
s2fuzzer -d -i in -o out -N <server info> -x <dictionary file> -P <protocol> -D 10000 -q 3 -s 3 -E -K -R <executable binary and its arguments (e.g., port number)>
```
......@@ -365,6 +371,8 @@ memory_used = 11604KB
#### 4.1 使用共享内存
在运行模糊测试前,通过以下命令设置`AFL_PRELOAD`环境变量:
```sh
export AFL_PRELOAD=/path/to/s2fuzzer/sock2shm.so
```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment