Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27d05f3

Browse files
Merge pull request #1939 from bet4it/docs
Improve binary-only related docs
2 parents c38dedb + 86d76b5 commit 27d05f3

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

docs/fuzzing_binary-only_targets.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ For more information, see
9494

9595
In FRIDA mode, you can fuzz binary-only targets as easily as with QEMU mode.
9696
FRIDA mode is most of the times slightly faster than QEMU mode. It is also
97-
newer, lacks COMPCOV, and has the advantage that it works on MacOS (both intel
98-
and M1).
97+
newer, and has the advantage that it works on MacOS (both intel and M1).
9998

10099
To build FRIDA mode:
101100

@@ -113,10 +112,6 @@ The mode is approximately 2-5x slower than compile-time instrumentation, and is
113112
less conducive to parallelization. But for binary-only fuzzing, it gives a huge
114113
speed improvement if it is possible to use.
115114

116-
If you want to fuzz a binary-only library, then you can fuzz it with frida-gum
117-
via frida_mode/. You will have to write a harness to call the target function in
118-
the library, use afl-frida.c as a template.
119-
120115
You can also perform remote fuzzing with frida, e.g., if you want to fuzz on
121116
iPhone or Android devices, for this you can use
122117
[https://github.com/ttdennis/fpicker/](https://github.com/ttdennis/fpicker/) as
@@ -302,7 +297,6 @@ some are very hard to set up...
302297
* S2E: [https://github.com/S2E](https://github.com/S2E)
303298
* TinyInst:
304299
[https://github.com/googleprojectzero/TinyInst](https://github.com/googleprojectzero/TinyInst)
305-
(Mac/Windows only)
306300
* ... please send me any missing that are good
307301

308302
## Closing words

frida_mode/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,15 @@ static void afl_print_env(void) {
166166

167167
if (fd < 0) {
168168

169-
FWARNF("Failed to open /proc/self/cmdline, errno: (%d)", errno);
169+
FWARNF("Failed to open /proc/self/environ, errno: (%d)", errno);
170170
return;
171171

172172
}
173173

174174
ssize_t bytes_read = read(fd, buffer, PROC_MAX - 1);
175175
if (bytes_read < 0) {
176176

177-
FFATAL("Failed to read /proc/self/cmdline, errno: (%d)", errno);
177+
FFATAL("Failed to read /proc/self/environ, errno: (%d)", errno);
178178

179179
}
180180

frida_mode/src/ranges.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ void ranges_init(void) {
653653
/*
654654
* After step 4 we have the total ranges to be instrumented, we now subtract
655655
* that either from the original ranges of the modules or from the whole
656-
* memory if AFL_INST_NO_DYNAMIC_LOAD to configure the stalker.
656+
* memory if AFL_FRIDA_INST_NO_DYNAMIC_LOAD to configure the stalker.
657657
*/
658658
if (ranges_inst_dynamic_load) {
659659

0 commit comments

Comments
 (0)