4765 Commits

Author SHA1 Message Date
WorksButNotTested
1b7aa1b63b
Changes to bump FRIDA version and to clone FRIDA repo in to build directory rather than use a submodule as the FRIDA build scripts don't like it (#906)
Co-authored-by: Your Name <you@example.com>
2021-05-08 13:34:24 +02:00
vanhauser-thc
b409d63fd3 fix 2021-05-08 11:24:04 +02:00
vanhauser-thc
6c274546c4 ensure crashes/README.txt exists 2021-05-08 11:03:56 +02:00
hexcoder-
62d5bf5f41 fix new path to custom-mutators 2021-05-08 10:16:44 +02:00
Roman M. Iudichev
069e61dfc6
Exit on time (#904)
* Variable AFL_EXIT_ON_TIME description has been added.
Variables AFL_EXIT_ON_TIME and afl_exit_on_time has been added.
afl->exit_on_time variable initialization has been added.
The asignment of a value to the afl->afl_env.afl_exit_on_time variable from
environment variables has been added.
Code to exit on timeout if new path not found has been added.

* Type of afl_exit_on_time variable has been changed.
Variable exit_on_time has been added to the afl_state_t structure.

* Command `export AFL_EXIT_WHEN_DONE=1` has been added.

* Millisecond to second conversion has been added.
Call get_cur_time() has been added.

* Revert to using the saved current time value.

* Useless check has been removed.
2021-05-07 17:32:17 +02:00
vanhauser-thc
2fd9629478 typo 2021-05-07 09:11:46 +02:00
hexcoder-
32be08d7b3 add some comments 2021-05-07 08:13:50 +02:00
realmadsci
1d9a3d955c
Fix memory errors when trim causes testcase growth (#881) (#903)
* Revert "fixed potential double free in custom trim (#881)"

This reverts commit e9d2f72382cab75832721d859c3e731da071435d.

* Revert "fix custom trim for increasing data"

This reverts commit 86a8ef168dda766d2f25f15c15c4d3ecf21d0667.

* Fix memory errors when trim causes testcase growth

Modify trim_case_custom to avoid writing into in_buf because
some custom mutators can cause the testcase to grow rather than
shrink.

Instead of modifying in_buf directly, we write the update out
to the disk when trimming is complete, and then the caller is
responsible for refreshing the in-memory buffer from the file.

This is still a bit sketchy because it does need to modify q->len in
order to notify the upper layers that something changed, and it could
end up telling upper layer code that the q->len is *bigger* than
the buffer (q->testcase_buf) that contains it, which is asking
for trouble down the line somewhere...

* Fix an unlikely situation

Put back some `unlikely()` calls that were in
the e9d2f72382cab75832721d859c3e731da071435d commit that was
reverted.
2021-05-07 00:14:16 +02:00
Dominik Maier
187ca8e18b more unicorn fixes 2021-05-06 21:51:02 +02:00
hexcoder-
70e2737222 first working NeverZero implementation 2021-05-06 21:11:37 +02:00
Dominik Maier
7317a594fe unicorn fixes 2021-05-06 17:14:53 +02:00
David CARLIER
c3b19f5bf8
instrumentation further move to C++11 (#900) 2021-05-06 15:59:29 +02:00
Dominik Maier
6dc82e620b unicorn mips fixes 2021-05-06 12:06:58 +02:00
Dominik Maier
0618722e49 not on qemu 3 anymore 2021-05-05 18:52:09 +02:00
hexcoder-
c695a031b8 prepare for 32-bit support (later) 2021-05-04 21:34:32 +02:00
hexcoder-
be493f0aba set ARCH for linux intel 32-bit for frida-gum-devkit 2021-05-04 21:32:03 +02:00
hexcoder-
b35e6deb09 fix persistent mode (64-bit) 2021-05-04 20:42:24 +02:00
hexcoder
dd96f01a16
typos 2021-05-04 16:05:07 +02:00
hexcoder-
361dd6e361 add new test for frida_mode (please review) 2021-05-03 21:42:04 +02:00
hexcoder-
e2e7f3f0b5 clarify that no modifications are required. 2021-05-03 20:55:06 +02:00
van Hauser
26f1607766
reverse push (#901)
* Create FUNDING.yml

* Update FUNDING.yml

* disable QEMU static pie

Co-authored-by: Andrea Fioraldi <andreafioraldi@gmail.com>
2021-05-03 11:22:18 +02:00
hexcoder-
6119c2eb5f remove the input file .cur_input at the end of the fuzzing, if AFL_TMPDIR is used 2021-05-01 14:03:28 +02:00
WorksButNotTested
c6e8314446
Support for AFL_ENTRYPOINT (#898)
Co-authored-by: Your Name <you@example.com>
2021-04-30 23:42:50 +02:00
vanhauser-thc
86452cc959 fix stdin trimming 2021-04-30 23:41:06 +02:00
Andrea Fioraldi
d0225c2c4d disable QEMU static pie 2021-04-30 14:01:26 +02:00
vanhauser-thc
f4cc718fdc let aflpp_qemu_driver_hook.so build fail gracefully 2021-04-30 13:56:23 +02:00
vanhauser-thc
56882f3a49 fix statsd writing 2021-04-30 13:44:59 +02:00
vanhauser-thc
094cd917b6 frida: complog -> cmplog 2021-04-30 13:39:50 +02:00
Dominik Maier
38f1394e3a error handling, freeing mem 2021-04-30 13:37:59 +02:00
Dominik Maier
e9d2f72382 fixed potential double free in custom trim (#881) 2021-04-30 13:37:59 +02:00
hexcoder-
b15fcde477 still not working 2021-04-30 12:09:06 +02:00
hexcoder
758bc770a8
typos 2021-04-30 12:02:26 +02:00
vanhauser-thc
caf282040f update changelog 2021-04-30 11:09:49 +02:00
vanhauser-thc
070c9923e2 nits 2021-04-30 10:33:00 +02:00
WorksButNotTested
765f3e5169
Added representative fuzzbench test and test for libxml (#893)
* Added representative fuzzbench test and test for libxml

* Added support for building FRIDA from source with FRIDA_SOURCE=1

Co-authored-by: Your Name <you@example.com>
2021-04-30 10:28:20 +02:00
vanhauser-thc
c9d066038f fix PCGUARD, build aflpp_driver with fPIC 2021-04-30 10:27:43 +02:00
vanhauser-thc
17b860d811 nits 2021-04-29 15:09:20 +02:00
vanhauser-thc
29dbe665a7 nits 2021-04-29 09:12:21 +02:00
WorksButNotTested
26b84e3521
Fixes for aarch64, OSX and other minor issues (#891)
Co-authored-by: Your Name <you@example.com>
2021-04-29 09:06:14 +02:00
vanhauser-thc
aeb6883532 update grammar mutator 2021-04-28 23:29:13 +02:00
vanhauser-thc
423c32969c nit 2021-04-28 22:48:43 +02:00
vanhauser-thc
97dbf5b671 nits 2021-04-28 21:41:04 +02:00
vanhauser-thc
6a134e4a26 frida mode - support non-pie 2021-04-28 21:35:27 +02:00
vanhauser-thc
dedeb01ffa nits 2021-04-28 21:05:21 +02:00
WorksButNotTested
3a0d4fe0d0
Bumped warnings up to the max and fixed remaining issues (#890)
Co-authored-by: Your Name <you@example.com>
2021-04-28 19:26:19 +02:00
Dmitry Zheregelya
f112357e61
Integer overflow/underflow fixes in libdislocator (#889)
* libdislocator: fixing integer overflow in 'max_mem' variable and setting 'max_mem' type to 'size_t'

* libdislocator: fixing potential integer underflow in 'total_mem' variable due to its different values in different threads
2021-04-28 17:42:20 +02:00
vanhauser-thc
da65eef572 fix frida mode 2021-04-28 12:57:29 +02:00
vanhauser-thc
dde0538b48 nits 2021-04-28 10:59:34 +02:00
WorksButNotTested
39ad3b8946
Frida persistent (#880)
* Added x64 support for persistent mode (function call only), in-memory teest cases and complog

* Review changes, fix NeverZero and code to parse the .text section of the main executable. Excluded ranges TBC

* Various minor fixes and finished support for AFL_INST_LIBS

* Review changes

Co-authored-by: Your Name <you@example.com>
2021-04-28 10:25:26 +02:00
hexcoder-
976969dce5 work in progress: not working correctly yet 2021-04-28 00:29:15 +02:00