2381 Commits

Author SHA1 Message Date
Andrea Fioraldi
d231966dbe setup page in book 2021-03-27 09:42:51 +01:00
Andrea Fioraldi
4b77ea9975 book intro 2021-03-27 00:36:13 +01:00
Andrea Fioraldi
1f7be63031 value profile in libafl_targets 2021-03-26 17:53:47 +01:00
andreafioraldi
3b625981fa do not enforce clang in libafl_targets 2021-03-26 11:46:50 +01:00
andreafioraldi
2cd046e1e8 catch assertion errors on win32 2021-03-26 11:42:26 +01:00
andreafioraldi
9c1f836ff2 fix libfuzzer_stb_image 2021-03-26 10:55:23 +01:00
andreafioraldi
7564ce1e87 libfuzzer_stb_image with build.rs and win32 fixes 2021-03-26 10:39:02 +01:00
andreafioraldi
40fe286cf9 run on win32 using the clang wrapper 2021-03-25 20:04:52 +01:00
andreafioraldi
6ddc3ef85a format 2021-03-25 18:53:40 +01:00
root
a0550b3154 compile libfuzzer_libpng on windows 2021-03-25 18:50:40 +01:00
Toka
82f5dad784
Add mutator stats method (#40)
* add LogMutation trait

* change &self to &mut self

* move self.scheduler out of StdFuzzer

* reorder generics?, implement post_exec

* append metadata to the corresponding testcase in the corpus

* turn mutations into Mutators

* impl Named for mutations

* add LoggerScheduledMutator, add fn get_name() to MutatorTuple

* Fix BytesDeleteMutator, and format

* remove TupleList bound on Tail

* turn TokenInsert, TokenReplace into Mutator, fill havoc_mutations

* libfuzzer_libpng

* libfuzzer_libpng_cmpalloc

* libfuzzer_libmozjpeg

* fix tests

* fix libfuzzer_libmozjpeg

* fix tests

* fix LoggerScheduledMutator::mutate

* use vec<u8> instead of String

* fix post_exec and get_name

* fmt

* NamedTuple and HasNameIdTuple

* always clear mutations log

* fix tests

* format

* remove libafl_targets default features

* use vec<string> instead of vec<vec<u8>>

* add alloc::string::String

* format

Co-authored-by: Andrea Fioraldi <andreafioraldi@gmail.com>
2021-03-25 13:04:18 +01:00
Andrea Fioraldi
21b790060d readme 2021-03-24 16:24:37 +01:00
Andrea Fioraldi
79dbdf8251 readme 2021-03-24 16:23:08 +01:00
Andrea Fioraldi
9c0fdee007 complete libfuzzer_libpng example with compiler wrapper 2021-03-24 16:15:07 +01:00
Andrea Fioraldi
8d2713c4d9 libfuzzer_libpng wrappers 2021-03-24 15:28:58 +01:00
Andrea Fioraldi
1c8cdc76a8 create libafl_targets and start new structure for libfuzzer_libpng 2021-03-23 20:39:23 +01:00
Andrea Fioraldi
414a66382b clang wrapper extend api 2021-03-23 14:57:44 +01:00
Andrea Fioraldi
1d2897442b clang wrapper extend api 2021-03-23 14:55:55 +01:00
Dominik Maier
7f72d70977
Windows Fuzzing Example (#41)
* windows fuzzer target and minor changes - breaks android support and maybe linux build

* adapted windows example

* removed warnings from build.rs

* fixed build on unix

* fixed no_std

* build fix, silenced warnings

* no_std warning silenced

* clippy fixes

* fmt

* windows fuzzer target and minor changes - breaks android support and maybe linux build

* adapted windows example

* removed warnings from build.rs

* fixed build on unix

* fixed no_std

* build fix, silenced warnings

* no_std warning silenced

* clippy fixes

* fmt

* clippy

* trying to add clang support

* debugging win build

* debugging win build more

* debuggin..

* debuggin....

* more debugging

* giving up

Co-authored-by: richinseattle <richinseattle@gmail.com>
2021-03-23 13:50:22 +01:00
Andrea Fioraldi
0a3b9f1a96 fix libafl-cc test 2021-03-23 12:20:36 +01:00
Andrea Fioraldi
19133f5827 clang wrapper skeleton 2021-03-23 12:17:28 +01:00
Andrea Fioraldi
009c35dbf9 docs folder 2021-03-22 20:22:42 +01:00
Andrea Fioraldi
61a89f4aa6 skeleton for libafl_cc 2021-03-22 18:29:46 +01:00
Dominik Maier
5f74a08316 fix frida wrapper 2021-03-22 17:02:14 +01:00
Dominik Maier
92dd0bfcb2 added main.rs wrapper for frida 2021-03-22 16:58:53 +01:00
Dominik Maier
556141e9a3 ignored frida on windows 2021-03-22 16:54:31 +01:00
Dominik Maier
15955f0af9 Merge branch 'dev' of https://github.com/AFLplusplus/libAFLrs into dev 2021-03-22 16:16:25 +01:00
Dominik Maier
c328a27ebd ci on dev 2021-03-22 16:16:18 +01:00
Dominik Maier
33654dbf04 fixed no_std 2021-03-22 15:09:47 +01:00
Dominik Maier
11686b1667 fixed libfuzzer_libmozjpeg build 2021-03-22 15:04:56 +01:00
Dominik Maier
013dc85328 download to out_dir 2021-03-22 14:04:34 +01:00
s1341
a02cc39bba
Frida Executor Example (#27)
* inprocess: Allow InProcessExecutor to take a function pointer or a closure

* frida: initial working (but slow + buggy) frida helper

Issues:
- it's slow as ****
- there is an Llmp exception after the 227th corpus entry is found
- Cargo.toml lines currently import from a local ../frida-rust dir, as frida-rust is still under development

* inprocess: let the InProcessExecutor take a closure or a function pointer

* frida: working FridaHelper with InProcessExecutor

* frida: Apply suggestions; Move to RefCell; Cleanup warnings

* frida: link libstdc++_static.a on android

* take an FnMut in InProcessExecutor

* adapt libfuzzer_libpng to FnMut in InProcessExecutor

* create FridaInProcessExecutor and FridaEdgeCoverageHelper

* fix frida build.rs

* frida: move gum to main, get rid of lazy_static; use PageProtection enum

* stalker exclude

* frida: implement inline map-update for x86_64

* inprocess: add harness/harness_mut accessors

* format

* remove get_module_size from FridaEdgeCoverageHelper

* frida: implement aarch64 inline map update

* frida: add missing IndexMode

* add timeouts for executors

* move timeouts to observer

* add with_timeout constructor for Observer

* cast to i64 later in pre_exec

* add cfg(unix) guards

* add TimeoutExecutor

* add TimeoutFeedback and send ExitKind::Timeout from the handler

* pass Duration and move timeout stuff to post_exec

* format

* add timeouts to libpng_libfuzzer

* 10 sec timeout

* timeout executor file

* fix timeout executor no_std

* format

* todos

* Win32ShMem

* win32 exceptions

* fixes

* fix win32 build.rs

* fix win32 build.rs

* fixes fro win32

* fixes for win32

* fixes for win32

* fixes for win32

* fixes for win32

* fixes for win32

* fixes for win32

* fixes for win32

* fixes for win32

* fixes for win32

* fixes for win32

* inprocess::windows_exception_handler

* inprocess::windows_exception_handler fixes

* windows_exception_handler in InProcessExecutor

* inprocess::windows_exception_handler fix

* fix windows exceptions mapping

* format

* format

* inprocess: Allow InProcessExecutor to take a function pointer or a closure

* frida: initial working (but slow + buggy) frida helper

Issues:
- it's slow as ****
- there is an Llmp exception after the 227th corpus entry is found
- Cargo.toml lines currently import from a local ../frida-rust dir, as frida-rust is still under development

* inprocess: let the InProcessExecutor take a closure or a function pointer

* frida: Apply suggestions; Move to RefCell; Cleanup warnings

* take an FnMut in InProcessExecutor

* adapt libfuzzer_libpng to FnMut in InProcessExecutor

* reenabled ci for prs

* frida: update to frida-rust 0.3.2

* frida: fix buid errors

* frida: fix build_and_test.yml

* frida: uses crates.io for frida-gum and frida-gum-sys

* fix merge errors

* fix typo

* frida: x86_64 now working

Co-authored-by: Andrea Fioraldi <andreafioraldi@gmail.com>
Co-authored-by: toka <tokazerkje@outlook.com>
Co-authored-by: Dominik Maier <domenukk@gmail.com>
2021-03-22 12:45:38 +01:00
Dominik Maier
245379c020 added fuzz_loop_for 2021-03-21 23:38:06 +01:00
Dominik Maier
ab9a2485f7 llmp cleanups 2021-03-21 22:56:28 +01:00
Takayuki Maeda
39d33ce7ff
Fix clippy warnings (#37)
* fix some clippy warnings

* add a actions job for linting

* remove needless line

* add `run-on` to build_and_test.yml
2021-03-21 22:05:25 +01:00
Andrea Fioraldi
6e4c6a9b6b
Merge pull request #30 from AFLplusplus/dev
Dev
2021-03-19 19:05:10 +01:00
Andrea Fioraldi
48791ddb75
Merge pull request #34 from AFLplusplus/windows
Windows support
2021-03-19 19:04:52 +01:00
Andrea Fioraldi
9bad737f52 format 2021-03-19 05:52:56 -07:00
Andrea Fioraldi
6840016f7d Merge branch 'windows' of github.com:AFLplusplus/LibAFL into windows 2021-03-19 03:44:18 -07:00
Andrea Fioraldi
68b8aa81cd fix windows exceptions mapping 2021-03-19 03:43:59 -07:00
Andrea Fioraldi
efe3d31cc2 format 2021-03-18 17:43:29 +01:00
Andrea Fioraldi
9a527e4a9c inprocess::windows_exception_handler fix 2021-03-18 17:24:12 +01:00
Andrea Fioraldi
3f013c481f windows_exception_handler in InProcessExecutor 2021-03-18 17:22:47 +01:00
Andrea Fioraldi
7cf559eb85 inprocess::windows_exception_handler fixes 2021-03-18 17:12:00 +01:00
Andrea Fioraldi
b4e061750b inprocess::windows_exception_handler 2021-03-18 17:04:59 +01:00
Andrea Fioraldi
35782d2e9a fixes for win32 2021-03-18 16:46:34 +01:00
Andrea Fioraldi
38368c121b fixes for win32 2021-03-18 16:45:54 +01:00
Andrea Fioraldi
301f152d39 fixes for win32 2021-03-18 16:42:05 +01:00
Andrea Fioraldi
c5d8b7fc62 fixes for win32 2021-03-18 16:41:10 +01:00
Andrea Fioraldi
c0b3d25ae2 fixes for win32 2021-03-18 16:38:04 +01:00