Compare commits

...

1317 Commits

Author SHA1 Message Date
5ebb0df444 more stability 2020-07-04 10:44:38 +02:00
0eca7a4f73 small fix 2020-07-03 23:51:33 +02:00
1bee082739 notify afl-fuzz about variadic map 2020-07-03 23:41:02 +02:00
bac6c7891d variadic map size 2020-07-03 23:34:18 +02:00
8b065725cc edges instrumentation at branch link time 2020-07-03 23:07:35 +02:00
139665c01d ubsan options 2020-07-03 10:20:10 +02:00
509b991607 Merge pull request #435 from devnexen/libtokencap_solaris
libtokencap illumos/solaris support proposal.
2020-07-03 09:45:19 +02:00
c671ecb511 Fix map list iteration. 2020-07-02 10:23:56 +01:00
1aa7c87ea8 libtokencap illumos/solaris support proposal. 2020-07-02 07:10:43 +01:00
00abb999e3 v2.66d init 2020-07-01 18:24:00 +02:00
f2efea4b46 Revert "Revert "updated unicorn version""
This reverts commit 857046ede5.
2020-07-01 16:05:04 +02:00
857046ede5 Revert "updated unicorn version"
This reverts commit 4515e06ca8.
2020-07-01 15:57:48 +02:00
4515e06ca8 updated unicorn version 2020-07-01 15:50:25 +02:00
97cef46b62 warn on deprecated env vars 2020-07-01 10:03:34 +02:00
4ec29928bf because github errors reput typo fix 2020-07-01 09:30:14 +02:00
b67905c40f Merge branch 'stable' into dev 2020-07-01 09:19:32 +02:00
6b98157c1a v2.66c release preparation 2020-07-01 09:15:47 +02:00
4d2ccd18f6 comments fix 2020-07-01 07:55:58 +02:00
52a0410d92 fix text 2020-07-01 07:49:07 +02:00
d898418037 restore credit for afl-tmin fork server patch 2020-07-01 07:43:14 +02:00
2aaa60e4fc comments fix 2020-07-01 07:39:55 +02:00
e9dce31496 comments fixed 2020-07-01 07:35:42 +02:00
b201279ae5 text fix 2020-07-01 07:27:53 +02:00
be83f06b2f renaming remains fixed 2020-07-01 07:25:33 +02:00
9d5007b18e Big renaming (#429)
* first commit, looks good

* fix ascii percentage calc

* fix ascii percentage calc

* modify txt configs for test

* further refinement

* Revert "Merge branch 'text_inputs' into dev"

This reverts commit 6d9b29daca, reversing
changes made to 07648f75ea.

* blacklist -> ignore renaming

* rename whitelist -> instrumentlist

* reduce the time interval in which the secondaries sync

Co-authored-by: root <root@localhost.localdomain>
2020-06-30 23:34:26 +02:00
7527c76c74 reduce the time interval in which the secondaries sync 2020-06-30 17:33:47 +02:00
06264df168 rename whitelist -> instrumentlist 2020-06-30 17:28:21 +02:00
878b27af76 blacklist -> ignore renaming 2020-06-30 16:52:48 +02:00
4b99ebbf22 Revert "Merge branch 'text_inputs' into dev"
This reverts commit 6d9b29daca, reversing
changes made to 07648f75ea.
2020-06-29 18:48:17 +02:00
6d9b29daca Merge branch 'text_inputs' into dev 2020-06-29 18:35:51 +02:00
3f1288e2f9 Merge pull request #427 from AFLplusplus/dev
workaround for recent afl++ versions
2020-06-29 18:32:12 +02:00
8f1b78f49e Merge pull request #426 from AFLplusplus/dev
Dev
2020-06-29 18:19:35 +02:00
07648f75ea workaround for recent afl++ versions 2020-06-29 12:21:14 +02:00
3a0c91b862 fix unittest 2020-06-29 01:23:30 +02:00
e5e485fcdb fix autodict 2020-06-29 00:58:05 +02:00
16f3df7cc6 fix for shmem+autodict 2020-06-29 00:18:29 +02:00
6d0f086d9c less problematic definitions 2020-06-28 23:50:25 +02:00
c25a602a03 less problematic definitions 2020-06-28 23:47:57 +02:00
81974c4d5e debug code 2020-06-28 22:50:18 +02:00
5f3b7e6cdf typo aonce -> once 2020-06-28 21:21:27 +02:00
910b9f3f25 O2 instead of O3 for .o target files 2020-06-28 16:53:31 +02:00
4fd2cb2ce0 update idea list 2020-06-28 14:51:49 +02:00
e234a6ae4e update schedules in readme 2020-06-28 14:46:57 +02:00
ee17782e61 fix output for LTOinstrim 2020-06-28 00:13:31 +02:00
cd6954e3c1 fix make static 2020-06-27 23:11:10 +02:00
29e41a09d5 fix typos 2020-06-27 18:16:27 +02:00
4103687f76 afl-sharedmem.c: fix leaks on error paths (SysV shared memory) 2020-06-27 00:13:24 +02:00
976e99b1d4 original fix for calibration error 2020-06-26 10:17:21 +02:00
da7c548452 afl-plot remove error print 2020-06-26 09:53:54 +02:00
1ecfd78418 implement sharedmem mmap for cmplog 2020-06-26 09:13:07 +02:00
07fead0466 fix shared memory leaks in afl-showmap, initialize cmplog_mode 2020-06-26 01:14:21 +02:00
8bd8442bcc fix for schedules 2020-06-25 22:44:46 +02:00
5904083231 remove debug 2020-06-25 22:28:56 +02:00
171b1923e9 shmem release fix 2020-06-25 22:02:02 +02:00
8d5eb9487d make llvm_mode pcguard instrumentation collision free 2020-06-25 20:09:56 +02:00
633a3feab9 fix makefile 2020-06-25 17:51:48 +02:00
c8f60a7fbf initialized variable 2020-06-25 17:25:16 +02:00
3a62bb68e0 updated unicornafl 2020-06-25 17:13:16 +02:00
8178f4dfdd remove radamsa, add radamsa custom mutator 2020-06-25 16:51:29 +02:00
4a3305c007 Merge pull request #425 from dgmelski/fix-recalibration
Fix saturated maps & stability cliff in recalibration
2020-06-25 15:16:10 +02:00
9858bc81a3 GNUmakefile: warn about '.' being first path in PATH environment variable. This causes recursion in 'as'. (seen in Haiku) 2020-06-25 13:28:34 +02:00
b5573b3adb add seek power schedule, remove update stats in calibration, fix help output 2020-06-25 10:33:59 +02:00
15dd4ad177 fix plot 2020-06-25 08:50:34 +02:00
d540971443 Fix saturated maps & stability cliff in recalibration
I have observed two problems:

  1. A sudden "stability cliff" where stability drops precipitously.

  2. A sudden jump to a 100% saturated "density map".

Both issues are due to attempted "recalibration" of a case at the
beginning of fuzz_one_original() or mopt_common_fuzzing().  See the
comments "CALIBRATION (only if failed earlier on)" in those functions
and the subsequent call to calibrate_case().

At those calls to calibrate_case(), afl->fsrv.trace_bits holds
trace_bits for a run of the SUT on a prior queue entry.  However,
calibrate_case() may use the trace_bits as if they apply to the
current queue entry (afl->queue_cur).

Most often this bug causes the "stability cliff".  Trace bits are
compared for runs on distinct inputs, which can be very different.
The result is a sudden drop in stability.

Sometimes it leads to the "saturated map" problem.  A saturated
density map arises if the trace bits on the previous entry were
"simplified" by simplify_trace().  Simplified traces only contain the
values 1 and 128.  They are meant to be compared against
virgin_crashes and virgin_tmouts.

However, this bug causes the (stale) simplified trace to be compared
against virgin_bits during a call to has_new_bits(), which causes
every byte in vigin_bits to be something other than 255.  The overall
map density is determined by the percentage of bytes not 255, which
will be 100%.  Worse, AFL++ will be unable to detect novel occurrences
of edge counts 1 and 128 going forward.

This patch avoids the above issues by clearing q->exec_cksum when
calibration fails.  Recalibrations are forced to start with a fresh
trace on the queue entry.

Thanks to @andreafioraldi for suggesting the current, improved patch.
2020-06-24 17:59:04 -04:00
1d7c76d141 decrease time to sync for main 2020-06-24 17:37:16 +02:00
224a49341a update .gitignore 2020-06-24 17:04:28 +02:00
fce010f051 add -D option for -S 2020-06-24 11:14:00 +02:00
bdc8e3b79e create .synced/NAMES.last to document last sync attempts 2020-06-24 11:09:33 +02:00
9289af040c gitignore 2020-06-24 08:23:31 +02:00
49a769ac06 lto whitelist in test.sh 2020-06-23 21:23:10 +02:00
2b450aeb20 fix test.sh 2020-06-23 18:21:50 +02:00
5f1c0111a6 fix make files 2020-06-23 18:06:08 +02:00
89f0dc2d14 fix gcc mode for travis 2020-06-23 17:43:04 +02:00
cffb0e9a25 fix gcc makefile 2020-06-23 17:36:05 +02:00
2b26e3867f fix gcc makefile 2020-06-23 17:31:52 +02:00
aad433e11e Merge branch 'dev' of github.com:vanhauser-thc/AFLplusplus into dev 2020-06-23 15:08:49 +02:00
59e1a18197 Merge pull request #422 from devnexen/haiku__build_upd
Haiku  build upd
2020-06-23 11:01:22 +02:00
8f98044d69 Libdislocator Haiku build fix 2020-06-23 09:41:38 +00:00
6c414409d4 libtokencap Haiku support 2020-06-23 09:29:57 +00:00
7119bf5d86 Added rand, hash unittests 2020-06-22 21:58:23 +02:00
ea1222b33f old compiler fix 2020-06-22 21:40:02 +02:00
37edfe2de9 shmem support for afl-tmin and afl-showmap 2020-06-22 19:56:34 +02:00
76a2d9b59b further refinement 2020-06-22 13:48:59 +02:00
87f127722c fix afl-cmin.bash 2020-06-22 08:28:41 +02:00
a49b5ef072 allow /tmp 2020-06-22 07:16:24 +02:00
5cad92e57e fix unicorn mode for CFLAGS 2020-06-21 18:07:30 +02:00
f6ef1fe65e fix libcompcov for CFLAGS 2020-06-21 16:43:55 +02:00
048e429356 remove -Werror and add include for libdislocator 2020-06-21 16:33:55 +02:00
eb3cb4bbf8 fix for s=0 2020-06-21 16:21:59 +02:00
b0866f59cc fix for -s 0 2020-06-21 14:08:41 +02:00
b3b016a4a3 fix libradamsa see issue #419 2020-06-20 22:39:12 +02:00
341e17bf53 Merge pull request #418 from jonasmollerlarsen/dev
Fix when env. PATH contains spaces
2020-06-20 13:37:22 +02:00
eb4561e3a6 afl-plot: fix issue #417, also check relative paths for directories 2020-06-20 13:09:47 +02:00
990b234067 Fix when env. PATH contains spaces 2020-06-20 11:50:53 +02:00
07a4e6370a modify txt configs for test 2020-06-20 10:55:02 +02:00
1381e96d8c fix ascii percentage calc 2020-06-20 09:22:14 +02:00
5ca303393f fix ascii percentage calc 2020-06-20 09:21:02 +02:00
de2c565953 first commit, looks good 2020-06-19 18:05:04 +02:00
2a254fce8f fix afl-clang-fast for default pcguard mode 2020-06-19 14:21:34 +02:00
758f136d3e update todo 2020-06-18 20:39:06 +02:00
5d3d86c680 update todo 2020-06-18 15:33:16 +02:00
d8d5adeb61 Merge pull request #416 from Mem2019/patch-2
`fault == afl->crash_mode` should be likely
2020-06-18 07:08:11 +02:00
003456f770 fault == afl->crash_mode should be likely
Since during normal fuzzing, crash_mode is FSRV_RUN_OK, and fault is also usually FSRV_RUN_OK since most executions are valid executions, thus it should be likely instead of unlikely
2020-06-18 11:23:10 +08:00
394d8ade15 work around for llvm 11 bug 2020-06-17 22:21:09 +02:00
61107c59cf fix displayed schedule 2020-06-17 16:46:30 +02:00
889e54eab8 unit tests: fix stupid compiler warning for gcc 4.8.4 2020-06-16 23:07:33 +02:00
a14f3c90a8 fix unit tests when exit is called at the end 2020-06-16 22:37:56 +02:00
e05ed58bf8 fix test.sh for failing unit tests 2020-06-16 19:44:52 +02:00
d6824d540b Merge pull request #408 from Minilulatsch/dev
Fixed missing cast in afl-clang-fast.c, which results in a compilation error when using __AFL_FUZZ_TESTCASE_BUF in a C++ target
2020-06-16 19:36:11 +02:00
2e35326040 Fixed missing cast in afl-clang-fast.c, which results in a compilation error when using __AFL_FUZZ_TESTCASE_BUF in a C++ target 2020-06-16 18:04:38 +02:00
e5dcaa818e set class afl instrumentation if llvm <= 6 2020-06-16 15:59:09 +02:00
bac2da8669 fix for *BSD: remove all HAVE_ARC4RANDOM dependencies 2020-06-16 01:29:07 +02:00
9c293b5b7b code format 2020-06-15 22:05:37 +02:00
6804065a8d using XX64 for 32 bit hash 2020-06-15 22:03:01 +02:00
246444dd57 tidied hash32, unicorn 2020-06-15 21:40:37 +02:00
6a216b5708 make aflpp driver performant again 2020-06-15 21:39:45 +02:00
f6d2da27e3 switched to new MOpt dictionary support 2020-06-15 21:07:35 +02:00
ada59feda8 improve performance for default power schedule 2020-06-15 20:02:28 +02:00
af8d4d49ed add new dictionary from antonio-morales ftp fuzzing 2020-06-15 16:30:41 +02:00
dc002b4b35 code format 2020-06-15 11:08:24 +02:00
acb0a2f027 fixed potential bugs 2020-06-15 11:07:57 +02:00
43bbbbf4e0 rust unicornafl++ 2020-06-15 00:20:13 +02:00
05da66b5e9 unicornafl update 2020-06-14 23:30:36 +02:00
b8cea84195 disable focal on travis temporarily 2020-06-14 18:48:49 +02:00
741dce3ca6 Merge pull request #404 from devnexen/haiku_porting
Porting to Haiku.
2020-06-14 17:38:17 +02:00
67d87dd2a9 Porting to Haiku.
getrusage does not implement resident memory gathering, no shm api neither.
2020-06-14 15:32:02 +00:00
ab142282a3 kill targets on exit 2020-06-14 16:08:58 +02:00
bfe5b88e78 code format 2020-06-13 14:28:42 +02:00
fc26001b50 fix shmem 2020-06-13 13:47:43 +02:00
1542c7f49c fix typos 2020-06-13 10:58:30 +02:00
615ab1a7b8 fix resize window crash and slightly more performant timed_read 2020-06-13 00:14:14 +02:00
ce1af1bc9c code-format killed the compilation 2020-06-12 16:57:33 +02:00
ab0e3fdd82 code-format killed the compilation 2020-06-12 16:50:36 +02:00
40aca0b6b3 fix for checksums 2020-06-12 16:33:20 +02:00
a632c00b0d switch to faster and better hash + random 2020-06-12 16:08:49 +02:00
db2e04361d shm debug and fixes 2020-06-12 11:57:54 +02:00
7d19b108c4 fix warnings 2020-06-12 09:23:38 +02:00
818afe6232 added MOpt dictionary support from repo 2020-06-12 08:27:03 +02:00
e8da5f9e28 code format and debug 2020-06-11 19:30:28 +02:00
b3fee6cab2 rust bindings for unicornafl 2020-06-11 16:36:45 +02:00
da7a8ce60a issue #401: remove all TAB characters from dictionary files 2020-06-10 21:53:58 +02:00
a6386bd640 Merge pull request #400 from devnexen/gotcpu_illumos
start of illumos cpu binding implementation.
2020-06-10 20:29:55 +02:00
b3feda052d start of illumos cpu binding implementation.
The current user needs the proc_owner permission, not something doable
 via the settings script.
2020-06-10 16:16:47 +01:00
c1eb2bccaa more output in uc-tests 2020-06-10 12:09:45 +02:00
5cb6dc7795 Merge pull request #398 from devnexen/array_subscript_warn_fix
Disable array subscript warning
2020-06-10 09:25:31 +02:00
af66d8027b Merge pull request #399 from devnexen/non_aff_build_fix
systems w/o affinity support build fix
2020-06-10 09:25:06 +02:00
4ee4495120 Disable array subscript warning 2020-06-09 22:43:31 +01:00
c02721775a updated unicorn 2020-06-09 23:15:24 +02:00
cbdcd32959 systems w/o affinity support build fix 2020-06-09 22:14:13 +01:00
12bdefe00e Merge pull request #392 from AFLplusplus/dev
Push to master
2020-06-09 19:25:09 +02:00
81829d132b always set status 2020-06-09 17:09:34 +02:00
5fa0f8f55b fix debug output in stats 2020-06-09 17:01:41 +02:00
7e818e877a fixing travis 2020-06-09 15:45:50 +02:00
32a40ab5c5 add cpu affinity to fuzzer_stats 2020-06-09 11:22:27 +02:00
c2087b7c13 more unicornafl fixes 2020-06-09 04:18:02 +02:00
feffae60dd code format 2020-06-09 03:48:50 +02:00
8e3f6fe2dc added persistent mode testcase 2020-06-09 03:46:17 +02:00
92b8c5bb60 fixed shmap fuzzing 2020-06-09 03:03:21 +02:00
646237e234 fix x86 notzero 2020-06-08 11:52:49 +02:00
b4f71c7cc7 Merge pull request #396 from Kyle-Kyle/master
fix a fundamental bug: favor random branches
2020-06-08 08:57:25 +02:00
73334207ce fix a fundamental bug: favor random branch randomly 2020-06-07 15:14:25 -07:00
e8a6b1cfb5 updated unicorn 2020-06-07 16:22:39 +02:00
748238d6ab Revert "updated unicorn"
This reverts commit 5fcd4bb082.
2020-06-07 16:19:51 +02:00
5fcd4bb082 updated unicorn 2020-06-07 00:41:46 +02:00
a1aef91e39 Merge pull request #395 from toralf/dev
unicorn_mode/samples/persistent/harness.c: fix comment
2020-06-06 16:53:43 +02:00
c2c128dd67 unicorn_mode/samples/persistent/harness.c: fix comment
Signed-off-by: Toralf Förster <toralf.foerster@gmx.de>
2020-06-06 16:41:40 +02:00
372206e159 aflpp_debug 2020-06-06 11:45:08 +02:00
c036108b59 Merge pull request #394 from devnexen/libtoken_api_nbsd_upd
libdislocator, adding subset of specific NetBSD api.
2020-06-05 17:50:52 +02:00
b5c77cf4f6 libdislocator, adding subset of specific NetBSD api. 2020-06-05 15:32:27 +01:00
2b33be939a fix qemu mode 2020-06-05 09:55:22 +02:00
e01cad2f7d qemu debug 2020-06-05 09:42:17 +02:00
a1beb72cad qemu_mode: fix error handling of mmap 2020-06-04 22:27:46 +02:00
a9348e0acc fix cmplog for shmem persistent mode 2020-06-04 16:31:53 +02:00
9a1e22afab typo 2020-06-04 15:31:27 +02:00
855ee06247 add afl-ld-lto for LTO 2020-06-04 13:57:16 +02:00
f1ad9bdaea fix 2020-06-04 09:10:58 +02:00
2f73215d4f update libfuzzer driver 2020-06-04 08:53:05 +02:00
155405e0d0 Merge branch 'master' into dev 2020-06-04 03:18:41 +02:00
88e83c7322 code format 2020-06-04 02:53:24 +02:00
35ddec7aeb fix shmem persistent mode 2020-06-04 02:37:05 +02:00
e11922e5cc adapted unicornafl to new shmap 2020-06-03 19:27:59 +02:00
a79c002145 Merge pull request #390 from devnexen/obsd_no_retpoline
OpenBSD build update and llvm mode fix
2020-06-03 18:32:44 +02:00
ea91cfdf9a fix shmem 2020-06-03 18:09:06 +02:00
031e4300a5 switch order of shmem fuzz 2020-06-03 16:19:09 +02:00
dd0ca7335f switch shmem_len to the map 2020-06-03 15:49:23 +02:00
686d8823eb OpenBSD: add missing limits.h header for PATH_MAX 2020-06-03 17:43:33 +02:00
a5d554c3ef improved unicornafl speed 2020-06-03 15:18:07 +02:00
177db9cf79 no inline in qemu driver 2020-06-03 11:51:35 +02:00
2d8c3d2934 fix conflicts 2020-06-03 11:41:30 +02:00
f1192b2d16 AFL_QEMU_DRIVER_NO_HOOK 2020-06-03 11:38:44 +02:00
fc164e4709 code format 2020-06-03 10:50:49 +02:00
1c95e2e8e0 aflpp libfuzzer driver for qemu mode 2020-06-03 10:34:29 +02:00
9962de1a4c shared mem input for qemu persistent hook 2020-06-03 09:57:44 +02:00
304a72c1ff added shmem support to unicornafl 2020-06-03 02:00:58 +02:00
83112ed5e0 got rid of questionable phrasing 2020-06-02 14:54:24 +02:00
fbd781fc83 Merge branch 'dev' of github.com:aflplusplus/aflplusplus into dev 2020-06-02 14:10:44 +02:00
62306f5ce8 minor fixes 2020-06-02 14:10:40 +02:00
1d15048f2f hopeful finally change for libfuzzer driver 2020-06-01 15:30:44 +02:00
adcffce0a0 fix libfuzzer driver 2020-06-01 14:57:05 +02:00
9a65fe904d small changes to libfuzzer driver 2020-06-01 13:37:50 +02:00
ac998e9222 minimal changes to a test 2020-06-01 13:15:34 +02:00
15c0ad60c5 minimal changes to a test 2020-06-01 13:15:16 +02:00
0de25f08ba code format 2020-06-01 12:30:55 +02:00
bca7ce8043 fixed persistent mode shared mem fuzzing 2020-06-01 12:30:20 +02:00
ee14785f68 starting shmap support for unicorn 2020-05-31 04:13:41 +02:00
c0ed118ba5 comment 2020-05-30 20:38:01 +02:00
0adb664a31 OpenBSD build update and llvm mode fix
Unlike upstream version, LLVM in OpenBSD enable by default anti ROP gadget
 leading to bigger binaries and lower performances.
On OpenBSD, it needs to link to c++ abi for th unwind symbols.
2020-05-30 19:28:47 +01:00
4a54328901 rename var time->time_ms 2020-05-30 17:11:45 +02:00
24508194c2 removed read_timed 2020-05-30 14:03:52 +02:00
95b46b4278 reverted extendended read_timed 2020-05-30 13:53:00 +02:00
b16ccb4811 Revert "code format"
This reverts commit 8f19becb62.
2020-05-30 13:51:29 +02:00
4119752f83 fix forkserver change 2020-05-30 13:37:27 +02:00
b7b5fdf42a fix vor afl-clang 2020-05-30 13:31:10 +02:00
dbd9423fc0 PowerPc support 2020-05-30 11:32:11 +02:00
8f19becb62 code format 2020-05-30 11:05:53 +02:00
38e5c32a55 corrected read_timed for values > 4 2020-05-30 11:02:34 +02:00
0c50945303 update readme 2020-05-30 07:22:51 +02:00
8726d7b0a3 simplified read_timed 2020-05-30 06:51:51 +02:00
408ef5298b Merge pull request #383 from dgmelski/fix-read-timed
Fix read_timed when accumulating short reads
2020-05-29 18:58:25 +02:00
2ce243bc6e whitelist wildcard for LTO 2020-05-29 16:27:01 +02:00
255594ba3a Merge pull request #385 from sirmc/dev
Support UNIX-style wildcards in AFL_LLVM_WHITELIST file
2020-05-29 16:21:54 +02:00
8bb0232ace Remove AFL_LLVM_WHITELIST_FNMATCH env variable 2020-05-29 15:47:34 +02:00
e3efacaae6 Merge pull request #386 from AFLplusplus/dev
code format
2020-05-29 14:44:04 +02:00
a550df4301 code format 2020-05-29 14:43:03 +02:00
710dda5221 Merge pull request #374 from AFLplusplus/dev
Dev
2020-05-29 14:35:05 +02:00
c3b864d8d4 add Perl dictionaries from RootUp 2020-05-29 12:55:46 +02:00
6892018142 Revert "perl.dict"
This reverts commit 4ad3144f50.
2020-05-29 12:48:06 +02:00
84df805ed3 Do clang-format 2020-05-29 12:11:19 +02:00
9c286da29b gcc_plugin: better error message when compiler and plugin versions do not match 2020-05-29 12:10:45 +02:00
92b7974f44 .gitignore: add *.pyc 2020-05-29 12:07:09 +02:00
38860323de Fix typos in LLVM whitelist README 2020-05-29 12:01:06 +02:00
8316425375 Add AFL_LLVM_WHITELIST_FNMATCH env var
Only enable UNIX pattern matching on the whitelist when
AFL_LLVM_WHITELIST_FNMATCH is set. The reason being that we keep
backwards compatibility with old whitelists.
2020-05-29 11:55:02 +02:00
0cedc8014b Support filename pattern matching in whitelist
Allow the whitelist specified by AFL_LLVM_WHITELIST contain entries with
UNIX shell-style wildcard pattern matching.
2020-05-29 10:51:34 +02:00
8aae1fc5d7 Merge pull request #384 from RootUp/patch-4
Grammar for fuzzing Perl
2020-05-29 10:14:33 +02:00
4ad3144f50 perl.dict 2020-05-29 10:55:35 +04:00
4b01d594c4 Fix read_timed when accumulating short reads
The existing code appears to use 'len_read' in several places where
'total_read' was intended.  The function may work if the first 1 or 2
iterations of the loop read the requested 'len' bytes.

If the first two reads are "short" and a third read is done, the bytes
will be placed over previously read bytes in buf and more than 'len'
bytes may be read in total, though buf is never overrun.

This commit changes read_timed to

  (1) correctly append short reads in buf
  (2) correctly terminate when the sum of the short reads
      equals the requested 'len' bytes
  (3) return an error when read() returns -1 or 0

The function also depends on select() decrementing the timeout
structure, as it does on Linux.  On other platforms, the exec_ms
returned is likely incorrect.  This patch does not attempt to address
this issue.
2020-05-28 20:25:30 -04:00
5e4cd05e04 Merge pull request #382 from ivachyou/master
change qemu-mode AFL_REGS_NUM to 16 for TARGET_ARM
2020-05-28 23:35:55 +02:00
7cf01b10b7 Delete action.yml 2020-05-29 04:28:32 +07:00
eb7d1e22e5 simplify u64 2020-05-28 22:56:15 +02:00
0555b26161 Merge pull request #375 from risicle/ris-llvm-compare-transform-var-sized-dev
llvm_mode compare-transform-pass: add handling of sized comparisons with non-const size
2020-05-28 22:47:13 +02:00
bb0a31158a test.sh OpenBSD6.7, 32bit: add 'i386' to known intel strings 2020-05-28 22:24:06 +02:00
bfd2b6298e OpenBSD6.7, 32bit fix add linker option -z notext 2020-05-28 22:23:30 +02:00
b87d97aa2b make dockerfile better 2020-05-28 14:34:50 +02:00
48b2028af8 remove actions, we do this via docker hub 2020-05-28 12:22:28 +02:00
92be4ea871 change qemu-mode AFL_REGS_NUM to 16 for TARGET_ARM 2020-05-28 16:42:38 +07:00
8a2656681f GNUmakefile: make binary-only: make qemu build optional, so unicornafl can be build 2020-05-28 08:27:21 +02:00
5671cae225 actions 2020-05-28 02:41:27 +02:00
ef8d252843 fix Dockerfile 2020-05-28 01:29:57 +02:00
af670ca138 enable snapshot lkm for llvm_mode persistent mode 2020-05-27 17:17:33 +02:00
aace0d1192 code format 2020-05-27 11:28:29 +02:00
cee4b4593b Merge pull request #379 from arnow117/master
Fix MOpt implementation flaws
2020-05-27 11:27:11 +02:00
434ccf3df4 allow for copy paste from documentation 2020-05-27 11:24:09 +02:00
b81df11d8a fix 64bit support for powerpc, risc, etc. 2020-05-27 11:07:54 +02:00
dab498c3b7 fix MOPT implementation flaws in core fuzzing 2020-05-27 16:01:44 +08:00
d5bb9731fe Revert "libfuzzer driver, better rt compilation"
This reverts commit 46a0f812b1.
2020-05-26 17:41:24 +02:00
9dd0b7c6de make examples better 2020-05-26 15:57:15 +02:00
1cae68dde3 persistent mode shared memory fuzzing - done 2020-05-26 15:20:42 +02:00
996e1515b3 better performance compilation options for afl++ and targets 2020-05-26 13:19:57 +02:00
f6808158c5 llvm_mode compare-transform-pass: add handling of sized comparisons with non-const size
this involved insertion of an extra length-checking bb for each character
to see if we've hit the sized limit.
2020-05-25 23:38:45 +01:00
7e4c5b3636 tests: add test of compiled compcov binary's functionality 2020-05-25 23:38:45 +01:00
0994972c07 more performance testing 2020-05-25 22:19:50 +02:00
a0da531170 libfuzzer driver + llvm_mode compilation optimization 2020-05-25 22:09:00 +02:00
46a0f812b1 libfuzzer driver, better rt compilation 2020-05-25 21:58:00 +02:00
de78f867a4 Changelog: typos 2020-05-25 18:16:37 +02:00
707145c491 persistent mode: shared memory test case transfer 2020-05-25 16:40:55 +02:00
1e597a64dc llvm_mode compare-transform-pass: refactor comparison length determination
make this clearer and handle case with embedded null characters in
const string properly
2020-05-25 13:53:17 +01:00
4c394a9d7b new todo 2020-05-25 10:57:15 +02:00
3eef1560a2 remove not needed error description 2020-05-25 09:14:30 +02:00
fc574086ec fix cmplog 2020-05-24 15:15:17 +02:00
68e66fa920 fix compare-transform for strn?casecmp 2020-05-24 01:59:08 +02:00
38df6eb3a9 LTO whitelist functionality rewritten, now anything can be skipped 2020-05-23 17:00:02 +02:00
0245f8438d forkserver: missing space in message 2020-05-23 08:15:20 +02:00
d7ea8356a7 installing llvm 11 2020-05-23 01:53:42 +02:00
c64ea49432 AFL_LLVM_LAF_ALL 2020-05-23 01:37:21 +02:00
38fe1c6066 more help for LTO issues 2020-05-22 20:59:32 +02:00
74f01881e3 small enhancements for llvm11 2020-05-22 16:56:05 +02:00
0f8da71588 more test.sh fixes 2020-05-22 13:50:39 +02:00
7d3cfcfd0b more test.sh fixes 2020-05-22 13:49:50 +02:00
536397b22f travis debug 2020-05-22 13:31:16 +02:00
6253bea73c fix test.sh 2020-05-22 12:51:21 +02:00
a5ef93c83a fix cmplog for llvm 11-dev 2020-05-22 11:42:04 +02:00
5b9dfa0600 fix llvm_mode selection 2020-05-22 11:22:30 +02:00
5d0bcf8152 switching llvm_mode default to pcguard 2020-05-22 10:24:00 +02:00
83007f77f5 update docs 2020-05-21 10:31:37 +02:00
c456e20750 better sync - lesser and better imports 2020-05-20 23:12:33 +02:00
982017a2ab remove master file on exit 2020-05-20 22:52:33 +02:00
3b4cd98498 add local include paths for DronFlyBSD 2020-05-19 17:57:56 +02:00
0ed767fac5 forgot the unlink ... 2020-05-19 19:54:10 +02:00
25fbec6638 if no master is present a slave becomes a temporary master 2020-05-19 19:51:54 +02:00
ae6c30a711 upgrade Dockerfile to Ubunutu 20.04 with llvm 11 and gcc 10 for afl-clang-lto 2020-05-19 19:22:11 +02:00
c7b1ed2395 Merge pull request #367 from devnexen/example_network_build_fix
Build fix proposal mainly for Android which did not bother
2020-05-18 22:51:15 +02:00
5d0f020648 Build fix proposal mainly for Android which did not bother
implementing this dinosaur.
2020-05-18 21:44:27 +01:00
74e6fbab82 update changelog 2020-05-18 12:26:40 +02:00
30824bc58e afl-as fast system fix 2020-05-18 10:48:39 +02:00
d146965025 Update Changelog.md 2020-05-17 21:43:33 +02:00
e1e155022f adjust documentation for new minimum llvm version 3.4 2020-05-17 21:35:10 +02:00
d37a8f72d6 fix master creation file 2020-05-17 01:36:03 +02:00
9dd3e3e38a fix -M check 2020-05-17 00:13:55 +02:00
b927b80e10 GNUmakefile: add paths for FreeBSD 3rd party packages 2020-05-16 20:30:07 +02:00
af6736c356 dictionary files: fix missing newlines 2020-05-16 13:16:37 +02:00
6e98b3ebb2 non GNU Makefiles: message when gmake is not found, gcc_plugin portability 2020-05-16 12:15:03 +02:00
afb81b8005 added lots of dictionaries 2020-05-16 11:17:36 +02:00
2b922e9e68 fix possible null ptr deref in afl-prealloc.h 2020-05-15 17:07:30 +02:00
57637ba0b0 removed overlooked post_lib references, added post_lib examples to examples/custom_mutators 2020-05-15 13:39:42 +02:00
d536ddc240 change: slaves only sync from masters 2020-05-15 09:27:15 +02:00
564399bd75 v2.65d init 2020-05-15 09:04:55 +02:00
87a693d1a9 Merge pull request #360 from AFLplusplus/dev
new code formatting + applied
2020-05-15 08:36:51 +02:00
49bd24144a v2.65c 2020-05-15 08:35:46 +02:00
182b8a4582 llvm_mode: lower llvm version reqs to 3.4 (LLInsTrim will not be
available)
2020-05-15 01:55:33 +02:00
97bddc8cfa added critical whitespace 2020-05-15 01:52:56 +02:00
a55e26959b fixed recursive clean 2020-05-15 01:31:02 +02:00
63e2222af1 code format 2020-05-15 01:24:27 +02:00
9637fe8a74 travis for focal 2020-05-15 00:58:17 +02:00
c084458294 updated 20.04 Dockerfile 2020-05-15 00:51:57 +02:00
498e9f4298 adding 20.04 test 2020-05-14 23:54:07 +02:00
13033034db nuicornafl build script fix setuptools check 2020-05-14 23:23:55 +02:00
749c63d3b3 removed accidental shell injection 2020-05-14 22:39:11 +02:00
73c2619c33 .gitignore: better be explicit 2020-05-14 22:30:44 +02:00
65f9553365 unicorn mode may run scripts 2020-05-14 22:25:50 +02:00
3f621c8ed4 update .gitignore 2020-05-14 21:57:32 +02:00
11f3b487ee corrected info about python 2020-05-14 21:51:51 +02:00
4c253aedae use --python flag to point to python executable for qemu build 2020-05-14 21:49:36 +02:00
efdad526ee darn IDE 2020-05-14 21:49:36 +02:00
4081a8f7b6 should install python3 setuptools here too 2020-05-14 21:49:36 +02:00
867f948bb2 create temp symlink to python3 for qemu mode if python isn't found 2020-05-14 21:49:36 +02:00
767ed8c5da add python setuptools to travis builds 2020-05-14 21:49:36 +02:00
f0aadc3d0b qemu build expects python on PATH 2020-05-14 21:49:36 +02:00
d95c4483fd correct binary already chosen before 2020-05-14 21:49:36 +02:00
00a147b244 info about py3 setuptools 2020-05-14 21:49:26 +02:00
74eae83b54 use only python3 in new builds 2020-05-14 21:47:04 +02:00
324b44872c unicornafl: python/module check with faster method 2020-05-14 21:13:36 +02:00
94a1d4d3ac test unicornafl: copy from build script 2020-05-14 20:32:04 +02:00
a3392007cd next try 2020-05-14 20:30:00 +02:00
4ac06a4eef and more 2020-05-14 20:10:10 +02:00
0495ded87d unicornafl build script more debug 2020-05-14 19:58:32 +02:00
64b80b3201 unicornafl build script: debugging version for travis 2020-05-14 19:23:07 +02:00
fa20eb1de7 GNUmakefile: add standard path for NetBSD, test for git and svn before use 2020-05-14 18:47:44 +02:00
ae15803bf1 Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev 2020-05-14 18:41:44 +02:00
9e375179d8 test.sh: make sure the right python version (with setuptools available) is being used 2020-05-14 18:40:26 +02:00
460760d7b6 unicornafl build script: find matching python and setuptools 2020-05-14 18:00:48 +02:00
682b620922 fix afl-clang-fast help output 2020-05-14 16:25:07 +02:00
6b69cd2e57 Makefile: for convenience forward targets to GNUmake 2020-05-14 09:00:17 +00:00
56a86bb9e2 added unicornafl fix info 2020-05-14 01:35:35 +02:00
00ad2ffc61 unicornafl version 2020-05-14 01:33:03 +02:00
a16e92800d prefer python3 2020-05-14 01:20:33 +02:00
7c9ff4bfe7 if target crashes add LTO fixed map as a possible reason 2020-05-14 01:12:00 +02:00
d334093606 deprecated AFL_POST_LIBRARY 2020-05-14 01:00:11 +02:00
044bd3cb41 init/deinit need to be optional for post lib 2020-05-13 18:58:32 +02:00
4e192db13c better clean 2020-05-13 18:24:01 +02:00
8cc5442401 fix GNUmakefile 2020-05-13 18:20:06 +02:00
bd94d5fce7 unicornafl build script: python version is critical 2020-05-13 17:39:00 +02:00
b6be906082 GNUmakefile: avoid tabs 2020-05-13 17:03:59 +02:00
60a5df5262 code-format and slight -S/-M modifications 2020-05-13 16:49:00 +02:00
c384a17b41 GNUmakefile: add paths /usr/local/... for OpenBSD, add check for ASAN 2020-05-13 16:42:20 +00:00
6fdd6004f2 unicornafl build script: fix sed call for OpenBSD, use present python
bug fixes:
2020-05-13 16:39:25 +00:00
c4fe6f5277 Merge pull request #361 from rish9101/pre_save_format
Add post library API as custom mutator and rename pre_save
2020-05-13 16:39:23 +02:00
645e331559 Fix previous commit bugs 2020-05-13 19:46:30 +05:30
45bddcd808 Fix bugs, remove intial post library test 2020-05-13 19:25:23 +05:30
9627458ecc Add post library API as custom mutator and rename pre_save 2020-05-13 18:59:12 +05:30
f8b3d34225 move has_new_bits for better performance 2020-05-13 00:41:24 +02:00
5273c61cd8 Darwin tests: grep --binary-files=text for laf-intel and skipping of unittests 2020-05-12 23:19:51 +02:00
0c1c947aaf updated uc ref 2020-05-12 22:42:41 +02:00
6224ae1c60 test/test.sh: prefer python3 over python for unicornafl, avoid realpath and readlink dependencies 2020-05-12 20:59:48 +02:00
72f4a9f678 missing env var 2020-05-12 19:40:04 +02:00
060f4ea320 enforce mandatary custom functions 2020-05-12 17:05:12 +02:00
6177954773 fix custom mutators and add real test cases 2020-05-12 16:32:40 +02:00
7b40d7b942 new code formatting + applied 2020-05-12 11:12:25 +02:00
1317433a51 Merge pull request #359 from AFLplusplus/dev
push to master
2020-05-12 11:04:18 +02:00
a578d719e1 llvm_mode: more support for Darwin/MacOSX (WIP) 2020-05-12 10:34:52 +02:00
8bb10c3bf1 fix issue in describe_op showing time inside src 2020-05-12 09:20:02 +02:00
b920cd2f23 blacklist llvmfuzzer functions 2020-05-11 23:30:28 +02:00
38dac93f63 fix typos 2020-05-11 22:44:44 +02:00
6f66be12f6 merge makefile 2020-05-11 15:30:00 +02:00
4ee93331dc updated unicornafl 2020-05-11 15:11:11 +02:00
30a675ab87 silened warnings 2020-05-11 14:40:42 +02:00
845522f59b remove warnings 2020-05-11 13:34:57 +02:00
f37be09a92 fixed unicornafl bug 2020-05-11 13:18:06 +02:00
ed877f5e3e add missing include 2020-05-11 12:46:27 +02:00
d916403927 document workaround for targets with _init for LTO 2020-05-11 11:33:33 +02:00
41f6aa7940 bigger initial map when LTO 2020-05-11 10:45:20 +02:00
50a63777ec python formatter: enhance detection of #define, needed for multi line macros
@andreafioraldi : please have a look at it. Goal is to detect forms of ' # define' also.
2020-05-11 10:12:32 +02:00
26fe7a9d66 final code-format fixes, remove test-multiple-mutators when done 2020-05-10 15:53:47 +02:00
07a0e2caf7 hopefully final fixes from code-format disaster :-( 2020-05-10 15:36:46 +02:00
30bfd44dfd indenting preprocessor directives breaks compilation and cant be fixed, reverting ... :-( 2020-05-10 12:09:37 +02:00
26f8708fed fix warning, code format 2020-05-10 11:35:31 +02:00
3beec8d4fa clang-format: indent preprocessor directives, so nesting levels can be better seen 2020-05-10 11:11:40 +02:00
2e553bcd69 code-format 2020-05-10 10:24:24 +02:00
0e5a5f1805 Merge pull request #358 from rish9101/update_docs
Specify usage of multiple custom mutators
2020-05-10 08:59:36 +02:00
d02cfc54b6 LTO fixes for fuzzbench 2020-05-10 08:51:40 +02:00
7b9ac9d414 Specify usage of multiple custom mutators 2020-05-10 12:21:19 +05:30
515de0d68d Illumos biuld fix (#357) 2020-05-10 00:21:26 +02:00
1eeb6785ad Merge pull request #356 from devnexen/netbsd_build_fix_tokencap
NetBSD build fix
2020-05-09 20:39:18 +02:00
20392878f1 qemu_mode: make building warning free 2020-05-09 20:02:32 +02:00
102067d43d LLVMInsTrim.so.cc: fix for LLVM 3.8.0 2020-05-09 19:08:54 +02:00
6c88e21459 NetBSD build fix 2020-05-09 18:02:53 +01:00
041f19494e minor fixes 2020-05-09 18:51:33 +02:00
8e9f507bbc unicorn_mode/samples/persistent/Makefile: fix non-Linux support 2020-05-09 18:49:32 +02:00
c380819e02 remove debug output 2020-05-09 11:58:47 +02:00
fa84e52af0 custom mutator code enhancements and code-format 2020-05-09 11:35:54 +02:00
cf9238e09d Update docs and Changelog for custom_mutators (#355) 2020-05-09 00:01:11 +02:00
190f3024da Support multiple custom mutators (#282)
* Make a list of custom mutators using env variable

* Set up multiple custom mutators

* Add destroy custom mutator and changes to load_custom_mutator

* Use array instead of list, make changes to afl-fuzz-one for multiple mutators

* Make change to fuzz-one custom_queue_get to support multiple mutators

* Modify custom python mutator support

* Fix bug

* Fix missing afl->mutator->data

* Revert to list with max count

* Change custom_pre_save hook and code format

* Free custom_mutator struct in the list

* Add testcase for multiple custom mutators

* Resolve merge conflict
2020-05-08 20:08:27 +02:00
768053b6f2 add AFL_DEBUG check to all isatty checks 2020-05-08 16:28:39 +02:00
bdd2a412c4 change docs/README.md to symlink to toplevel README.md 2020-05-07 18:47:23 +02:00
d217c7df05 Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev 2020-05-07 18:33:38 +02:00
9484da57ed convert docs/README.md into a symlink to toplevel README.md (helps website content) 2020-05-07 18:32:36 +02:00
ef2ccc8117 added AFL_LLVM_SKIPSINGLEBLOCK and changed default behaviour to instrument single block functions 2020-05-07 14:59:12 +02:00
02887dc164 fix static and profiling compilation and add profiling calculation 2020-05-07 14:09:58 +02:00
d048af11cd calculate correct collisions for classic in InsTrimLTO 2020-05-07 11:57:12 +02:00
0559d1d171 fix typos 2020-05-07 10:27:24 +02:00
37b681ac11 untracer README: one typo fixed 2020-05-07 10:09:08 +02:00
f065ddbdb2 Merge pull request #354 from jtpereyda/readme-apt-flex
add flex to apt install list
2020-05-07 09:31:00 +02:00
140053502b import transform fix into autodict, code-format 2020-05-07 08:08:20 +02:00
58fad91b0b add flex to apt install list 2020-05-06 16:00:23 -07:00
01b5aa123d better README for untracer 2020-05-06 17:20:42 +02:00
8cdf767bf5 doc update 2020-05-06 15:57:38 +02:00
e910882e32 fix untracer 2020-05-06 15:43:39 +02:00
a1c9c497d5 aarch64 support for afl-untracer 2020-05-06 15:37:49 +02:00
a63c838b10 make build options for qemu more visible 2020-05-06 14:16:19 +02:00
b7e574607c rename pass 2020-05-06 13:27:12 +02:00
10e6b4e454 fix STATIC compilation 2020-05-06 13:24:18 +02:00
ec5b1924c4 CTX+NGRAM != LTO 2020-05-06 11:55:50 +02:00
80ddb484de added InsTrimLTO :-) 2020-05-06 11:51:28 +02:00
cafb2e540e Merge pull request #353 from AFLplusplus/dev
update llvm version in README
2020-05-06 01:04:37 +02:00
b4e3f22259 update llvm version in README 2020-05-06 01:04:13 +02:00
df52157834 Merge pull request #352 from AFLplusplus/dev
Pull to master because of crash in string compare transform
2020-05-06 00:58:13 +02:00
a13958b32b updated unicornafl 2020-05-05 23:44:02 +02:00
a31b58eeea add one more alternative to python requirements: python-dev 2020-05-05 22:59:26 +02:00
e31b816aa0 fix unit tests when printf is a macro 2020-05-05 22:46:48 +02:00
0e5027d8d8 maybe_grow->ck_maybe_grow 2020-05-05 21:46:31 +02:00
dc79533191 more typos fixed 2020-05-05 20:29:40 +02:00
128e4d5565 more typos fixed 2020-05-05 20:23:16 +02:00
ad3960580d fixed typos 2020-05-05 20:19:04 +02:00
00683d06c2 fix LTO mode 2020-05-05 20:10:54 +02:00
a38980c80b unsized string compare fix 2020-05-05 17:57:56 +02:00
664a180d72 cleanup todo list 2020-05-05 15:39:15 +02:00
d6346561db ctx+ngram for instrim 2020-05-05 15:37:02 +02:00
d82ada89fe support older llvm versions 2020-05-05 14:08:24 +02:00
9d384b4e38 ctx and ngram fix 2020-05-05 12:46:49 +02:00
6e45e55d82 fix crash in AFL_LLVM_LAF_TRANSFORM_COMPARES 2020-05-05 10:38:44 +02:00
ecaccd9739 Merge pull request #351 from dpmdpm2/master
Fix typo in README.lto.md
2020-05-04 21:02:49 +02:00
95a2d49232 Fix typo in README.lto.md 2020-05-04 11:34:07 -07:00
16c16b3e6e ctx and ngram can be used together now 2020-05-04 18:01:47 +02:00
945e00b73f final touches for afl_network_proxy 2020-05-04 12:51:38 +02:00
e592b4bcf0 nw fixes 2020-05-04 10:37:45 +02:00
96ef2d3821 makefile fix 2020-05-04 10:24:29 +02:00
2d126dc750 Fix Unicorn support build script (#349)
* Fix Unicorn support build script for WSL.

Co-authored-by: Dominik Maier <domenukk@gmail.com>
2020-05-04 10:14:49 +02:00
13a32e9595 fix makefile 2020-05-04 10:08:29 +02:00
73f7164048 add GNUmakefile 2020-05-04 09:53:59 +02:00
5b1b986c89 fix for afl-tmin -f 2020-05-03 14:19:03 +02:00
1c53bbea52 doubled the speed of afl_network_proxy 2020-05-03 14:09:32 +02:00
0c5c172a30 makefile fix 2020-05-02 12:57:33 +02:00
ff1643d81f todo update 2020-05-02 00:43:33 +02:00
378573ab8b AFL_LLVM_SKIP_NEVERZERO added 2020-05-02 00:39:13 +02:00
33ddf6ea0e add ghidra script and workaround ghidra/linux/ida weirdness 2020-05-01 17:07:44 +02:00
a2bc3538f7 python no longer needed for build 2020-05-01 12:03:41 +02:00
636e98d151 Merge remote-tracking branch 'origin/master' into dev 2020-05-01 02:13:24 +02:00
9f01737fa7 updated unicorn 2020-05-01 02:08:04 +02:00
be4e5d2617 minor sample things 2020-05-01 02:07:35 +02:00
cc78fb721b code format 2020-05-01 01:11:54 +02:00
bb7d2a7347 Merge pull request #345 from devnexen/afl_untracer_libs_display
afl-untracer little change to display libraries mapping on FreeBSD.
2020-05-01 01:03:53 +02:00
9d03763d94 at some point we have to do a rewrite of llvm_mode/GNUmakefile 2020-05-01 00:57:20 +02:00
3cf4529f3c afl-untracer little change to display libraries mapping on FreeBSD. 2020-04-30 23:01:46 +01:00
477fb58311 Merge pull request #344 from devnexen/afl_untracer_fbsd
afl-untracer raw freebsd support.
2020-04-30 23:38:01 +02:00
59043b24cc afl-untracer raw freebsd support. 2020-04-30 21:31:37 +01:00
15547eb654 fix send child status 2020-04-30 21:17:13 +02:00
16f9cc7369 afl-network-client fix 2020-04-30 21:13:45 +02:00
efa9df24c2 afl-untracer completed 2020-04-30 17:59:59 +02:00
a37eca9df5 afl-untracer - next step 2020-04-30 16:27:31 +02:00
e68d2345d5 test.sh: continue after failed test case qemu persistent mode 2020-04-29 22:25:10 +02:00
fced3e00ce wip: afl-untracer 2020-04-29 20:44:30 +02:00
c53663c7ac afl-proxy -> afl_proxy 2020-04-29 15:21:51 +02:00
bc2e65e482 added afl_network_proxy 2020-04-29 15:18:03 +02:00
ce2814967d add readme for afl-proxy 2020-04-29 02:56:51 +02:00
781725aeaf added afl-proxy to examples 2020-04-29 02:54:57 +02:00
9276dc9e6c fix #329 2020-04-28 10:55:22 +02:00
c7de368dc2 Merge pull request #342 from AFLplusplus/dev
fix for afl-showmap with -Q
2020-04-27 22:12:56 +02:00
fbd9994f6f better fix for showmap 2020-04-27 22:11:58 +02:00
087c368242 better fix for showmap 2020-04-27 22:10:08 +02:00
a56354a893 fix for afl-showmap with -Q 2020-04-27 19:30:32 +02:00
a5d4c8d532 Merge pull request #340 from AFLplusplus/dev
dev -> master
2020-04-27 12:12:43 +02:00
a46fe3ad43 fix for older llvm versions 2020-04-27 06:51:45 +02:00
4ffa5b0636 fix negative stability bug (hopefully) 2020-04-26 18:42:42 +02:00
62ec52dd95 Merge pull request #336 from AFLplusplus/dev
pull again ...
2020-04-26 16:51:21 +02:00
ea876e59a8 moved defines to type 2020-04-26 14:45:00 +02:00
66eee34709 refactored global lists 2020-04-26 02:32:09 +02:00
85627516a4 map_size one liner 2020-04-26 02:05:17 +02:00
b26ee09f71 minor fixes 2020-04-26 01:59:38 +02:00
fb89b042f8 Merge pull request #337 from devnexen/android_support_arc4_api
Android supports arc4 api.
2020-04-26 01:25:39 +02:00
646aeb2b18 try unicorn build without -j 2020-04-26 00:54:02 +02:00
2a60ceb694 fix issue #333 2020-04-25 21:29:19 +02:00
80916a3613 Android supports arc4 api. 2020-04-25 20:17:10 +01:00
0c3d06c41e refactored whitelist and blacklist in llvm_mode 2020-04-25 17:53:38 +02:00
07db922024 add to changelog 2020-04-25 13:09:27 +02:00
fa610270ab remove empty line 2020-04-25 13:08:42 +02:00
cefefba244 Merge branch 'master' into dev 2020-04-25 13:05:25 +02:00
42017bbeda fix python detection for Ubuntu and others 2020-04-25 12:57:45 +02:00
a3ee281e2b fix python detection for Ubuntu and others 2020-04-25 12:55:01 +02:00
232290108e only build afl-gcc-fast if afl-gcc-pass could be build 2020-04-25 12:51:14 +02:00
5c017d7071 travis Dockerfiles for testing and debugging 2020-04-25 12:48:48 +02:00
62aacf88ab fix simple names 2020-04-24 23:26:38 +02:00
b3e77d3d50 update documentation 2020-04-24 13:56:04 +02:00
766085293d variable map size fix, error reporting through forkserver, code format 2020-04-24 12:09:25 +02:00
4a593d0405 Merge pull request #331 from Mindavi/feature/fail-on-invalid-binary-name
afl-gcc and afl-clang: fail when binary name can't be used to determine build mode
2020-04-24 10:32:00 +02:00
82b6b8c87e afl-gcc and afl-clang: fail when binary name can't be used to determine build mode
This is a continuation of PR #318.
The goal is to prevent issues where binaries with the wrong name will
silently pass control to the C compiler instead of failing.
This makes it more explicit that aflplusplus relies on the name of the
binary for correct compiler execution.
2020-04-23 23:21:38 +02:00
b6f9f4c436 minor changes 2020-04-23 16:08:36 +02:00
b120ca27f8 add documentation for LTO fixed map address feature 2020-04-23 12:20:58 +02:00
5eb1f3a4c6 use mmap in llvm_mode if LTO is enabled 2020-04-23 12:02:15 +02:00
8ada9d06e8 fix make clean error 2020-04-23 11:51:32 +02:00
cce8c4dbae fixed map location support for LTO 2020-04-23 08:56:06 +02:00
3502db1ac5 more sanitizer functions for blacklist 2020-04-23 07:28:25 +02:00
df8a0e8418 Merge branch 'dev' of github.com:vanhauser-thc/AFLplusplus into dev 2020-04-22 13:51:40 +02:00
b8a25063f6 fix sed errors in afl_shm_init when using mmap 2020-04-22 13:51:36 +02:00
6df21f3489 GNUmakefile/unit tests: suppress compilation commandline output 2020-04-22 08:40:04 +02:00
dcba2c3642 test.sh: custom mutator test; make it compilable with available instrumenting
compiler
2020-04-22 08:02:46 +02:00
059c963467 unicornafl build script: fix prerequisite search for setuptools 2020-04-21 23:15:25 +02:00
ce9c6df456 libdislocator android build fix. (#327)
Fix function signature for bionic libc
2020-04-21 13:14:34 +02:00
0aef3b4040 add NULL check to malloc_usable_size 2020-04-21 13:14:34 +02:00
4cc0589440 unicornafl updated 2020-04-21 13:14:34 +02:00
96722083d8 add line 2020-04-21 13:14:34 +02:00
ee238eb00d Move comment about adding 8 bytes to buffer length to the line where we
actually add 8 bytes
Remove defunct TODO for posix_memalign as the function now exists
Add wrapper for malloc_usable_size
2020-04-21 13:14:34 +02:00
45ccc7d475 script to update uc refs; new unicornafl version 2020-04-21 13:14:34 +02:00
a32d2ad193 removed done todo 2020-04-21 13:14:34 +02:00
f25919ad56 dont error on git reset 2020-04-21 13:14:34 +02:00
ae524d856d clang warning fixed 2020-04-21 13:14:34 +02:00
9be4f9c055 code format 2020-04-21 13:14:34 +02:00
40e5b285f2 updated unicorn 2020-04-21 13:14:34 +02:00
3ca787ba76 wording 2020-04-21 13:14:34 +02:00
137b9ecf5e double include removed 2020-04-21 13:14:34 +02:00
2509624add android ashmem fix 2020-04-21 13:14:34 +02:00
8c6fcd98be reset git on deepclean 2020-04-21 13:14:34 +02:00
7dc825dbe9 typo 2020-04-21 13:14:34 +02:00
6b3336d107 switched to clang-format-10 2020-04-21 13:14:34 +02:00
ceeb266273 clean and deepclean Makefile updates 2020-04-21 13:14:34 +02:00
9bb0733eb5 clang-tidy readability-braces (#323) 2020-04-21 13:14:34 +02:00
22cdad2d20 make clean removes unicornafl dir if not in git 2020-04-21 13:14:34 +02:00
8b3befea6d update documentation 2020-04-21 13:14:34 +02:00
5b9928f1a9 fix some gcc dependencies and build problems on debian 32-Bit,
adapted qemu_mode AFL_ENTRYPOINT test case for 32 bit
2020-04-21 13:14:34 +02:00
856a59901e no need to rm folder 2020-04-21 13:14:34 +02:00
19d0961020 clean doesn't fail without unicornafl 2020-04-21 13:14:34 +02:00
3bd5e65edc clean no longer deletes unicornafl folder 2020-04-21 13:14:34 +02:00
b520046ab6 fix submodule 2020-04-21 13:14:34 +02:00
d22550a520 git for travis? 2020-04-21 13:14:34 +02:00
6f994ec56b fix compilation on Debian 32-bit (thanks to Marc) 2020-04-21 13:14:34 +02:00
09c8e40363 better detection of intel cpu on 32-bit Linux 2020-04-21 13:14:34 +02:00
8e44c06a13 fix docs typos 2020-04-21 13:14:34 +02:00
358f17f615 small portability fix (32-bit) for warning (size_t %lu -> %zu) 2020-04-21 13:14:34 +02:00
b109e31722 submodule path changed 2020-04-21 13:14:34 +02:00
b77458ae81 unicornafl updaetd 2020-04-21 13:14:34 +02:00
cfeb8e83f7 latest unicornafl 2020-04-21 13:14:34 +02:00
0fa9ad46ae added version 2020-04-21 13:14:34 +02:00
cfb11177cd submodule 2020-04-21 13:14:34 +02:00
0a1979fd20 examples Makefiles: silence errors when there is no 32-bit support installed 2020-04-21 13:14:34 +02:00
0dc64b93d8 v2.64d init 2020-04-21 13:14:34 +02:00
f6c9acd518 libdislocator android build fix. (#327)
Fix function signature for bionic libc
2020-04-21 10:17:11 +02:00
68218dd31c Merge pull request #326 from dpmdpm2/master
Add malloc_usable_size to libdislocator.so
2020-04-21 00:07:33 +02:00
441b64b467 add NULL check to malloc_usable_size 2020-04-20 15:00:48 -07:00
8b319969f3 unicornafl updated 2020-04-20 23:49:12 +02:00
41b1787565 add line 2020-04-20 23:27:09 +02:00
e6fccdd9c1 Move comment about adding 8 bytes to buffer length to the line where we
actually add 8 bytes
Remove defunct TODO for posix_memalign as the function now exists
Add wrapper for malloc_usable_size
2020-04-20 14:24:47 -07:00
0ffef8c79d script to update uc refs; new unicornafl version 2020-04-20 23:11:11 +02:00
3d52079a7c removed done todo 2020-04-20 22:18:39 +02:00
e47c29e728 dont error on git reset 2020-04-20 22:14:41 +02:00
280374f739 clang warning fixed 2020-04-20 22:07:47 +02:00
ce15937717 code format 2020-04-20 21:54:55 +02:00
c8f2ba5b49 updated unicorn 2020-04-20 21:40:34 +02:00
3dbfd18f36 wording 2020-04-20 21:18:32 +02:00
4be0ae2008 double include removed 2020-04-20 21:06:16 +02:00
67b39050df android ashmem fix 2020-04-20 21:05:02 +02:00
4ccd8c1400 reset git on deepclean 2020-04-20 21:03:06 +02:00
4f997665f1 typo 2020-04-20 16:10:06 +02:00
b6a15d9719 switched to clang-format-10 2020-04-20 11:32:44 +02:00
e90194093e Revert "fix compilation use CFLAGS_FLTO for afl-gotcpu also (thanks Marc)"
This reverts commit b408fdffcc.
2020-04-20 07:58:48 +02:00
4c90293e44 clean and deepclean Makefile updates 2020-04-19 16:48:42 +02:00
8197e9b2e4 clang-tidy readability-braces (#323) 2020-04-19 16:42:40 +02:00
baec99079f make clean removes unicornafl dir if not in git 2020-04-19 12:30:58 +02:00
16a5e6bf16 update documentation 2020-04-19 10:15:28 +02:00
39f715982d Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev 2020-04-19 00:38:57 +02:00
724d4ec3de fix some gcc dependencies and build problems on debian 32-Bit,
adapted qemu_mode AFL_ENTRYPOINT test case for 32 bit
2020-04-19 00:37:23 +02:00
e4670d3abc no need to rm folder 2020-04-18 23:16:00 +02:00
8aa86d063a clean doesn't fail without unicornafl 2020-04-18 22:33:56 +02:00
c1d9e00044 clean no longer deletes unicornafl folder 2020-04-18 22:31:21 +02:00
0827a447d3 fix submodule 2020-04-18 22:10:30 +02:00
2874565b36 git for travis? 2020-04-18 21:28:35 +02:00
8ed3126f28 fix compilation on Debian 32-bit (thanks to Marc) 2020-04-18 20:07:12 +02:00
b408fdffcc fix compilation use CFLAGS_FLTO for afl-gotcpu also (thanks Marc) 2020-04-18 19:54:54 +02:00
d9cd600c1b better detection of intel cpu on 32-bit Linux 2020-04-18 18:39:03 +02:00
68f18923ab fix docs typos 2020-04-18 11:32:06 +02:00
9e74a7dfe1 small portability fix (32-bit) for warning (size_t %lu -> %zu) 2020-04-18 10:48:24 +02:00
0b5b888f82 submodule path changed 2020-04-17 21:52:57 +02:00
46854b439a unicornafl updaetd 2020-04-17 21:44:33 +02:00
8ffed4b859 latest unicornafl 2020-04-17 21:43:55 +02:00
3b8cd9652a added version 2020-04-17 21:43:55 +02:00
269050aee3 submodule 2020-04-17 21:43:55 +02:00
6e753f8f0f examples Makefiles: silence errors when there is no 32-bit support installed 2020-04-17 19:42:03 +02:00
9adcc73d61 v2.64d init 2020-04-17 19:39:32 +02:00
ddea300822 Merge pull request #321 from AFLplusplus/dev
Push for next release
2020-04-17 19:25:34 +02:00
9900c92ebc locked to unicornafl version 2020-04-17 16:28:22 +02:00
0bd1264faf headers for clang-tidy 2020-04-17 14:30:36 +02:00
49753eb2d0 unused var 2020-04-17 14:27:28 +02:00
c9605f2251 ++2.64c 2020-04-17 14:10:18 +02:00
6ee11c2a6f little more speed for queue analysis 2020-04-17 14:08:40 +02:00
ef1d384184 add missing limits.h include for PATH_MAX (OpenBSD) 2020-04-17 13:45:22 +02:00
a6d4f04019 Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev 2020-04-17 13:30:12 +02:00
87d27b8616 add AFL_NO_PYTHON to list of env variables 2020-04-17 13:29:32 +02:00
f22d8120ef fix afl-showmap for PATH_MAX on *BSD 2020-04-17 13:22:39 +02:00
8ecfbcdf34 removed tmp alloc in queue 2020-04-17 13:15:24 +02:00
263daaacaf remove static from tmp var in qemu 2020-04-17 12:04:16 +02:00
d3254d8066 llvm fix 2020-04-17 12:00:28 +02:00
76e15a0695 refactoring getting the map size 2020-04-17 11:56:08 +02:00
1931838a11 remove unnecessary map_size variables 2020-04-17 11:39:38 +02:00
6bd49b1d5c final fix for map_size 2020-04-17 11:24:40 +02:00
2d4d16755c merged upstream 2020-04-17 11:20:09 +02:00
bfcf6db17a fixes 2020-04-17 11:18:04 +02:00
bda4d8812e forgot MAP_SIZE for afl struct maps 2020-04-17 11:15:04 +02:00
f70d4a6fd4 added bugfix infos 2020-04-17 11:07:03 +02:00
90ff345d73 Merge branch 'dev' of github.com:aflplusplus/aflplusplus into dev 2020-04-17 11:01:20 +02:00
8fa5d4c313 clearer code 2020-04-17 11:01:14 +02:00
2162fd8e1a preliminary stuff for AFL_MAP_SIZE and afl-llvm-pass 2020-04-17 10:46:35 +02:00
248a2f2f0b added AFL_MAP_SIZE to env help output 2020-04-17 10:21:41 +02:00
ef311ec70c done implementing AFL_MAP_SIZE 2020-04-17 10:08:56 +02:00
5b70d23211 added AFL_MAP_SIZE (wip) 2020-04-17 09:10:49 +02:00
16ce555845 fixed 2 unimportant leaks 2020-04-17 07:52:21 +02:00
c961925356 fix plot_data output and code-format 2020-04-17 07:10:42 +02:00
23ea727915 Merge branch 'dev' of github.com:vanhauser-thc/AFLplusplus into dev 2020-04-16 19:53:51 +02:00
f157bca548 fix missing out_fd for cmplog forkserver 2020-04-16 19:53:42 +02:00
35937e6263 leak? 2020-04-16 19:33:40 +02:00
69bd7c16eb silence some clang warnings 2020-04-16 19:15:14 +02:00
6940e13629 removed redundent funcs 2020-04-16 17:50:08 +02:00
380ff114e9 the least radamsa 2020-04-16 16:51:23 +02:00
5e53002303 less radamsa 2020-04-16 16:48:40 +02:00
872d1c1d98 less radamsa 2020-04-16 16:47:53 +02:00
94187837c7 removed unused functions 2020-04-16 16:37:33 +02:00
ede3545d8b missing-decls reremoved 2020-04-16 16:25:02 +02:00
cdac882834 untitest decl 2020-04-16 16:09:52 +02:00
1ee224652c libradamsa fix 2020-04-16 16:05:39 +02:00
8511638afb hunting non-static functions 2020-04-16 15:38:43 +02:00
b10007a7b5 renamed duplicated func names 2020-04-16 15:32:04 +02:00
19ce862810 decoupled run and classify 2020-04-16 15:21:34 +02:00
124665b392 code-format 2020-04-16 14:47:08 +02:00
b420ccdbf8 fixed timeout flag to u32 2020-04-16 14:42:38 +02:00
5e8f385705 revert test.sh changes 2020-04-16 13:24:16 +02:00
dcc889a264 fix travis for cmpcov 2020-04-16 13:11:44 +02:00
f3789801f2 little has_new_bits improvement 2020-04-16 12:09:33 +02:00
0f08b13fa0 somewhat unified write_to_testcase 2020-04-15 23:22:23 +02:00
2ce6e7a7fb fix laf-intel transform disable 2020-04-15 23:01:33 +02:00
83d5864203 Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev 2020-04-15 22:29:54 +02:00
7e2c52f2b9 disable compare-transform-pass when lto_mode and autodictionary is used. 2020-04-15 22:27:32 +02:00
e88f364282 add new github security writeup 2020-04-15 22:27:20 +02:00
21f696f02e fix document mode 2020-04-15 22:26:30 +02:00
ef1ea07e68 wrong bytes set 2020-04-15 20:22:32 +02:00
0c02a8f4d3 changed run_target 2020-04-15 19:23:26 +02:00
48f7f7a17b afl-clang-fast: fail when binary name can't be used to determine build mode (#318) 2020-04-15 12:08:33 +02:00
115ee8bad5 fix Makefile for examples/argv_fuzzing and socket_fuzzing 2020-04-14 21:19:03 +02:00
c009896c34 code format 2020-04-14 19:29:18 +02:00
6dc36f1e6e unified forkservered run_target, fixes #308 2020-04-14 19:27:25 +02:00
f4436f118c fixed #317 2020-04-14 17:21:15 +02:00
8440aaea5a Merge branch 'dev' of github.com:vanhauser-thc/AFLplusplus into dev 2020-04-14 13:02:53 +02:00
0d0338012b one byte cmp in cmplog 2020-04-14 13:02:49 +02:00
5ac1b6e940 status 0 initialized 2020-04-14 13:01:54 +02:00
92aaaef381 code format 2020-04-14 12:42:38 +02:00
2c87e68ad6 Merge branch 'dev' of github.com:vanhauser-thc/AFLplusplus into dev 2020-04-14 12:40:03 +02:00
26e690c220 cmplog loop detection 2020-04-14 12:39:29 +02:00
b63dd7a464 NO_PYTHON documented 2020-04-14 12:07:46 +02:00
d2a7628748 fix travis fails 2020-04-14 11:26:07 +02:00
b1e7b834ac add missing default names for AFL_LLVM_INSTRUMENT 2020-04-14 11:24:53 +02:00
9eb47a924a UR -> rand_below 2020-04-14 10:42:29 +02:00
1d62bf1c37 solve conflicts 2020-04-14 10:12:41 +02:00
982d46e7cb solve conflicts 2020-04-14 10:11:22 +02:00
1fbface656 cmplog is now better 2020-04-14 10:09:03 +02:00
1374e65401 no more waitpid warning 2020-04-13 20:39:52 +02:00
0fab4e1955 c files static 2020-04-13 20:23:24 +02:00
a2574169e2 added NO_PYTHON support 2020-04-13 17:44:48 +02:00
4b88e059ef more robust search for clang for afl-clang-fast 2020-04-13 17:05:43 +02:00
12a7059ae8 added ignore info 2020-04-13 16:58:35 +02:00
a897f355a9 code format 2020-04-13 16:57:41 +02:00
326ab632c3 fixed uaf and warnings 2020-04-13 16:57:19 +02:00
dda096da03 allow -L -1 to enable mopt in parallel to classic mutation 2020-04-13 12:12:27 +02:00
5daec436f9 fix bug forksever fail not detected when using read_timed 2020-04-13 11:43:34 +02:00
033c743a41 fix all cmplog errors 2020-04-13 11:37:48 +02:00
459d8f9ba2 qemu cmplog test.sh 2020-04-13 10:53:37 +02:00
0022cc4782 fix some cmplog refactoring bugs 2020-04-13 10:40:24 +02:00
995e556065 cmplog forkserver tidying 2020-04-13 08:54:59 +02:00
a93268acec update todo 2020-04-12 22:45:54 +02:00
e70c54547e remove warnings with llvm11 2020-04-12 17:23:41 +02:00
7919545499 Better solution for ARM64 build fix (#315) 2020-04-12 16:55:52 +02:00
5a8db5954c update test.sh to new compcov features 2020-04-12 14:38:47 +02:00
ee4e1936d0 build on arm64 fix. tested on Android. (#313) 2020-04-12 14:20:10 +02:00
ec67780854 fix 32/64 bit LTO 2020-04-12 14:04:17 +02:00
aaf8835cdb updated changelog 2020-04-12 12:18:06 +02:00
0a525f768b local/global var for compare-transform-pass and code-format 2020-04-12 12:13:01 +02:00
4ed43b7632 m32/m64 support for LTO and code-format for test/ 2020-04-12 11:00:01 +02:00
5e09e13ece m32/m64 support for LTO and code-format for test/ 2020-04-12 10:58:58 +02:00
eec725a345 add global and local var support to autodictionary 2020-04-12 10:34:03 +02:00
fd63344ffc Fixed qbdi_mode/build.sh script (#311)
Co-authored-by: pyno <pyno@fearless>
2020-04-11 20:04:22 +02:00
90a9f22c3d fix #312 2020-04-11 18:31:46 +02:00
cc3ac932d9 fix -E/-V 2020-04-11 09:16:30 +02:00
d8947d1fa4 add extended forkserver feature to gcc_plugin and qemu_mode 2020-04-11 08:15:42 +02:00
32ba60185e more refactoring and update changelog 2020-04-11 08:02:54 +02:00
8bcfba8231 add missing file 2020-04-11 07:35:54 +02:00
68f269437d Autodictionary (#309)
* lto module clean-up

* step 1/3

* step 1/3 completed

* if tmp is ever made non-static

* parts 2 and 3 - autodictionary is complete

* variable map_size support

* variable map size: changed overlooked functions

* remove debug for autodict

* 64 bit alignment of map size

* fix review comments

* force 64 bit alignment on both sides

* typo

* better map transfer, display snapshot in UI

* update readme
2020-04-11 07:32:42 +02:00
29ee3a1ffc refactored cmplog 2020-04-11 01:09:07 +02:00
39e8b91806 code format 2020-04-10 22:54:31 +02:00
3ab7fcf5dd fixed fauxserver msg 2020-04-10 22:53:59 +02:00
3a509c6168 LTO optimization, variable map size, autodictionary (#307)
* lto module clean-up

* step 1/3

* step 1/3 completed

* if tmp is ever made non-static

* parts 2 and 3 - autodictionary is complete

* variable map_size support

* variable map size: changed overlooked functions

* remove debug for autodict

* 64 bit alignment of map size

* fix review comments

* force 64 bit alignment on both sides

* typo
2020-04-10 22:33:11 +02:00
6dcbc4dff4 void * types in allocs 2020-04-10 21:03:48 +02:00
d928b148d8 tackeled some warnings 2020-04-10 20:57:46 +02:00
3209a9d4e8 removed vla for tmpfile 2020-04-10 20:35:16 +02:00
f0f83bab52 resize fix + code format 2020-04-10 17:47:22 +02:00
6aa6af04ac files opened with fdopen should be closed with fclose 2020-04-10 16:45:45 +02:00
5b977453cb another mem leak fix for master/slave usage 2020-04-10 15:06:31 +02:00
a60e425d39 fix small memory leak for in_place_resume 2020-04-10 14:52:59 +02:00
4e3739cdf2 Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev 2020-04-10 14:50:05 +02:00
e51b4700e2 Merge branch 'dev' of github.com:aflplusplus/aflplusplus into dev 2020-04-10 14:34:24 +02:00
0b9f7c4c89 added back afl_state_deinit 2020-04-10 14:34:17 +02:00
9dcdbbb649 README: minor additions and typo fixes 2020-04-10 12:07:21 +02:00
ac2f0c9896 remove GNU makefile variants 2020-04-10 11:44:43 +02:00
fbf5e08425 merge PR#306 from neoni (thanks), silence test when bash is not found 2020-04-09 18:11:39 +00:00
df5c264754 Merge branch 'dev' of github.com:aflplusplus/aflplusplus into dev 2020-04-09 16:27:07 +02:00
66f535ad61 check for empty AFL env vars 2020-04-09 16:27:00 +02:00
b8d84ababb lto module clean-up (#303) 2020-04-09 16:27:00 +02:00
b485b7a252 fix compilers for empty AFL_CC/AFL_CXX env 2020-04-09 16:27:00 +02:00
c1395bb543 LTO llvm11 (#302)
* new LTO mode for llvm 11

* remove unneeded afl-ld and env vars
2020-04-09 16:27:00 +02:00
0c2e998f69 2.63d init 2020-04-09 16:27:00 +02:00
504529c3aa fix crash triage example (#304) 2020-04-09 13:46:21 +02:00
1fab45024b check for empty AFL env vars 2020-04-09 13:17:56 +02:00
e354235ebb lto module clean-up (#303) 2020-04-09 13:13:07 +02:00
d55196352c fix compilers for empty AFL_CC/AFL_CXX env 2020-04-09 11:49:40 +02:00
45e569845e LTO llvm11 (#302)
* new LTO mode for llvm 11

* remove unneeded afl-ld and env vars
2020-04-09 10:36:28 +02:00
b55421d4a1 2.63d init 2020-04-09 10:30:24 +02:00
fb8da3e4b1 push new version 2020-04-09 10:23:37 +02:00
a9c0f9a165 fix indention 2020-04-09 10:23:37 +02:00
4b5c4d58dc Update README.snapshot.md 2020-04-09 10:23:37 +02:00
b0e58b5b14 fixed critical whitespace 2020-04-09 10:23:37 +02:00
858c81a19b fix compile for MacOSX -DFORTIFY_SOURCE=2 is problematic 2020-04-09 10:23:37 +02:00
04360a35ed fix review comments by Heiko 2020-04-09 10:23:37 +02:00
c8ca944fac fix review comments by Heiko 2020-04-09 10:23:37 +02:00
b5e4d1a491 fix gcc_plugin Makefile (VPATH) 2020-04-09 10:23:37 +02:00
20cb846c95 Makefile cleanup 2020-04-09 10:23:37 +02:00
a1e531589e unicorn_mode/samples/persistent Makefile portable version 2020-04-09 10:23:37 +02:00
d6b680de48 remove todo 2020-04-09 10:23:37 +02:00
28314632bd fix travis - heiko test your changes on linux pls ;) 2020-04-09 10:23:37 +02:00
09ab904354 one more include move 2020-04-09 10:23:37 +02:00
5c0cf60ec1 fix damage in test.sh 2020-04-09 10:23:37 +02:00
698caed9c0 llvm_mode ctx: move function terminator instrumentation before skipping blocks 2020-04-09 10:23:37 +02:00
ae05f5c4b0 afl-fuzz: add usage info when no python support is there, use it in test.sh 2020-04-09 10:23:37 +02:00
d397bba6b2 llvm_mode android fix 2020-04-09 10:23:37 +02:00
7a6b66e684 fix limits.h include 2020-04-09 10:23:37 +02:00
e6daeef55c fix compilation in OpenBSD 2020-04-09 10:23:37 +02:00
c36c1b8992 update todo 2020-04-09 10:23:37 +02:00
1d1f575b5c add missing piece for CTX coverage 2020-04-09 10:23:37 +02:00
ecdffa03f8 added snapshot feature to documentation 2020-04-09 10:23:37 +02:00
6688184bfd argv_fuzzing Makefile: portable version 2020-04-09 10:23:37 +02:00
84a4fd40a0 fix travis 2020-04-09 10:23:37 +02:00
d37a195392 socket_fuzzing Makefile: make it portable 2020-04-09 10:23:37 +02:00
11e76af819 libdislocator: make Makefile portable 2020-04-09 10:23:37 +02:00
ed8c0d173e gcc_plugin: portable Makefile 2020-04-09 10:23:37 +02:00
c57fdbedaf gcc_plugin fix compile for USEMMAP 2020-04-09 10:23:37 +02:00
bd9676aa04 Android build fix proposal.
LTO flag is recognised but however broken on Android (tested with armv7 arch).
Thus giving the choice not to enable it.
In fortify mode, open required O_CREAT or O_TMPFILE when mode is set.
2020-04-09 10:23:37 +02:00
e5d0a9ecdf update readme 2020-04-09 10:23:37 +02:00
314debb799 ctx done 2020-04-09 10:23:37 +02:00
24ad714d0d update env with AFL_NO_SNAPSHOT 2020-04-09 10:23:37 +02:00
41225b53fa small fixes 2020-04-09 10:23:37 +02:00
5efd306f7b snapshot() in llvm mode 2020-04-09 10:23:37 +02:00
ccbcb5c8d3 added AFL_LLVM_INSTRUMENT, made USE_TRACE_PC obselete and llvm_mode Makefile fix, fixed for FUSELD (for LTO) 2020-04-09 10:23:37 +02:00
2f172d6c5a GNUmakefile: python config add --ldflags, silence tests 2020-04-09 10:23:37 +02:00
1eb81fdf36 unicorn_mode build script: find setuptools more reliably 2020-04-09 10:23:37 +02:00
62b6af693d Makefile bugfix macros are generally not expanded in shell calls 2020-04-09 10:23:37 +02:00
a49988afbf fix silly error with uname -s 2020-04-09 10:23:37 +02:00
03495beadb libtokencap, portable Makefile (for GNUmake and BSDmake) 2020-04-09 10:23:37 +02:00
079fdbf9bc portable version of Makefile (tested with bsdmake and GNUmake) 2020-04-09 10:23:37 +02:00
002e3840e6 update todo 2020-04-09 10:23:37 +02:00
96c558bec4 update todo 2020-04-09 10:23:37 +02:00
a267263420 unit tests cleaning 2020-04-09 10:23:37 +02:00
c14fd1ad18 code format, small improvements 2020-04-09 10:23:37 +02:00
88782ae43c custom mutator readme 2020-04-09 10:23:37 +02:00
70e777d031 no random timing for -s fixed_seed 2020-04-09 10:23:37 +02:00
9e1482ad04 fix make install regarding MANPAGES target 2020-04-09 10:23:37 +02:00
fef08192ad restore portable Makefiles 2020-04-09 10:23:37 +02:00
5488422471 fix UI bug for bit flip yields 2020-04-09 10:23:37 +02:00
e8e6dbf839 small enhancements and code-format 2020-04-09 10:23:37 +02:00
5602a09cc6 remove MaybeAlign 2020-04-09 10:23:37 +02:00
164a01e723 fix make install 2020-04-09 10:23:37 +02:00
f7f106c42a remove maybe_linking artifacts 2020-04-09 10:23:37 +02:00
7f817fe583 rename all 'Makefile' to 'GNUmakefile', use -Werror for -flto checks 2020-04-09 10:23:37 +02:00
5e66d95fbd better asan 2020-04-09 10:23:37 +02:00
d064b2e4af el no longer has to be used in loop 2020-04-09 10:23:37 +02:00
9d067d26da fix unit test case for long list 2020-04-09 10:23:37 +02:00
8e417ecb5c makefile asan fix 2020-04-09 10:23:37 +02:00
a9d072ad02 O3 again 2020-04-09 10:23:37 +02:00
5630c2e72c list testcase added 2020-04-09 10:23:37 +02:00
29ff59cc8a fixing unit tests (again) remove CFLAGS_FLTO, put LDFLAGS near the end 2020-04-09 10:23:37 +02:00
dab429521b added (broken) list test 2020-04-09 10:23:37 +02:00
48fc106905 added prealloc testcase 2020-04-09 10:23:37 +02:00
ee72d5d01d add Make rule for new unit test 2020-04-09 10:23:37 +02:00
378f4dd46d fix make target unit test (tested on Ubuntu 16.04) 2020-04-09 10:23:37 +02:00
2455f081fc llvm_mode: using MaybeAlign wrapper over the deprecated setter.
seems to be available even on LLVM 3.7
2020-04-09 10:23:37 +02:00
f06acc4e27 push new version 2020-04-09 09:14:12 +02:00
3c546341e3 fix indention 2020-04-09 09:08:04 +02:00
650bd1c179 Update README.snapshot.md 2020-04-09 08:58:35 +02:00
9efa96fe0c fixed critical whitespace 2020-04-09 01:40:03 +02:00
361c2ac576 fix compile for MacOSX -DFORTIFY_SOURCE=2 is problematic 2020-04-08 23:45:28 +02:00
54359be31a fix review comments by Heiko 2020-04-08 23:16:49 +02:00
77949acaee fix review comments by Heiko 2020-04-08 23:15:42 +02:00
88a852ef0f fix gcc_plugin Makefile (VPATH) 2020-04-08 22:21:32 +00:00
cb52b1757d Makefile cleanup 2020-04-08 21:39:11 +02:00
b4869d0663 unicorn_mode/samples/persistent Makefile portable version 2020-04-08 21:23:18 +02:00
30fa7b8006 remove todo 2020-04-08 19:17:21 +02:00
7793ca4055 fix travis - heiko test your changes on linux pls ;) 2020-04-08 18:28:35 +02:00
3353a23fcb one more include move 2020-04-08 18:19:38 +02:00
b32b9bd1d5 fix damage in test.sh 2020-04-08 18:16:08 +02:00
133a8cea1c llvm_mode ctx: move function terminator instrumentation before skipping blocks 2020-04-08 17:57:11 +02:00
729dbf7dda afl-fuzz: add usage info when no python support is there, use it in test.sh 2020-04-08 17:53:25 +00:00
67e9ef43a7 llvm_mode android fix 2020-04-08 17:22:31 +02:00
1b5b54fe94 fix limits.h include 2020-04-08 15:49:34 +02:00
9b3e6112ff Merge branch 'dev' of https://github.com/vanhauser-thc/AFLplusplus into dev 2020-04-08 17:39:19 +02:00
7663e7dd05 fix compilation in OpenBSD 2020-04-08 17:38:45 +02:00
2e29e64a3f Merge pull request #295 from devnexen/android_build_fix
Android build fix proposal.
2020-04-08 15:25:29 +02:00
15e0319c98 update todo 2020-04-08 13:12:14 +02:00
055ca98fb2 add missing piece for CTX coverage 2020-04-08 12:52:14 +02:00
968295ed81 added snapshot feature to documentation 2020-04-08 12:34:01 +02:00
48e366d7a8 argv_fuzzing Makefile: portable version 2020-04-08 10:44:42 +02:00
9aa10ef7ca fix travis 2020-04-08 10:39:32 +02:00
a85b8d69ef Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev 2020-04-08 10:21:46 +02:00
2900d51e5d socket_fuzzing Makefile: make it portable 2020-04-08 10:20:53 +02:00
63cc113f12 Merge pull request #298 from AFLplusplus/snapshot
Snapshot for LLVM mode in dev
2020-04-08 09:36:04 +02:00
3bf88da091 libdislocator: make Makefile portable 2020-04-08 08:50:30 +02:00
11e3122843 gcc_plugin: portable Makefile 2020-04-08 08:16:55 +02:00
dbe6b1da44 gcc_plugin fix compile for USEMMAP 2020-04-08 08:14:42 +02:00
91dc7776ec Android build fix proposal.
LTO flag is recognised but however broken on Android (tested with armv7 arch).
Thus giving the choice not to enable it.
In fortify mode, open required O_CREAT or O_TMPFILE when mode is set.
2020-04-08 04:57:01 +01:00
a5036499d2 update readme 2020-04-08 04:28:13 +02:00
9ef4b45609 ctx done 2020-04-08 03:56:12 +02:00
5b160f187d update env with AFL_NO_SNAPSHOT 2020-04-07 11:26:18 +02:00
604f17b897 small fixes 2020-04-07 10:56:31 +02:00
da1f3bf41e snapshot() in llvm mode 2020-04-07 10:50:21 +02:00
452acf3a75 added AFL_LLVM_INSTRUMENT, made USE_TRACE_PC obselete and llvm_mode Makefile fix, fixed for FUSELD (for LTO) 2020-04-06 13:33:49 +02:00
5ad50adaa8 GNUmakefile: python config add --ldflags, silence tests 2020-04-04 18:42:51 +02:00
c165165b58 unicorn_mode build script: find setuptools more reliably 2020-04-04 18:38:38 +02:00
0303d315fc Makefile bugfix macros are generally not expanded in shell calls 2020-04-04 16:45:59 +02:00
2129257454 fix silly error with uname -s 2020-04-04 16:16:13 +02:00
a7e9ce2e33 libtokencap, portable Makefile (for GNUmake and BSDmake) 2020-04-04 01:39:01 +02:00
b9851cdabe Merge branch 'dev' of https://github.com/vanhauser-thc/AFLplusplus into dev 2020-04-04 00:17:31 +02:00
a9261c6d64 portable version of Makefile (tested with bsdmake and GNUmake) 2020-04-04 00:15:08 +02:00
064131887b update todo 2020-04-03 14:17:31 +02:00
6b5d5b11b0 update todo 2020-04-03 14:00:29 +02:00
3f2859ec16 unit tests cleaning 2020-04-03 10:43:52 +02:00
5340f2f2eb code format, small improvements 2020-04-03 10:31:37 +02:00
8610b0e406 Merge branch 'dev' of github.com:vanhauser-thc/AFLplusplus into dev 2020-04-03 09:39:12 +02:00
ffb4767fc1 custom mutator readme 2020-04-03 09:39:09 +02:00
97cae2df99 no random timing for -s fixed_seed 2020-04-02 23:33:55 +02:00
dc0369eb10 fix make install regarding MANPAGES target 2020-04-02 22:14:39 +02:00
71f0bd003f Merge branch 'dev' of https://github.com/vanhauser-thc/AFLplusplus into dev 2020-04-02 17:00:58 +02:00
cc65e91eeb restore portable Makefiles 2020-04-02 17:00:35 +02:00
2ae0208d3b fix UI bug for bit flip yields 2020-04-02 16:46:31 +02:00
7114663f52 small enhancements and code-format 2020-04-02 16:41:33 +02:00
26e45e41ed remove MaybeAlign 2020-04-02 15:38:32 +02:00
38b14c5c44 fix make install 2020-04-02 15:18:05 +02:00
0c76d7e621 remove maybe_linking artifacts 2020-04-02 14:37:28 +02:00
c69c84da09 Merge pull request #288 from devnexen/llvm_mode_little_upd
llvm_mode: using MaybeAlign wrapper over the deprecated setter.
2020-04-02 10:55:58 +02:00
0565fe4213 rename all 'Makefile' to 'GNUmakefile', use -Werror for -flto checks 2020-04-02 12:24:39 +02:00
cb0bc98576 better asan 2020-04-02 02:44:49 +02:00
ef4eeede86 el no longer has to be used in loop 2020-04-01 20:42:50 +02:00
1cce581ffe fix unit test case for long list 2020-04-01 20:37:13 +02:00
989a85bb05 makefile asan fix 2020-04-01 18:56:59 +02:00
db3645c76b O3 again 2020-04-01 18:22:02 +02:00
b5c5496b2f list testcase added 2020-04-01 18:19:43 +02:00
4aec6dabde fixing unit tests (again) remove CFLAGS_FLTO, put LDFLAGS near the end 2020-04-01 16:18:44 +02:00
0fac7bd373 added (broken) list test 2020-04-01 15:56:27 +02:00
9c1c1062be added prealloc testcase 2020-04-01 15:56:27 +02:00
36a03e3bc8 add Make rule for new unit test 2020-04-01 15:51:34 +02:00
dfb0a65e07 fix make target unit test (tested on Ubuntu 16.04) 2020-04-01 15:39:36 +02:00
d40866add2 unittest for prealloc added 2020-04-01 14:39:03 +02:00
9ca8ff77f3 Merge branch 'master' of github.com:aflplusplus/aflplusplus into dev 2020-04-01 13:10:14 +02:00
e95ac10ff7 fix ASAN check 2020-04-01 13:10:07 +02:00
c7cf2c17a2 fix ASAN bulid for old gcc versions 2020-04-01 13:10:07 +02:00
29b1e30126 fixed asan mem limit 2020-04-01 13:10:07 +02:00
24b9eddc7e disable memory limits for ASAN build 2020-04-01 13:10:07 +02:00
effa766d4a fix cmocka fixup 2020-04-01 13:10:07 +02:00
b9783e44a3 cmocka mocks 2020-04-01 13:10:07 +02:00
35c817ccd0 mocking cmocka 1 for cmocka 0.x 2020-04-01 13:10:07 +02:00
77d68bc7bd old cmocka is old 2020-04-01 13:10:07 +02:00
6392a349ce add assert_ptr_equal fallback 2020-04-01 13:10:07 +02:00
4489dd24a8 typo fix 2020-04-01 13:10:07 +02:00
d374648ce3 docs 2020-04-01 13:10:07 +02:00
d611e7d50e next_p2 replaced by next_pow2 2020-04-01 13:10:07 +02:00
25d6d21617 code format 2020-04-01 13:10:07 +02:00
74b4096570 one less alloc 2020-04-01 13:10:07 +02:00
eca55be4fb minor changes 2020-04-01 13:10:07 +02:00
71372c4d2f fixed docu 2020-04-01 13:10:07 +02:00
a0693d466c try to fix forkserver 2020-04-01 13:10:07 +02:00
14d2456c35 fix gcc 2020-04-01 13:10:07 +02:00
c8bdf0790f reenabled custom mutator report 2020-04-01 13:10:07 +02:00
0b8a5cb4bb travis: dont fail on custom mutator - currently 2020-04-01 13:10:07 +02:00
8f98d5a8f8 fix unit test compilation 2020-04-01 13:10:07 +02:00
b83a2c1a00 make travis happy 2020-04-01 13:10:07 +02:00
5a4d4ad736 fixed bug in cmplog 2020-04-01 13:10:07 +02:00
5bc6dccbbd src doku is now markdown 2020-04-01 13:10:07 +02:00
42ee300e92 dropped make switches 2020-04-01 13:10:07 +02:00
582f5103d9 enabled fortify source 2020-04-01 13:10:07 +02:00
abef859925 Update regexp.dict 2020-04-01 13:10:07 +02:00
6eb79c28d1 Update regexp.dict 2020-04-01 13:10:07 +02:00
84a096561a tiny fixes 2020-04-01 13:10:07 +02:00
9a1f105869 fix ubuntu cmocka pkgname 2020-04-01 13:10:07 +02:00
677f2c6ca9 mutator docs 2020-04-01 13:10:07 +02:00
508230e91b code format 2020-04-01 13:10:07 +02:00
9cab515e58 added unittests to test.sh 2020-04-01 13:10:07 +02:00
514036898f added unit target to make help and README 2020-04-01 13:10:07 +02:00
19415f2554 Add test cases for the custom mutator (#276)
* Minor update

* Fix the soft link of `afl-clang-fast++`

* Add a test case for the custom mutator

- Update the Makefile in examples/custom_mutators
- Add a test program for testing the custom mutator
- Update test.sh for testing the custom mutator
- [TODO] Update the result checking criterias of the custom mutator in
test.sh

* Fix nullptr in the custom mutator

* Fix typo

* Fix invalid memory access bug in `afl_custom_pre_save` of example.c

* example.py: add deinit()

* python mutator: fix nullptr for python mutator data

* test.sh: "trusty-amd64" does not work well with "realpath". Use
"readlink -f" for Ubuntu instead.

* Fix heap allocation bug

- Reason: `afl->out_size` is not consistent with the actual allocation
of `afl->out_buf`. The deleted line in `src/afl-fuzz-one.c` may change
`afl->out_size`, but `afl->out_buf` is not changed

* test.sh: redirect command line output

* afl-fuzz-one.c: minor update

Co-authored-by: Dominik Maier <domenukk@gmail.com>
2020-04-01 13:10:07 +02:00
710a29a1e0 fixed testcase 2020-04-01 13:10:07 +02:00
c36c34cf9e fixed example 2020-04-01 13:10:07 +02:00
e910c224da afl-fuzz-one.c: minor update 2020-04-01 13:10:07 +02:00
ea95453975 test.sh: redirect command line output 2020-04-01 13:10:07 +02:00
61ea398612 Fix heap allocation bug
- Reason: `afl->out_size` is not consistent with the actual allocation
of `afl->out_buf`. The deleted line in `src/afl-fuzz-one.c` may change
`afl->out_size`, but `afl->out_buf` is not changed
2020-04-01 13:10:07 +02:00
64e1d3a975 test.sh: "trusty-amd64" does not work well with "realpath". Use
"readlink -f" for Ubuntu instead.
2020-04-01 13:10:07 +02:00
50fc7327f2 python mutator: fix nullptr for python mutator data 2020-04-01 13:10:07 +02:00
71edae4a0f example.py: add deinit() 2020-04-01 13:10:07 +02:00
0dd8ed9171 Fix invalid memory access bug in afl_custom_pre_save of example.c 2020-04-01 13:10:07 +02:00
d568559f01 Fix typo 2020-04-01 13:10:06 +02:00
1e290542bb rebase 2020-04-01 13:10:06 +02:00
245304f593 Add a test case for the custom mutator
- Update the Makefile in examples/custom_mutators
- Add a test program for testing the custom mutator
- Update test.sh for testing the custom mutator
- [TODO] Update the result checking criterias of the custom mutator in
test.sh
2020-04-01 13:10:06 +02:00
be441dc176 upstream changes 2020-04-01 13:10:06 +02:00
da1a0249d7 merged dev 2020-04-01 13:10:06 +02:00
d07587885c added untitest to gitignore 2020-04-01 13:10:06 +02:00
376b45c199 code format 2020-04-01 13:10:06 +02:00
b247366c4e regec dict additions 2020-04-01 13:10:06 +02:00
7c383094d9 added unittest for unit_maybe_alloc 2020-04-01 13:10:06 +02:00
9721990507 code cleanup 2020-04-01 13:10:06 +02:00
452067ffca added read_timed 2020-04-01 13:10:06 +02:00
3ce5efc44b llvm_mode/Makefile: replace lexical version comparison with a numerical one 2020-04-01 13:10:06 +02:00
1e8c1a4c46 review adaptions for afl-llvm-pass 2020-04-01 13:10:06 +02:00
b53ec1b247 afl-llvm-pass.so.cc: fix compile for llvm 3.8.0 @Marc: please review 2020-04-01 13:10:06 +02:00
4ccfbe4e5a .gitignore: add afl-ld and ld 2020-04-01 13:10:06 +02:00
7698c051aa qemu_mode: compiler warnings, strncpy() leave one byte for terminator 2020-04-01 13:10:06 +02:00
1950f09bde qemu_mode: fix more compiler warnings 2020-04-01 13:10:06 +02:00
e41b03eb30 qemu_mode: silence two compiler warnings 2020-04-01 13:10:06 +02:00
98545f30aa code format 2020-04-01 13:10:06 +02:00
81873d97f8 error handling for custom mutators 2020-04-01 13:10:06 +02:00
cda56ca129 types.h: silence some compiler warnings regarding redeclaration of
likely/unlikely
2020-04-01 13:10:06 +02:00
ab5e0703da tiny changes in custom mut api 2020-04-01 13:10:06 +02:00
f370ef38c4 alloc-inl.h/ck_maybe_grow(): restore original exponential allocs 2020-04-01 13:10:06 +02:00
1119a2e185 alloc-inl.h/ck_maybe_grow() back to size_t, reimplement overflow check 2020-04-01 13:10:06 +02:00
9d7ac3d99f alloc_inl.h/ck_maybe_grow(): fix compiler warning 2020-04-01 13:10:06 +02:00
0732e66da9 gcc_plugin: fix compiler warnings regarding -O and FORTIFY_SOURCE 2020-04-01 13:10:06 +02:00
e56e2f4c18 llvm_mode: fix compiler warnings FORTIFY_SOURCE needs -O 2020-04-01 13:10:06 +02:00
23d9649aec making 'CFLAGS="-m32" make source-only tests' work 2020-04-01 13:10:06 +02:00
738a245c3e fix warning in afl-fuzz-run, tested with '-m32' also 2020-04-01 13:10:06 +02:00
78d73720a2 fix detection compiles (e.g. python) when using CFLAGS="-m32" 2020-04-01 13:10:05 +02:00
e59282fe20 if exponential growth is too much, don't doo it 2020-04-01 13:10:05 +02:00
9785b15ed2 more custom mutator remodelling 2020-04-01 13:10:05 +02:00
8c94a3d177 added nullptr fix by h1994st 2020-04-01 13:10:05 +02:00
5bd8aa489b fixed leak 2020-04-01 13:10:05 +02:00
e71c2937de code format 2020-04-01 13:10:05 +02:00
3d6c58df53 part1 make it compilable for llvm 3.8.0 (ubuntu 16.04) 2020-04-01 13:10:05 +02:00
34c090a31d add CFI sanitizer 2020-04-01 13:10:05 +02:00
762421b355 less allocs 2020-04-01 13:10:05 +02:00
b7f3d180aa not allocating paths anymore 2020-04-01 13:10:05 +02:00
71f8cc9dd2 almost 2020-04-01 13:10:05 +02:00
3c7bc6fd42 Merge branch 'dev' of github.com:aflplusplus/aflplusplus into dev 2020-04-01 12:53:10 +02:00
af60844aea fix ASAN bulid for old gcc versions 2020-04-01 12:53:03 +02:00
c4c13dd235 fix ASAN check 2020-04-01 12:52:54 +02:00
ba4f0186dd fixed asan mem limit 2020-04-01 12:43:26 +02:00
a5c09e4c11 disable memory limits for ASAN build 2020-04-01 12:19:54 +02:00
c7818714ac fix cmocka fixup 2020-04-01 09:42:40 +02:00
cec3d74497 cmocka mocks 2020-04-01 03:39:36 +02:00
10b226418c mocking cmocka 1 for cmocka 0.x 2020-04-01 03:20:22 +02:00
c843085a28 old cmocka is old 2020-04-01 02:59:19 +02:00
101c5a275f add assert_ptr_equal fallback 2020-04-01 02:28:54 +02:00
acf4b0981e typo fix 2020-04-01 02:09:33 +02:00
98c0908185 docs 2020-04-01 02:07:52 +02:00
ead3701f5b next_p2 replaced by next_pow2 2020-04-01 02:03:46 +02:00
0349b0a735 code format 2020-04-01 02:00:03 +02:00
11cad9fb20 one less alloc 2020-04-01 01:58:34 +02:00
7f44fec0a5 minor changes 2020-04-01 01:55:13 +02:00
d4c8a2058d fixed docu 2020-04-01 01:38:45 +02:00
d73e63bd70 try to fix forkserver 2020-04-01 01:24:44 +02:00
48655c2e12 llvm_mode: using MaybeAlign wrapper over the deprecated setter.
seems to be available even on LLVM 3.7
2020-03-31 19:25:24 +01:00
d0d5518ea8 fix gcc 2020-03-31 18:06:14 +02:00
822e75f7c2 reenabled custom mutator report 2020-03-31 14:01:22 +02:00
08b6b4ec4e travis: dont fail on custom mutator - currently 2020-03-31 07:37:30 +02:00
3253e3f315 fix unit test compilation 2020-03-31 07:14:25 +02:00
e58e54c2db make travis happy 2020-03-31 04:51:38 +02:00
0a7dc10dd3 fixed bug in cmplog 2020-03-31 04:22:22 +02:00
3914aec72f src doku is now markdown 2020-03-31 03:41:51 +02:00
9b63fc758e dropped make switches 2020-03-31 03:22:46 +02:00
d3130ace30 enabled fortify source 2020-03-31 02:41:11 +02:00
daa09a5fbb Update regexp.dict 2020-03-31 01:41:16 +02:00
a249dadfb0 Update regexp.dict 2020-03-31 01:41:16 +02:00
64e9f1f3a2 tiny fixes 2020-03-30 23:53:10 +02:00
9110097e11 fix ubuntu cmocka pkgname 2020-03-30 18:55:54 +02:00
ac48b58184 mutator docs 2020-03-30 18:46:12 +02:00
8f5fb47082 code format 2020-03-30 18:38:39 +02:00
a58382d3ff added unittests to test.sh 2020-03-30 18:37:16 +02:00
5ef8e3cf29 Merge branch 'dev' of github.com:aflplusplus/aflplusplus into dev 2020-03-30 18:22:43 +02:00
6544014ced Add test cases for the custom mutator (#276)
* Minor update

* Fix the soft link of `afl-clang-fast++`

* Add a test case for the custom mutator

- Update the Makefile in examples/custom_mutators
- Add a test program for testing the custom mutator
- Update test.sh for testing the custom mutator
- [TODO] Update the result checking criterias of the custom mutator in
test.sh

* Fix nullptr in the custom mutator

* Fix typo

* Fix invalid memory access bug in `afl_custom_pre_save` of example.c

* example.py: add deinit()

* python mutator: fix nullptr for python mutator data

* test.sh: "trusty-amd64" does not work well with "realpath". Use
"readlink -f" for Ubuntu instead.

* Fix heap allocation bug

- Reason: `afl->out_size` is not consistent with the actual allocation
of `afl->out_buf`. The deleted line in `src/afl-fuzz-one.c` may change
`afl->out_size`, but `afl->out_buf` is not changed

* test.sh: redirect command line output

* afl-fuzz-one.c: minor update

Co-authored-by: Dominik Maier <domenukk@gmail.com>
2020-03-30 18:21:03 +02:00
3fcb3e2ed3 fixed testcase 2020-03-30 18:20:20 +02:00
caebc9347f added unit target to make help and README 2020-03-30 17:45:17 +02:00
1f257c5875 fixed example 2020-03-30 16:46:54 +02:00
e2a3de71ca afl-fuzz-one.c: minor update 2020-03-30 16:46:54 +02:00
57a0134b0c test.sh: redirect command line output 2020-03-30 16:46:54 +02:00
d9b18ec853 Fix heap allocation bug
- Reason: `afl->out_size` is not consistent with the actual allocation
of `afl->out_buf`. The deleted line in `src/afl-fuzz-one.c` may change
`afl->out_size`, but `afl->out_buf` is not changed
2020-03-30 16:46:54 +02:00
6c14415664 test.sh: "trusty-amd64" does not work well with "realpath". Use
"readlink -f" for Ubuntu instead.
2020-03-30 16:46:54 +02:00
567b3985ab python mutator: fix nullptr for python mutator data 2020-03-30 16:46:54 +02:00
45561d552e example.py: add deinit() 2020-03-30 16:46:54 +02:00
fbd5bd8f37 Fix invalid memory access bug in afl_custom_pre_save of example.c 2020-03-30 16:46:54 +02:00
048beb752d Fix typo 2020-03-30 16:46:53 +02:00
87621b6345 rebase 2020-03-30 16:46:50 +02:00
ff14dfc0fc Add a test case for the custom mutator
- Update the Makefile in examples/custom_mutators
- Add a test program for testing the custom mutator
- Update test.sh for testing the custom mutator
- [TODO] Update the result checking criterias of the custom mutator in
test.sh
2020-03-30 16:46:11 +02:00
c624831717 upstream changes 2020-03-30 16:46:05 +02:00
c697a003d1 merged dev 2020-03-30 16:45:13 +02:00
6bdd7a1609 added untitest to gitignore 2020-03-30 16:08:07 +02:00
50a195fe59 code format 2020-03-30 16:07:25 +02:00
738016952f Merge branch 'dev' of github.com:aflplusplus/aflplusplus into dev 2020-03-30 16:01:33 +02:00
209aa25d27 added unittest for unit_maybe_alloc 2020-03-30 16:01:29 +02:00
1279c935e2 regec dict additions 2020-03-30 11:33:42 +02:00
28e5a8031c code cleanup 2020-03-30 00:50:32 +02:00
f4844e2c0c added read_timed 2020-03-30 00:50:14 +02:00
ef3a13fa63 llvm_mode/Makefile: replace lexical version comparison with a numerical one 2020-03-29 09:48:01 +02:00
699f769385 review adaptions for afl-llvm-pass 2020-03-28 23:01:12 +01:00
2548b657d8 afl-llvm-pass.so.cc: fix compile for llvm 3.8.0 @Marc: please review 2020-03-28 20:25:00 +01:00
02d19dafb2 .gitignore: add afl-ld and ld 2020-03-28 14:23:54 +01:00
78009d9d07 qemu_mode: compiler warnings, strncpy() leave one byte for terminator 2020-03-28 14:15:04 +01:00
2aa7ddf1a8 qemu_mode: fix more compiler warnings 2020-03-28 13:51:35 +01:00
3c142efecf qemu_mode: silence two compiler warnings 2020-03-28 13:38:49 +01:00
23b3e3c84d Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev 2020-03-28 13:06:05 +01:00
8b8600fdab types.h: silence some compiler warnings regarding redeclaration of
likely/unlikely
2020-03-28 13:05:26 +01:00
1938a12222 code format 2020-03-28 12:59:41 +01:00
4c11ef5d20 error handling for custom mutators 2020-03-28 12:58:56 +01:00
6ac40e2cc5 Merge branch 'dev' of https://github.com/vanhauser-thc/AFLplusplus into dev 2020-03-28 12:16:01 +01:00
5625e059e1 alloc-inl.h/ck_maybe_grow(): restore original exponential allocs 2020-03-28 12:15:01 +01:00
11767bec0e tiny changes in custom mut api 2020-03-28 11:55:10 +01:00
7a92bf974d alloc-inl.h/ck_maybe_grow() back to size_t, reimplement overflow check 2020-03-28 11:01:29 +01:00
fc46e9c9a0 alloc_inl.h/ck_maybe_grow(): fix compiler warning 2020-03-28 10:23:11 +01:00
7a752d0795 gcc_plugin: fix compiler warnings regarding -O and FORTIFY_SOURCE 2020-03-28 10:00:23 +01:00
0cff53785b llvm_mode: fix compiler warnings FORTIFY_SOURCE needs -O 2020-03-28 09:54:40 +01:00
4ad885001a making 'CFLAGS="-m32" make source-only tests' work 2020-03-28 09:31:30 +01:00
a0dec909e7 fix warning in afl-fuzz-run, tested with '-m32' also 2020-03-28 08:38:50 +01:00
2a660b19a7 fix detection compiles (e.g. python) when using CFLAGS="-m32" 2020-03-28 08:32:54 +01:00
8992c44c41 if exponential growth is too much, don't doo it 2020-03-28 05:01:01 +01:00
53fd8fe6ea more custom mutator remodelling 2020-03-28 04:57:44 +01:00
0059d16731 added nullptr fix by h1994st 2020-03-28 01:14:24 +01:00
18bc344cf5 fixed leak 2020-03-28 00:44:52 +01:00
e04f4b3f20 code format 2020-03-27 23:30:15 +01:00
5e389a0970 Less allocs 2020-03-27 23:24:42 +01:00
1141459607 less allocs 2020-03-27 23:23:11 +01:00
02659df6ba not allocating paths anymore 2020-03-27 23:06:57 +01:00
14bd424d2a almost 2020-03-27 21:59:08 +01:00
7c76b7db04 part1 make it compilable for llvm 3.8.0 (ubuntu 16.04) 2020-03-27 21:03:28 +01:00
a7553eae28 add CFI sanitizer 2020-03-27 12:09:06 +01:00
5cc50bb979 important llvm_mode Makefile fix 2020-03-27 11:06:06 +01:00
932eae7343 example fixed 2020-03-27 11:06:06 +01:00
604f122819 docu 2020-03-27 11:06:06 +01:00
d6a7630fe2 more api 2020-03-27 11:06:06 +01:00
fc4b03ee74 Code Format (#275) 2020-03-27 11:06:06 +01:00
e9c7610cb7 edited custom mutator pre_save api 2020-03-27 11:06:06 +01:00
3c3a5aa503 updated with required changes 2020-03-27 11:06:06 +01:00
6d3dc83c5d code format 2020-03-27 11:06:06 +01:00
89512d4e05 fixed call of custom mutators 2020-03-27 11:06:06 +01:00
b1d71136b0 fixed typos in README.md 2020-03-27 11:06:06 +01:00
8cf47f2425 add "time without finds" to afl-whatsup 2020-03-27 11:06:06 +01:00
c75b403bb7 fix doc link 2020-03-27 11:06:06 +01:00
ae284610cf important llvm_mode Makefile fix 2020-03-27 10:08:09 +01:00
5a7d33330a example fixed 2020-03-26 19:48:26 +01:00
12a9a1001e docu 2020-03-26 19:47:16 +01:00
97a1af39f7 more api 2020-03-26 19:44:44 +01:00
6832435326 Code Format (#275) 2020-03-26 18:47:48 +01:00
62bb94c50b Merge branch 'dev' of github.com:aflplusplus/aflplusplus into dev 2020-03-25 21:54:59 +01:00
eeb7e12b9f edited custom mutator pre_save api 2020-03-25 21:54:52 +01:00
f796537712 Merge pull request #272 from ashiscs/master
fixed typos in README.md
2020-03-25 17:32:32 +01:00
469446a02b updated with required changes 2020-03-25 19:35:38 +05:30
b24ef50f7b Merge pull request #271 from fuzzah/aflpp_time_without_finds
add "time without finds" to afl-whatsup
2020-03-25 12:50:42 +01:00
f6466214c6 code format 2020-03-25 11:31:01 +01:00
9c4d32b5b8 fixed call of custom mutators 2020-03-24 22:40:14 +01:00
50be709e91 fixed typos in README.md 2020-03-25 01:21:02 +05:30
2e060f856d Merge branch 'dev' of github.com:aflplusplus/aflplusplus into dev 2020-03-24 18:46:43 +01:00
c9a2401983 fix doc link 2020-03-24 18:46:25 +01:00
ce58790fc0 add "time without finds" to afl-whatsup 2020-03-24 15:12:08 +03:00
7f3e04cbc4 fix doc link 2020-03-24 08:44:18 +01:00
3fb346fe29 Merge pull request #269 from AFLplusplus/dev
Dev
2020-03-23 20:42:10 +01:00
36213dba7d Merge branch 'dev' of github.com:vanhauser-thc/AFLplusplus into dev 2020-03-23 20:19:20 +01:00
65817144ac include afl-llvm-rt.o not only when linking 2020-03-23 20:19:07 +01:00
82432195a8 Merge pull request #266 from AFLplusplus/dev 2020-03-23 18:19:20 +01:00
77b81e7361 custom mutators might work again like this 2020-03-23 18:18:54 +01:00
83f925ccc9 unsafer 2020-03-23 15:02:26 +01:00
39208eeb9a typo 2020-03-23 12:06:43 +01:00
f32d1022bd surgical_havoc_mutate() in custom mutator helpers 2020-03-23 10:47:17 +01:00
ee9447de01 libasan.so is not a thing. libclang-rt.asan-ARCH.so is the asan DSO and it is not linked by default. Search for __asan_init instead. 2020-03-23 10:09:55 +01:00
dcfc24501b update readme 2020-03-23 10:05:08 +01:00
e65e723e03 update readme 2020-03-23 09:50:12 +01:00
94e30002e7 better man page for afl-clang-* 2020-03-23 09:25:05 +01:00
37603272be more fixes and code-format 2020-03-23 08:58:17 +01:00
4263519479 more fixes 2020-03-23 08:48:57 +01:00
db302ff18b minor fixes 2020-03-23 08:44:27 +01:00
cbde30e9d4 less branches, cleanup 2020-03-23 00:14:03 +01:00
c0fd8f4e15 Merge pull request #265 from devnexen/unicorn_python3_4_mac
Enforcing python3 for Mac too.
2020-03-22 19:09:43 +01:00
d39e9ea11c little performance enhancements 2020-03-22 19:06:39 +01:00
5b64681867 a little bit more performance 2020-03-22 18:27:04 +01:00
0132657432 Enforcing python3 for Mac too. 2020-03-22 12:31:58 +00:00
aac7c7d75d detect arm in build_qemu_support.sh 2020-03-22 12:09:52 +01:00
bd239d7e3d nice -n -20 to commit test script 2020-03-22 11:28:09 +01:00
da1f2f3c17 fix travis 2020-03-22 10:24:29 +01:00
7374af51d1 silly, silly typo 2020-03-22 10:07:59 +01:00
38fa2fe0b1 add commit test script test/checkcommit.sh 2020-03-22 09:32:13 +01:00
5a0cc43ee1 all afl msgs to stdout and only read AFL_BENCH_JUST_ONE once 2020-03-22 09:26:46 +01:00
f08a3fedf6 renamed UB to rand_below 2020-03-21 22:26:13 +01:00
5cf3426834 remove debug code 2020-03-21 22:17:57 +01:00
96736309a7 support for arm platform when building qemu 2020-03-21 22:11:07 +01:00
42ece199c8 revert test.sh patch 2020-03-21 22:04:52 +01:00
54d01fec43 moved string formatting to header 2020-03-21 21:48:52 +01:00
f8d717d195 test.sh fix 2020-03-21 21:42:32 +01:00
c6db05c5ae test.sh with -no-pie 2020-03-21 21:10:38 +01:00
6f78b67f03 adjusted int_bufs 2020-03-21 20:28:01 +01:00
a5af81506f qemu_mode/unicorn_mode scripts: fix '==' in '[' 2020-03-21 19:31:15 +01:00
087bc6daeb qemu_mode and unicorn_mode build scripts: replace type with command -v 2020-03-21 19:22:55 +01:00
f18dbb0b40 afl-gotcpu.c: compielr warning fixed: initialize variable v2 2020-03-21 19:13:39 +01:00
6cbd0f1faf avoid calling awk for 'which' replacement, use POSIX 'command -v' instead 2020-03-21 18:51:43 +01:00
dcd9cd638b fix stat display 2020-03-21 17:42:00 +01:00
350530f664 unicorn build script: list all missing prereqs in one invocation,
replace which with type
2020-03-21 10:59:58 +01:00
dabce05ec6 qemu_mode/build script: add more missing prereqs 2020-03-21 10:46:23 +01:00
993bf03af9 Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev 2020-03-21 10:36:18 +01:00
2508008b53 qemu_mode, build script: avoid which, add patch to prereqs, list all
missing prereqs in one invocation
2020-03-21 10:31:39 +01:00
a0012c9e82 forgot readme for ngram 2020-03-20 17:56:24 +01:00
c63956b8ec Merge branch 'dev' of https://github.com/vanhauser-thc/AFLplusplus into dev 2020-03-20 17:32:42 +01:00
6965797286 unicorn: increase timeout for unicorn test in build script 2020-03-20 17:31:48 +01:00
5a74cffa0f added llvm_mode ngram coverage 2020-03-20 17:10:44 +01:00
f21ff8bac8 show cycles_without_finds in afl-whatsup 2020-03-20 12:19:22 +01:00
5d932398df expose cycles_wo_finds in fuzzer_stats 2020-03-20 09:44:51 +01:00
5532fc1102 added missing descriptions of entries in fuzzer_stats 2020-03-20 09:28:43 +01:00
60d66ebc0d clean was missing ld symlink 2020-03-20 09:06:54 +01:00
29853549c3 add RARE schedule. also fixes doc_path 2020-03-20 08:54:09 +01:00
d0b5cd64c3 install llvm_mode READMEs 2020-03-19 23:55:28 +01:00
cd4243b6ad update doc 2020-03-19 23:40:45 +01:00
cd2be88707 travis for dev branch 2020-03-19 23:29:33 +01:00
5b9d306cdf no more (?) statics 2020-03-19 22:54:09 +01:00
0fa47bb867 removed unneeded func 2020-03-19 21:33:17 +01:00
b22e890ec2 fixed resize; removed more statics 2020-03-19 21:32:08 +01:00
b6fa63abdf code format 2020-03-19 19:23:58 +01:00
51a346bcbe 50% less globals 2020-03-19 19:22:57 +01:00
fd9587d26e Merge pull request #262 from rish9101/remove_alarm
Port the fauxserver changes to afl-cmplog and code format
2020-03-19 17:01:57 +01:00
0e1d82dd9f describe branches setup in README 2020-03-19 15:27:12 +01:00
be261b3e69 moved repository to https://github.com/AFLplusplus/AFLplusplus and updated links 2020-03-19 15:20:39 +01:00
f6847b0314 test.sh: replace 'which' with 'type' 2020-03-19 00:19:25 +01:00
eca6bdb85d afl-cmin: replace 'which' with 'type' 2020-03-19 00:15:48 +01:00
a3bd1c71ca Makefiles: replace 'which' with 'type' 2020-03-18 23:51:54 +01:00
b19039ba8b Merge branch 'master' of https://github.com/vanhauser-thc/AFLplusplus 2020-03-18 22:56:19 +01:00
94a4cc8415 Makefiles: prefer POSIX 'type' over 'which' for checking 2020-03-18 22:55:14 +01:00
2e4fda6d4c fix #261 2020-03-18 21:18:55 +01:00
cd7e234445 try to fix regression due to rtn cmplog 2020-03-18 21:07:31 +01:00
a5e747af14 rework docs installation 2020-03-18 17:26:21 +01:00
5060861545 qemu_mode/libcompcov/Makefile install: fix installation of README 2020-03-18 16:26:54 +01:00
992cf3dd25 libtokencap Makefile install: forgot -T for README 2020-03-18 16:23:54 +01:00
1dee73cdde libtokencap: install correct README without name collision 2020-03-18 16:19:14 +01:00
3aa7242925 added mmopt power schedule 2020-03-17 21:42:36 +01:00
4009f3a987 fix reading env vars in afl-fuzz 2020-03-17 21:02:06 +01:00
cfd451c6f3 cmplog was neither quiet nor where its llvm passes installed 2020-03-17 16:26:51 +01:00
8e07fbf636 cmplog was neither quiet nor where its llvm passes installed 2020-03-17 16:26:36 +01:00
dae249dc71 minor fix to qemu_persistent_hook example 2020-03-17 16:10:34 +01:00
e194acdd79 PR #257 from chibinz, enhance afl-whatsup, (adapted for portability) 2020-03-17 14:26:08 +01:00
287d430fcf better explain AFL_QEMU_DEBUG_MAPS 2020-03-17 12:37:20 +01:00
d1d2fceed8 Port the fauxserver changes to afl-cmplog and code format 2020-03-17 15:19:24 +05:30
8cc39a3590 fix link in readme 2020-03-17 09:01:55 +01:00
a57896a7ce fixed segfault on early bailout 2020-03-17 00:00:36 +01:00
35720304be not all opt are compiled with polly support 2020-03-16 20:10:42 +01:00
09b2565b1b fix broken MOpt mode that was broken by Dominiks no-global patch :p 2020-03-16 20:09:46 +01:00
5b9335be10 fix compilation for Darwin/MacOSX 2020-03-16 14:04:21 +01:00
9ce0617cda fix for instrim with and without AFL_LLVM_INSTRIM_SKIPSINGLEBLOCK 2020-03-16 07:28:31 +01:00
61ba214f19 print a completed UI screen on exit without bugs :) 2020-03-15 22:51:22 +01:00
bfe076748b fix test failure with qemu compcov 2020-03-15 21:42:04 +01:00
070412b9c1 Merge pull request #259 from devnexen/afl_globals_little_tweaks
Just compute the current len on env comparison once.
2020-03-15 20:03:27 +01:00
ccb21a745d Just compute the current len once.
Fix env var types assignments.
2020-03-15 18:57:18 +00:00
87599de782 fix errors in last commit (u8)afl_get_env 2020-03-15 19:39:03 +01:00
126d1f1cd1 Move afl-fuzz related env variables into afl_state_t (#252)
* Move afl-fuzz related env variables into afl_state_t

* Move the env variables assignment from fuzz_init and code Format

* Fix typo

* Remove redundant env variables from afl_env struct

* Rename function to read_afl_environment
2020-03-15 18:29:23 +01:00
7685893cdb fix afl-fuzz-document 2020-03-15 17:09:52 +01:00
f9f163e48f fix afl-fuzz-document 2020-03-15 17:07:06 +01:00
15ba6249fc fauxserver 2020-03-15 17:02:48 +01:00
f3799f94bf fix compiler warning on MacOS 2020-03-14 16:40:05 +01:00
e77c431582 fix compilation under FreeBSD: ugly name clash of LIST_FOREACH (FreeBSDs fault) 2020-03-14 13:21:39 +01:00
338daa1282 Merge branch 'master' of https://github.com/vanhauser-thc/AFLplusplus 2020-03-14 11:45:25 +01:00
c616fcafe8 fix some compiler warnings from Open/FreeBSD 2020-03-14 11:44:21 +01:00
08fe1e2cd7 afl-common.c: fix my error: argv is a copy (ck_alloc based)
Now unicorn_mode works with ASAN_BUILD and _WANT_ORIGINAL_AFL_ALLOC
and DEBUG_BUILD also.
2020-03-13 20:37:39 +01:00
746a2a0ed0 afl-fuzz-init.c, afl-fuzz.c: fix more wrong free() calls (found with
ASAN_BUILD=1 CFLAGS="-D_WANT_ORIGINAL_AFL_ALLOC -DDEBUG_BUILD")
2020-03-13 17:23:23 +01:00
d2787519e3 afl-common.c: ... but that breaks unicorn_mode, which it should not. 2020-03-13 10:06:02 +01:00
23d0cea3c9 afl-common.c: avoid AFL++'s allocation API for libc's argv[] and reduce
complexity for cwd
2020-03-13 01:21:07 +01:00
530bd2b341 test.sh: make afl-cmin.bash test dependent on bash 2020-03-12 22:52:20 +01:00
8adc2648f8 fix afl-common.c for *BSD 2020-03-12 21:43:53 +01:00
0c45918d54 Fixed typo (#253) 2020-03-11 22:53:50 +01:00
288432843b updated README, ideas and a missing clean in Makefile 2020-03-11 12:03:44 +01:00
684f4dd1c4 honor afl_quiet on env var checks + code-format 2020-03-11 11:42:57 +01:00
d8d89507b5 afl-cmin delete output directory when aborted 2020-03-11 11:25:58 +01:00
f1ef398909 remove wrong call to write_to_file when aborted by user 2020-03-11 11:11:22 +01:00
66e8faaaa9 Fix typo (#247) 2020-03-11 00:48:52 +01:00
f17a3dde1a Replace timer with select in forkserver, where possible (#246) 2020-03-11 00:34:51 +01:00
88ced831c1 forkserver defaults 2020-03-10 22:56:26 +01:00
cc1d6b33b1 unified pointer placement 2020-03-10 22:04:05 +01:00
2832cb643d removed debug output 2020-03-10 16:27:28 +01:00
cd377f3d99 Replace alarms with select and threads (#243)
* Use select to monitor forkserver for timeouts instead of alarm

* Remove redundent conditons in select monitoring of fdsin forkserver and cmplog

* Replace SIGALARM with POSIX timers in afl-fuzz-run

* Make changes to Makefile to use POSIX timers

* Resolve Merge Conflicts and rename variables accordingly

* Change forkserver and cmplog to handle exec_tmout = 0

* Handle timeout function bug rectify

* Add error handling to afl-fuzz run timers

* Add timer_delete to afl-fuzz-run

* Remove memory leaks
2020-03-10 13:07:29 +01:00
0def6e3471 this should fix travis 2020-03-10 07:18:23 +01:00
1148a2d0d1 document new environment variables and code format 2020-03-10 07:14:42 +01:00
38d9aedb26 code-format - and afl-cmin/afl-showmap was fixed in the bugfix for afl-tmin 2020-03-10 06:54:31 +01:00
1467776a3f imported InsTrim algo fix 2020-03-10 06:47:11 +01:00
f678731234 afl-tmin is fixed via default initialization in forkserver 2020-03-10 06:44:24 +01:00
e04d2a6efa removed unused vars 2020-03-09 21:58:39 +01:00
1136e887bd now wiht 90% less leaks 2020-03-09 21:34:11 +01:00
416020daef quickfix for first big bug that use_stdin was not correctly initialized and could not be set 2020-03-09 19:42:23 +01:00
73a1b39446 quickfix for first big bug that use_stdin was not correctly initialized and could not be set 2020-03-09 19:40:59 +01:00
253bbf3a5c replaced free with ck_free 2020-03-09 19:36:02 +01:00
782cffb130 fixed numerous leaks 2020-03-09 19:30:26 +01:00
a24352ddfd fix leaks 2020-03-09 15:52:14 +01:00
2f41663673 copyleft note 2020-03-09 14:43:40 +01:00
cdd1dd3d20 changelog 2020-03-09 14:37:34 +01:00
dea1dbfba4 updated changelog and todo 2020-03-09 12:33:06 +01:00
988a32ced5 code-format 2020-03-09 12:21:54 +01:00
188a6f5ec5 disable leaksanitizer when "make" ... more 2020-03-09 12:17:59 +01:00
aa4050d406 disable leaksanitizer when "make" 2020-03-09 12:04:35 +01:00
581097d58d expanded test-instr to also work with input files via "-f @@" and changed the test.sh values 2020-03-09 11:39:12 +01:00
dba3595c0a AFL without globals (#220)
* moved globals to afl, shm and fsrv 

* moved argv to afl state, less bugs

* fixed unicorn docu

* lists everywhere

* merged custom mutators

* fixed leaks in afl-fuzz
2020-03-09 11:24:10 +01:00
c159b872ef removed warning in afl-gcc-pass.so.cc 2020-03-09 11:23:29 +01:00
df74edeb45 more honoring be_quiet 2020-03-09 11:08:50 +01:00
dcf7d85cba honor no_quiet for missing llvm_mode output, also print to stderr with afl-*-rt.o.c instead of stdout for errors plus two potential bad free() fixes 2020-03-09 10:56:53 +01:00
8e953d9931 Merge pull request #240 from rish9101/refactor
Remove get_cut_time function from multiple places and refactor code
2020-03-09 09:30:25 +01:00
9f89bbd5ec reactivated LTO persistent mode to test.sh 2020-03-09 08:51:37 +01:00
6a6dd84b39 more detail to the fact that LTO mode can fail easily 2020-03-09 08:33:08 +01:00
36ce9c1fb9 more code format 2020-03-09 08:30:28 +01:00
0581f6ec00 bug fixes to afl-ld and intensive README.lto.md update on errors and how to do the steps by hand, plus global code format 2020-03-09 08:27:23 +01:00
1a582d54e5 Remove get_cut_time function from multiple places and refactor code 2020-03-09 10:04:32 +05:30
a3161b902e fix null ptr deferef in pre_save python mutator call 2020-03-08 22:02:57 +01:00
783f3b0957 afl-ld fixes for -L/-l .a libary loads 2020-03-08 19:12:04 +01:00
8ff0161d58 "fixed" symbol multiply defined problems with LTO 2020-03-08 18:20:28 +01:00
9f7bcca91e mark AFL_PYTHON_ONLY deprecated 2020-03-08 16:56:44 +01:00
891f6985ed Merge pull request #238 from h1994st/master
Two new hooks for the custom mutator
2020-03-08 12:38:01 +01:00
98ffef26dc Merge pull request #239 from 0x1eadbead/fix-qemu-32-on-64
fix qemu persistent mode for 32-bit target on 64-bit host
2020-03-08 11:50:44 +01:00
81179b4829 fix qemu persistent mode for 32-bit target on 64-bit host 2020-03-08 13:39:06 +03:00
e7bc3e09a3 Update .gitignore 2020-03-07 16:30:31 -05:00
8f93cf5c55 Add two new hooks for the custom mutator
- `afl_custom_queue_get` and `afl_custom_queue_new_entry`
- Update the corresponding document and examples
2020-03-07 16:28:48 -05:00
dc0b2dda5e Merge branch 'master' of https://github.com/vanhauser-thc/AFLplusplus 2020-03-07 10:29:14 -05:00
ed5d65b54f solve linking error when python is not available 2020-03-07 14:26:33 +01:00
172d384bf2 custom havoc mutation 2020-03-07 12:11:06 +01:00
1e30c3a941 afl-tmin hang mode added 2020-03-07 03:40:42 +01:00
a10a3f2fa7 Merge branch 'master' of https://github.com/vanhauser-thc/AFLplusplus 2020-03-06 16:28:26 -05:00
2287534ec6 Merge branch 'master' of github.com:vanhauser-thc/AFLplusplus 2020-03-06 21:23:54 +01:00
27d6d35893 small fix to run cmplog binaries outside afl-fuzz 2020-03-06 21:23:47 +01:00
13429d204d adapt child handling to nawk from *BSD 2020-03-06 20:57:28 +01:00
0d4f2da8db terminate afl-cmin early when signalled SIGINT 2020-03-06 19:33:02 +01:00
47fdbf3817 Merge pull request #235 from antonio-morales/patch-1
Fixing 2 little mistakes
2020-03-06 16:53:10 +01:00
1d4a3c87f5 cmplog routines instrumentation for qemu mode on x86 2020-03-06 16:43:18 +01:00
c18f6c2618 Fixing 2 little mistakes
This example doesn't compile due to two little errors:
- There is a missing semicolon
- "data" array doesn't exist. I think "buf" should be used instead.
2020-03-06 16:09:43 +01:00
6e8f249b20 fix #227 2020-03-05 20:43:28 +01:00
3ac568c40c Fix leaks when stopping afl (#228) 2020-03-05 20:23:04 +01:00
90409f383a added AFL_QUIET - be_quiet to afl-showmap and small changes to test.sh 2020-03-05 11:36:37 +01:00
cc72f5dfd0 clarify -N option 2020-03-05 11:04:55 +01:00
6d620f5e0c fix travis 2020-03-05 11:03:36 +01:00
9d686ba523 Add LTO collision free llvm_mode (#223)
* first new implementation, only works with AFL_DONT_OPTIMIZE

* bug hunting

* interim commit

* finalized LTO non-collision solution

* update documentation

* merge resulted in some problems, fixing these

* added lto env to env check

* fixed llvm weirdness to messes up our instrumentation due CFG rewrite optimizations

* all llvm instrumentation issues have been resolved! :-)

* llvm 9 is required (so far)

* update lto readme
2020-03-05 10:52:26 +01:00
9e5c4973eb Fix variable name 2020-03-04 14:58:29 -05:00
70a67ca67d fix null ptr deref before trim_case_custom call 2020-03-04 19:28:29 +01:00
e43473faef Merge pull request #221 from h1994st/master
Uniform Python and custom mutator API
2020-03-04 18:38:03 +01:00
38e7dd2b9e Update examples of the custom mutator
- Merge `examples/python_mutators` into `examples/custom_mutators`
- Remove `examples/python_mutators`
- Update existing examples to demonstrate new APIs
2020-03-04 01:09:37 -05:00
42ce48db39 Fix typo 2020-03-03 23:18:47 -05:00
445d4b7e59 Update the documents of the custom mutator
- Merge python_mutators.md into custom_mutator.md
- Remove python_mutators.md
2020-03-03 23:17:24 -05:00
05a3418f86 added __afl_final_loc to all compile RTs 2020-03-04 01:51:41 +01:00
df46521658 Finish refactoring APIs for the custom mutator and Python module
- Remove AFL_PYTHON_ONLY (env) and python_only (variable)
- Unify fuzz API of the custom mutator and Python module
- Merge the custom mutator into the old python_stage, which is now renamed to custom_mutator_stage
2020-03-03 19:48:13 -05:00
d559d5a374 fix prev commit 2020-03-03 11:15:07 +01:00
469b8ee022 Merge branch 'master' of github.com:vanhauser-thc/AFLplusplus 2020-03-03 11:07:49 +01:00
385f7da77f allow custom cflags on llvm makefile 2020-03-03 11:07:41 +01:00
90506479e7 Refactoring fuzz_py API 2020-03-02 21:30:10 -05:00
b2a2b0fc21 Add initialization funcation wrapper for Python mutator 2020-03-02 19:30:05 -05:00
7862416844 Uniform API for both Python and custom mutator 2020-03-02 19:29:41 -05:00
031946136b Merge branch 'master' of https://github.com/vanhauser-thc/AFLplusplus 2020-03-02 15:27:31 -05:00
7b59e05600 Add new APIs for the custom mutator 2020-03-02 15:27:29 -05:00
f6050ab804 Silenced output of if python not found 2020-03-02 16:12:12 +01:00
43e97a5aa2 Autoresume added to help 2020-03-02 16:10:08 +01:00
f0cf9c2cdf make afl-showmap quiet when called from afl-cmin* 2020-03-01 22:30:38 +01:00
3e0a3ec45f migrated autoresume to use get_afl_env 2020-03-01 14:09:21 +01:00
6865cd8d69 Added AFL_AUTORESUME option 2020-03-01 13:47:33 +01:00
59b80cb01e fix #218 for GCC plugin 2020-03-01 11:51:15 +01:00
d946be29b9 fix #218 2020-03-01 11:16:43 +01:00
95322c11d9 print OKF if an environment variable is successfully loaded - feebdack to this please ... 2020-02-29 20:49:16 +01:00
76ca6adbc5 afl-clang-fast: only show the official env vars 2020-02-29 15:12:27 +01:00
45aa579f68 Added missing dependency to the docu (#216)
* Added missing dependency to the documentation. Tested on Debian 10

* Added documentation for Debian users

Co-authored-by: adamgrimm99 <55899195+adamgrimm99@users.noreply.github.com>
2020-02-29 14:42:19 +01:00
9ddd7e0e3f wget is no longer necessary for unicornafl which is cloned now. (#217) 2020-02-29 14:39:29 +01:00
6730b6a15a code-format, env.md fixes and adding -hh for env usage display into afl-fuzz and Makefile 2020-02-29 14:23:44 +01:00
6e08be1d0b add env info to afl-fuzz (please review!), small clarifications in docs/env_variables.md 2020-02-28 22:02:55 +01:00
0b21441590 add env info to afl-gcc-fast 2020-02-28 19:50:07 +01:00
449a14d1d0 more examples for README and custom_mutator README 2020-02-28 14:07:38 +01:00
57495a794d updated contribution info 2020-02-28 10:23:23 +01:00
7d0ae2939d update todo 2020-02-28 07:07:27 +01:00
7fa289316a fix for qemu_mode where capstone 4.0+ is installed 2020-02-28 06:50:15 +01:00
0e8388d3ea add env info to afl-clang-fast, small Android change 2020-02-28 05:00:22 +01:00
caa8fea8e2 add env info to afl-showmap, in qemu_mode add forgotten MacOSX env var to afl-analyze, afl-fuzz, afl-tmin 2020-02-28 03:31:50 +01:00
212e5d1a72 v2.62d 2020-02-28 01:16:36 +01:00
713952b9c7 v2.62c 2020-02-28 01:13:28 +01:00
20b8fc075b v2.62c 2020-02-28 01:12:44 +01:00
fc77f0bb96 i am too tired :-( 2020-02-28 01:02:21 +01:00
2eb7d0d88c update ideas 2020-02-28 00:55:44 +01:00
41493b1e3f cmplog_shm shmat was missing result check 2020-02-28 00:41:56 +01:00
f526bb2ecb better alloc-inl.h 2020-02-28 00:35:59 +01:00
4e37e12c06 code-format 2020-02-28 00:19:36 +01:00
d83ab141f6 cpyright 2020-02-27 23:22:29 +01:00
11236dd545 restore alloc-inl from AFL 2020-02-27 21:11:45 +01:00
bf8a154bec perf-fuzz idea 2020-02-27 20:58:30 +01:00
2b9ecd6eec Merge branch 'master' of github.com:vanhauser-thc/AFLplusplus 2020-02-27 16:04:20 +01:00
3712a70115 bye bye SanCov for CmpLog 2020-02-27 16:04:07 +01:00
e4f01a6825 Merge pull request #213 from Kusoku/master
Fix hanging fork and child with -V -E
2020-02-27 10:52:57 +01:00
3549cbb3a2 Fix hanging fork and child with -V -E
If we let multiple fuzzers end with -V or -E option, it will cause it to think we are still occupying the cores, even if they are free, once we try to run another job it would return an error that no free nodes are available.

This change fixes that problem.
2020-02-27 00:09:26 +01:00
7c17697cae catch if shmat fails 2020-02-26 22:35:09 +01:00
0e1d306b2e beautifying man pages 2020-02-25 21:58:17 +01:00
70c208ead7 Merge branch 'master' of https://github.com/vanhauser-thc/AFLplusplus 2020-02-25 21:42:30 +01:00
2d25662b81 man page tuning 2020-02-25 21:41:31 +01:00
e12edca29a Merge branch 'master' of github.com:vanhauser-thc/AFLplusplus 2020-02-25 21:24:43 +01:00
7e0663e4e0 fix #212 2020-02-25 21:24:31 +01:00
4bd736e1a7 more env info for afl-plot and afl-analyze 2020-02-25 20:54:08 +01:00
d39830a4dc portability: replace GNU extension of date (-I) with posix "+%y-%m-%d" 2020-02-25 20:31:08 +01:00
d7c9f947ed disable arm64 travis because they are buggy 2020-02-25 17:49:39 +01:00
84426631b4 update docker info 2020-02-25 16:30:22 +01:00
2c9c2e139e afl-gcc change -> test.sh 2020-02-25 14:01:55 +01:00
a540bae7a9 left over README reference fix 2020-02-25 08:43:49 +01:00
891b568678 fix references to README docs 2020-02-25 08:34:44 +01:00
901360b902 sync afl-as setup with afl-llvm-rt (add __afl_area_ptr[0] = 1) 2020-02-24 23:19:56 +01:00
c8295e1485 add env info to afl-tmin 2020-02-24 22:23:51 +01:00
9cc8ebd351 2.61d init 2020-02-24 17:26:02 +01:00
317 changed files with 107203 additions and 43760 deletions

View File

@ -10,7 +10,7 @@ AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: false
@ -52,7 +52,7 @@ ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
@ -72,7 +72,7 @@ IncludeCategories:
Priority: 3
IncludeIsMainRegex: '([-_](test|unittest))?$'
IndentCaseLabels: true
IndentPPDirectives: None
IndentPPDirectives: BeforeHash
IndentWidth: 2
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave

View File

@ -29,14 +29,14 @@ CLANG_FORMAT_BIN = os.getenv("CLANG_FORMAT_BIN")
if CLANG_FORMAT_BIN is None:
o = 0
try:
p = subprocess.Popen(["clang-format-8", "--version"], stdout=subprocess.PIPE)
p = subprocess.Popen(["clang-format-10", "--version"], stdout=subprocess.PIPE)
o, _ = p.communicate()
o = str(o, "utf-8")
o = o[len("clang-format version "):].strip()
o = o[:o.find(".")]
o = int(o)
except:
print ("clang-format-8 is needed. Aborted.")
print ("clang-format-10 is needed. Aborted.")
exit(1)
#if o < 7:
# if subprocess.call(['which', 'clang-format-7'], stdout=subprocess.PIPE) == 0:
@ -51,7 +51,7 @@ if CLANG_FORMAT_BIN is None:
# print ("clang-format 7 or above is needed. Aborted.")
# exit(1)
else:
CLANG_FORMAT_BIN = 'clang-format-8'
CLANG_FORMAT_BIN = 'clang-format-10'
COLUMN_LIMIT = 80
for line in fmt.split("\n"):
@ -70,8 +70,8 @@ def custom_format(filename):
out = ""
for line in src.split("\n"):
if line.startswith("#"):
if line.startswith("#define"):
if line.lstrip().startswith("#"):
if line[line.find("#")+1:].lstrip().startswith("define"):
in_define = True
if "/*" in line and not line.strip().startswith("/*") and line.endswith("*/") and len(line) < (COLUMN_LIMIT-2):

19
.gitignore vendored
View File

@ -2,25 +2,34 @@
.test2
*.o
*.so
*.pyc
afl-analyze
afl-as
afl-clang
afl-clang++
afl-clang-fast
afl-clang-fast++
afl-clang-lto
afl-clang-lto++
afl-fuzz
afl-g++
afl-gcc
afl-gcc-fast
afl-g++-fast
afl-gotcpu
afl-ld
afl-ld-lto
afl-qemu-trace
afl-showmap
afl-tmin
afl-analyze.8
afl-as.8
afl-clang-fast++.8
afl-clang-fast.8
afl-clang-lto.8
afl-clang-lto++.8
afl-cmin.8
afl-cmin.bash.8
afl-fuzz.8
afl-gcc.8
afl-gcc-fast.8
@ -33,8 +42,16 @@ afl-tmin.8
afl-whatsup.8
qemu_mode/libcompcov/compcovtest
as
ld
qemu_mode/qemu-*
unicorn_mode/unicornafl/
unicorn_mode/samples/*/\.test-*
unicorn_mode/samples/*/output/
unicorn_mode/unicornafl
core\.*
test/unittests/unit_maybe_alloc
test/unittests/unit_preallocable
test/unittests/unit_list
test/unittests/unit_rand
test/unittests/unit_hash
examples/afl_network_proxy/afl-network-server
examples/afl_network_proxy/afl-network-client

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "unicorn_mode/unicornafl"]
path = unicorn_mode/unicornafl
url = https://github.com/AFLplusplus/unicornafl.git

View File

@ -5,9 +5,13 @@ sudo: required
branches:
only:
- master
- dev
matrix:
include:
# - os: linux # focal errors every run with a timeout while installing packages
# dist: focal
# env: NAME="focal-amd64" MODERN="yes" GCC="9"
- os: linux
dist: bionic
env: NAME="bionic-amd64" MODERN="yes" GCC="7"
@ -17,10 +21,10 @@ matrix:
- os: linux
dist: trusty
env: NAME="trusty-amd64" MODERN="no" GCC="4.8"
- os: linux
dist: xenial
arch: arm64
env: NAME="xenial-arm64" MODERN="no" GCC="5" EXTRA="libtool-bin clang-6.0" AFL_NO_X86="1" CPU_TARGET="aarch64"
# - os: linux # until travis can fix this!
# dist: xenial
# arch: arm64
# env: NAME="xenial-arm64" MODERN="no" GCC="5" EXTRA="libtool-bin clang-6.0" AFL_NO_X86="1" CPU_TARGET="aarch64"
# - os: osx
# osx_image: xcode11.2
# env: NAME="osx" HOMEBREW_NO_ANALYTICS="1" LINK="http://releases.llvm.org/9.0.0/" NAME="clang+llvm-9.0.0-x86_64-darwin-apple"
@ -28,9 +32,10 @@ matrix:
jobs:
allow_failures:
- os: osx
- arch: arm64
env:
- AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1 AFL_NO_UI=1 AFL_STOP_MANUALLY=1
- AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1 AFL_NO_UI=1
# - AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1 AFL_NO_UI=1 AFL_EXIT_WHEN_DONE=1
# TODO: test AFL_BENCH_UNTIL_CRASH once we have a target that crashes
# - AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1 AFL_NO_UI=1 AFL_BENCH_JUST_ONE=1
@ -39,8 +44,8 @@ before_install:
# export LLVM_DIR=${TRAVIS_BUILD_DIR}/${LLVM_PACKAGE}
- echo Testing on $NAME
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then wget "$LINK""$NAME".tar.xz ; export LLVM_CONFIG=`pwd`/"$NAME" ; tar xJf "$NAME".tar.xz ; fi
- if [ "$MODERN" = "yes" ]; then sudo apt update ; sudo apt upgrade ; sudo apt install -y libtool libtool-bin automake bison libglib2.0 build-essential clang gcc-"$GCC" gcc-"$GCC"-plugin-dev libc++-"$GCC"-dev findutils ; fi
- if [ "$MODERN" = "no" ]; then sudo apt update ; sudo apt install -y libtool $EXTRA libpixman-1-dev automake bison libglib2.0 build-essential gcc-"$GCC" gcc-"$GCC"-plugin-dev libc++-dev findutils ; fi
- if [ "$MODERN" = "yes" ]; then sudo apt update ; sudo apt upgrade ; sudo apt install -y git libtool libtool-bin automake bison libglib2.0-0 build-essential clang gcc-"$GCC" gcc-"$GCC"-plugin-dev libc++-"$GCC"-dev findutils libcmocka-dev python3-setuptools ; fi
- if [ "$MODERN" = "no" ]; then sudo apt update ; sudo apt install -y git libtool $EXTRA libpixman-1-dev automake bison libglib2.0 build-essential gcc-"$GCC" gcc-"$GCC"-plugin-dev libc++-dev findutils libcmocka-dev python3-setuptools ; fi
script:
- gcc -v
@ -50,4 +55,4 @@ script:
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$TRAVIS_CPU_ARCH" = "amd64" ]; then make distrib ASAN_BUILD=1 ; fi
- if [ "$TRAVIS_CPU_ARCH" = "arm64" ] ; then echo DEBUG ; find / -name llvm-config.h 2>/dev/null; apt-cache search clang | grep clang- ; apt-cache search llvm | grep llvm- ; dpkg -l | egrep 'clang|llvm'; echo DEBUG ; export LLVM_CONFIG=llvm-config-6.0 ; make ASAN_BUILD=1 ; cd qemu_mode && sh ./build_qemu_support.sh ; cd .. ; fi
- make tests
- travis_terminate 0
# - travis_terminate 0

View File

@ -3,17 +3,20 @@
Each modified source file, before merging, must be formatted.
```
make code-formatter
make code-format
```
This should be fine if you modified one of the files already present in the
project, otherwise run:
project, or added a file in a directory we already format, otherwise run:
```
./.custom-format.py -i file-that-you-have-created.c
```
Regarding the coding style, please follow the AFL style.
No camel case at all and use the AFL's macros when possible (e.g. WARNF, FATAL, ...).
No camel case at all and use the AFL's macros wherever possible
(e.g. WARNF, FATAL, MAP_SIZE, ...).
Remember that AFLplusplus has to build and run on many platforms, so generalize your Makefiles (or your patches to our pre-existing Makefiles) to be as much general as possible.
Remember that AFLplusplus has to build and run on many platforms, so
generalize your Makefiles (or your patches to our pre-existing Makefiles)
to be as much generic as possible.

View File

@ -1,37 +1,62 @@
FROM ubuntu:eoan
MAINTAINER David Carlier <devnexen@gmail.com>
#
# This Dockerfile for AFLplusplus uses Ubuntu 20.04 focal and
# installs LLVM 11 from llvm.org for afl-clang-lto support :-)
# It also installs gcc/g++ 10 from the Ubuntu development platform
# has focal has gcc-10 but not g++-10 ...
#
FROM ubuntu:20.04
MAINTAINER afl++ team <afl@aflplus.plus>
LABEL "about"="AFLplusplus docker image"
RUN apt-get update && apt-get -y install \
--no-install-suggests --no-install-recommends \
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y && \
apt-get -y install --no-install-suggests --no-install-recommends \
automake \
bison \
bison flex \
build-essential \
clang \
clang-9 \
flex \
git \
python3.7 \
python3.7-dev \
gcc-9 \
gcc-9-plugin-dev \
gcc-9-multilib \
libc++-9-dev \
libtool \
libtool-bin \
python3 python3-dev python3-setuptools python-is-python3 \
libtool libtool-bin \
libglib2.0-dev \
llvm-9-dev \
python-setuptools \
python2.7-dev \
wget \
ca-certificates \
libpixman-1-dev \
&& rm -rf /var/lib/apt/lists/*
wget vim jupp nano \
apt-utils apt-transport-https ca-certificates gnupg dialog \
libpixman-1-dev
ARG CC=gcc-9
ARG CXX=g++-9
ARG LLVM_CONFIG=llvm-config-9
RUN echo deb http://apt.llvm.org/focal/ llvm-toolchain-focal main >> /etc/apt/sources.list && \
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
RUN echo deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu focal main >> /etc/apt/sources.list && \
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 1E9377A2BA9EF27F
RUN apt-get update && apt-get upgrade -y
RUN git clone https://github.com/vanhauser-thc/AFLplusplus
RUN apt-get install -y gcc-10 g++-10 gcc-10-plugin-dev gcc-10-multilib \
libc++-10-dev gdb lcov
RUN cd AFLplusplus && make clean && make distrib && \
make install && cd .. && rm -rf AFLplusplus
RUN apt-get install -y clang-11 clang-tools-11 libc++1-11 libc++-11-dev \
libc++abi1-11 libc++abi-11-dev libclang1-11 libclang-11-dev \
libclang-common-11-dev libclang-cpp11 libclang-cpp11-dev liblld-11 \
liblld-11-dev liblldb-11 liblldb-11-dev libllvm11 libomp-11-dev \
libomp5-11 lld-11 lldb-11 llvm-11 llvm-11-dev llvm-11-runtime llvm-11-tools
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 0
RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 0
RUN rm -rf /var/cache/apt/archives/*
ARG CC=gcc-10
ARG CXX=g++-10
ARG LLVM_CONFIG=llvm-config-11
RUN git clone https://github.com/AFLplusplus/AFLplusplus
RUN cd AFLplusplus && export REAL_CXX=g++-10 && make distrib && \
make install && make clean
RUN git clone https://github.com/vanhauser-thc/afl-cov afl-cov
RUN cd afl-cov && make install
RUN echo 'alias joe="jupp --wordwrap"' >> ~/.bashrc
ENV AFL_SKIP_CPUFREQ=1

601
GNUmakefile Normal file
View File

@ -0,0 +1,601 @@
#
# american fuzzy lop++ - makefile
# -----------------------------
#
# Originally written by Michal Zalewski
#
# Copyright 2013, 2014, 2015, 2016, 2017 Google Inc. All rights reserved.
#
# 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
#
# For Heiko:
#TEST_MMAP=1
# the hash character is treated differently in different make versions
# so use a variable for '#'
HASH=\#
PREFIX ?= /usr/local
BIN_PATH = $(PREFIX)/bin
HELPER_PATH = $(PREFIX)/lib/afl
DOC_PATH = $(PREFIX)/share/doc/afl
MISC_PATH = $(PREFIX)/share/afl
MAN_PATH = $(PREFIX)/man/man8
PROGNAME = afl
VERSION = $(shell grep '^$(HASH)define VERSION ' ../config.h | cut -d '"' -f2)
# PROGS intentionally omit afl-as, which gets installed elsewhere.
PROGS = afl-gcc afl-fuzz afl-showmap afl-tmin afl-gotcpu afl-analyze
SH_PROGS = afl-plot afl-cmin afl-cmin.bash afl-whatsup afl-system-config
MANPAGES=$(foreach p, $(PROGS) $(SH_PROGS), $(p).8) afl-as.8
ASAN_OPTIONS=detect_leaks=0
ifeq "$(findstring android, $(shell $(CC) --version 2>/dev/null))" ""
ifeq "$(shell echo 'int main() {return 0; }' | $(CC) $(CFLAGS) -Werror -x c - -flto=full -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
CFLAGS_FLTO ?= -flto=full
else
ifeq "$(shell echo 'int main() {return 0; }' | $(CC) $(CFLAGS) -Werror -x c - -flto=thin -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
CFLAGS_FLTO ?= -flto=thin
else
ifeq "$(shell echo 'int main() {return 0; }' | $(CC) $(CFLAGS) -Werror -x c - -flto -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
CFLAGS_FLTO ?= -flto
endif
endif
endif
endif
ifeq "$(shell echo 'int main() {return 0; }' | $(CC) -fno-move-loop-invariants -fdisable-tree-cunrolli -x c - -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
SPECIAL_PERFORMANCE += -fno-move-loop-invariants -fdisable-tree-cunrolli
endif
ifneq "$(shell uname)" "Darwin"
ifeq "$(shell echo 'int main() {return 0; }' | $(CC) $(CFLAGS) -Werror -x c - -march=native -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
#CFLAGS_OPT += -march=native
SPECIAL_PERFORMANCE += -march=native
endif
# OS X does not like _FORTIFY_SOURCE=2
CFLAGS_OPT += -D_FORTIFY_SOURCE=2
endif
ifeq "$(shell uname)" "SunOS"
CFLAGS_OPT += -Wno-format-truncation
LDFLAGS=-lkstat
endif
ifdef STATIC
$(info Compiling static version of binaries, disabling python though)
# Disable python for static compilation to simplify things
PYTHON_OK=0
PYFLAGS=
PYTHON_INCLUDE=/
CFLAGS_OPT += -static
LDFLAGS += -lm -lpthread -lz -lutil
endif
ifdef PROFILING
$(info Compiling with profiling information, for analysis: gprof ./afl-fuzz gmon.out > prof.txt)
CFLAGS_OPT += -pg -DPROFILING=1
LDFLAGS += -pg
endif
ifneq "$(shell uname -m)" "x86_64"
ifneq "$(patsubst i%86,i386,$(shell uname -m))" "i386"
ifneq "$(shell uname -m)" "amd64"
ifneq "$(shell uname -m)" "i86pc"
AFL_NO_X86=1
endif
endif
endif
endif
CFLAGS ?= -O3 -funroll-loops $(CFLAGS_OPT)
override CFLAGS += -Wall -g -Wno-pointer-sign -Wmissing-declarations\
-I include/ -DAFL_PATH=\"$(HELPER_PATH)\" \
-DBIN_PATH=\"$(BIN_PATH)\" -DDOC_PATH=\"$(DOC_PATH)\"
ifeq "$(shell uname -s)" "FreeBSD"
override CFLAGS += -I /usr/local/include/
LDFLAGS += -L /usr/local/lib/
endif
ifeq "$(shell uname -s)" "DragonFly"
override CFLAGS += -I /usr/local/include/
LDFLAGS += -L /usr/local/lib/
endif
ifeq "$(shell uname -s)" "OpenBSD"
override CFLAGS += -I /usr/local/include/ -mno-retpoline
LDFLAGS += -Wl,-z,notext -L /usr/local/lib/
endif
ifeq "$(shell uname -s)" "NetBSD"
override CFLAGS += -I /usr/pkg/include/
LDFLAGS += -L /usr/pkg/lib/
endif
ifeq "$(shell uname -s)" "Haiku"
SHMAT_OK=0
override CFLAGS += -DUSEMMAP=1 -Wno-error=format -fPIC
LDFLAGS += -Wno-deprecated-declarations -lgnu
SPECIAL_PERFORMANCE += -DUSEMMAP=1
endif
AFL_FUZZ_FILES = $(wildcard src/afl-fuzz*.c)
ifneq "$(shell command -v python3m 2>/dev/null)" ""
ifneq "$(shell command -v python3m-config 2>/dev/null)" ""
PYTHON_INCLUDE ?= $(shell python3m-config --includes)
PYTHON_VERSION ?= $(strip $(shell python3m --version 2>&1))
# Starting with python3.8, we need to pass the `embed` flag. Earlier versions didn't know this flag.
ifeq "$(shell python3m-config --embed --libs 2>/dev/null | grep -q lpython && echo 1 )" "1"
PYTHON_LIB ?= $(shell python3m-config --libs --embed --ldflags)
else
PYTHON_LIB ?= $(shell python3m-config --ldflags)
endif
endif
endif
ifeq "$(PYTHON_INCLUDE)" ""
ifneq "$(shell command -v python3 2>/dev/null)" ""
ifneq "$(shell command -v python3-config 2>/dev/null)" ""
PYTHON_INCLUDE ?= $(shell python3-config --includes)
PYTHON_VERSION ?= $(strip $(shell python3 --version 2>&1))
# Starting with python3.8, we need to pass the `embed` flag. Earier versions didn't know this flag.
ifeq "$(shell python3-config --embed --libs 2>/dev/null | grep -q lpython && echo 1 )" "1"
PYTHON_LIB ?= $(shell python3-config --libs --embed --ldflags)
else
PYTHON_LIB ?= $(shell python3-config --ldflags)
endif
endif
endif
endif
ifeq "$(PYTHON_INCLUDE)" ""
ifneq "$(shell command -v python 2>/dev/null)" ""
ifneq "$(shell command -v python-config 2>/dev/null)" ""
PYTHON_INCLUDE ?= $(shell python-config --includes)
PYTHON_LIB ?= $(shell python-config --ldflags)
PYTHON_VERSION ?= $(strip $(shell python --version 2>&1))
endif
endif
endif
# Old Ubuntu and others dont have python/python3-config so we hardcode 3.7
ifeq "$(PYTHON_INCLUDE)" ""
ifneq "$(shell command -v python3.7 2>/dev/null)" ""
ifneq "$(shell command -v python3.7-config 2>/dev/null)" ""
PYTHON_INCLUDE ?= $(shell python3.7-config --includes)
PYTHON_LIB ?= $(shell python3.7-config --ldflags)
PYTHON_VERSION ?= $(strip $(shell python3.7 --version 2>&1))
endif
endif
endif
# Old Ubuntu and others dont have python/python2-config so we hardcode 2.7
ifeq "$(PYTHON_INCLUDE)" ""
ifneq "$(shell command -v python2.7 2>/dev/null)" ""
ifneq "$(shell command -v python2.7-config 2>/dev/null)" ""
PYTHON_INCLUDE ?= $(shell python2.7-config --includes)
PYTHON_LIB ?= $(shell python2.7-config --ldflags)
PYTHON_VERSION ?= $(strip $(shell python2.7 --version 2>&1))
endif
endif
endif
ifdef SOURCE_DATE_EPOCH
BUILD_DATE ?= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "+%Y-%m-%d" 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "+%Y-%m-%d" 2>/dev/null || date -u "+%Y-%m-%d")
else
BUILD_DATE ?= $(shell date "+%Y-%m-%d")
endif
ifneq "$(filter Linux GNU%,$(shell uname))" ""
LDFLAGS += -ldl
endif
ifneq "$(findstring FreeBSD, $(shell uname))" ""
override CFLAGS += -pthread
LDFLAGS += -lpthread
endif
ifneq "$(findstring NetBSD, $(shell uname))" ""
override CFLAGS += -pthread
LDFLAGS += -lpthread
endif
ifeq "$(findstring clang, $(shell $(CC) --version 2>/dev/null))" ""
TEST_CC = afl-gcc
else
TEST_CC = afl-clang
endif
COMM_HDR = include/alloc-inl.h include/config.h include/debug.h include/types.h
ifeq "$(shell echo '$(HASH)include <Python.h>@int main() {return 0; }' | tr @ '\n' | $(CC) $(CFLAGS) -x c - -o .test $(PYTHON_INCLUDE) $(LDFLAGS) $(PYTHON_LIB) 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
PYTHON_OK=1
PYFLAGS=-DUSE_PYTHON $(PYTHON_INCLUDE) $(LDFLAGS) $(PYTHON_LIB) -DPYTHON_VERSION="\"$(PYTHON_VERSION)\""
else
PYTHON_OK=0
PYFLAGS=
endif
ifdef NO_PYTHON
PYTHON_OK=0
PYFLAGS=
endif
IN_REPO=0
ifeq "$(shell command -v git >/dev/null && git status >/dev/null 2>&1 && echo 1 || echo 0)" "1"
IN_REPO=1
endif
ifeq "$(shell command -v svn >/dev/null && svn proplist . 2>/dev/null && echo 1 || echo 0)" "1"
IN_REPO=1
endif
ifeq "$(shell echo 'int main() { return 0;}' | $(CC) $(CFLAGS) -fsanitize=address -x c - -o .test2 2>/dev/null && echo 1 || echo 0 ; rm -f .test2 )" "1"
ASAN_CFLAGS=-fsanitize=address -fstack-protector-all -fno-omit-frame-pointer
ASAN_LDFLAGS=-fsanitize=address -fstack-protector-all -fno-omit-frame-pointer
endif
ifdef ASAN_BUILD
$(info Compiling ASAN version of binaries)
override CFLAGS+=$(ASAN_CFLAGS)
LDFLAGS+=$(ASAN_LDFLAGS)
endif
ifeq "$(shell echo '$(HASH)include <sys/ipc.h>@$(HASH)include <sys/shm.h>@int main() { int _id = shmget(IPC_PRIVATE, 65536, IPC_CREAT | IPC_EXCL | 0600); shmctl(_id, IPC_RMID, 0); return 0;}' | tr @ '\n' | $(CC) $(CFLAGS) -x c - -o .test2 2>/dev/null && echo 1 || echo 0 ; rm -f .test2 )" "1"
SHMAT_OK=1
else
SHMAT_OK=0
override CFLAGS+=-DUSEMMAP=1
LDFLAGS += -Wno-deprecated-declarations -lrt
endif
ifdef TEST_MMAP
SHMAT_OK=0
override CFLAGS += -DUSEMMAP=1
LDFLAGS += -Wno-deprecated-declarations -lrt
endif
all: test_x86 test_shm test_python ready $(PROGS) afl-as test_build all_done
man: $(MANPAGES)
tests: source-only
@cd test ; ./test.sh
@rm -f test/errors
performance-tests: performance-test
test-performance: performance-test
performance-test: source-only
@cd test ; ./test-performance.sh
# hint: make targets are also listed in the top level README.md
help:
@echo "HELP --- the following make targets exist:"
@echo "=========================================="
@echo "all: just the main afl++ binaries"
@echo "binary-only: everything for binary-only fuzzing: qemu_mode, unicorn_mode, libdislocator, libtokencap"
@echo "source-only: everything for source code fuzzing: llvm_mode, gcc_plugin, libdislocator, libtokencap"
@echo "distrib: everything (for both binary-only and source code fuzzing)"
@echo "man: creates simple man pages from the help option of the programs"
@echo "install: installs everything you have compiled with the build option above"
@echo "clean: cleans everything compiled (not downloads when on a checkout)"
@echo "deepclean: cleans everything including downloads"
@echo "code-format: format the code, do this before you commit and send a PR please!"
@echo "tests: this runs the test framework. It is more catered for the developers, but if you run into problems this helps pinpointing the problem"
@echo "unit: perform unit tests (based on cmocka and GNU linker)"
@echo "document: creates afl-fuzz-document which will only do one run and save all manipulated inputs into out/queue/mutations"
@echo "help: shows these build options :-)"
@echo "=========================================="
@echo "Recommended: \"distrib\" or \"source-only\", then \"install\""
@echo
@echo Known build environment options:
@echo "=========================================="
@echo STATIC - compile AFL++ static
@echo ASAN_BUILD - compiles with memory sanitizer for debug purposes
@echo PROFILING - compile afl-fuzz with profiling information
@echo AFL_NO_X86 - if compiling on non-intel/amd platforms
@echo "=========================================="
@echo e.g.: make ASAN_BUILD=1
ifndef AFL_NO_X86
test_x86:
@echo "[*] Checking for the default compiler cc..."
@type $(CC) >/dev/null || ( echo; echo "Oops, looks like there is no compiler '"$(CC)"' in your path."; echo; echo "Don't panic! You can restart with '"$(_)" CC=<yourCcompiler>'."; echo; exit 1 )
@echo "[*] Testing the PATH environment variable..."
@test "$${PATH}" != "$${PATH#.:}" && { echo "Please remove current directory '.' from PATH to avoid recursion of 'as', thanks!"; echo; exit 1; } || :
@echo "[*] Checking for the ability to compile x86 code..."
@echo 'main() { __asm__("xorb %al, %al"); }' | $(CC) $(CFLAGS) -w -x c - -o .test1 || ( echo; echo "Oops, looks like your compiler can't generate x86 code."; echo; echo "Don't panic! You can use the LLVM or QEMU mode, but see docs/INSTALL first."; echo "(To ignore this error, set AFL_NO_X86=1 and try again.)"; echo; exit 1 )
@rm -f .test1
else
test_x86:
@echo "[!] Note: skipping x86 compilation checks (AFL_NO_X86 set)."
endif
ifeq "$(SHMAT_OK)" "1"
test_shm:
@echo "[+] shmat seems to be working."
@rm -f .test2
else
test_shm:
@echo "[-] shmat seems not to be working, switching to mmap implementation"
endif
ifeq "$(PYTHON_OK)" "1"
test_python:
@rm -f .test 2> /dev/null
@echo "[+] $(PYTHON_VERSION) support seems to be working."
else
test_python:
@echo "[-] You seem to need to install the package python3-dev, python2-dev or python-dev (and perhaps python[23]-apt), but it is optional so we continue"
endif
ready:
@echo "[+] Everything seems to be working, ready to compile."
afl-gcc: src/afl-gcc.c $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) src/$@.c -o $@ $(LDFLAGS)
set -e; for i in afl-g++ afl-clang afl-clang++; do ln -sf afl-gcc $$i; done
afl-as: src/afl-as.c include/afl-as.h $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) src/$@.c -o $@ $(LDFLAGS)
ln -sf afl-as as
src/afl-performance.o : $(COMM_HDR) src/afl-performance.c include/hash.h
$(CC) -Iinclude $(SPECIAL_PERFORMANCE) -O3 -fno-unroll-loops -c src/afl-performance.c -o src/afl-performance.o
src/afl-common.o : $(COMM_HDR) src/afl-common.c include/common.h
$(CC) $(CFLAGS) $(CFLAGS_FLTO) -c src/afl-common.c -o src/afl-common.o
src/afl-forkserver.o : $(COMM_HDR) src/afl-forkserver.c include/forkserver.h
$(CC) $(CFLAGS) $(CFLAGS_FLTO) -c src/afl-forkserver.c -o src/afl-forkserver.o
src/afl-sharedmem.o : $(COMM_HDR) src/afl-sharedmem.c include/sharedmem.h
$(CC) $(CFLAGS) $(CFLAGS_FLTO) -c src/afl-sharedmem.c -o src/afl-sharedmem.o
afl-fuzz: $(COMM_HDR) include/afl-fuzz.h $(AFL_FUZZ_FILES) src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o | test_x86
$(CC) $(CFLAGS) $(COMPILE_STATIC) $(CFLAGS_FLTO) $(AFL_FUZZ_FILES) src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o -o $@ $(PYFLAGS) $(LDFLAGS)
afl-showmap: src/afl-showmap.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) $(COMPILE_STATIC) $(CFLAGS_FLTO) src/$@.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o -o $@ $(LDFLAGS)
afl-tmin: src/afl-tmin.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) $(COMPILE_STATIC) $(CFLAGS_FLTO) src/$@.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o src/afl-performance.o -o $@ $(LDFLAGS)
afl-analyze: src/afl-analyze.c src/afl-common.o src/afl-sharedmem.o src/afl-performance.o $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) $(COMPILE_STATIC) $(CFLAGS_FLTO) src/$@.c src/afl-common.o src/afl-sharedmem.o src/afl-performance.o -o $@ $(LDFLAGS)
afl-gotcpu: src/afl-gotcpu.c src/afl-common.o $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) $(COMPILE_STATIC) $(CFLAGS_FLTO) src/$@.c src/afl-common.o -o $@ $(LDFLAGS)
# document all mutations and only do one run (use with only one input file!)
document: $(COMM_HDR) include/afl-fuzz.h $(AFL_FUZZ_FILES) src/afl-common.o src/afl-sharedmem.o src/afl-performance.o | test_x86
$(CC) -D_DEBUG=\"1\" -D_AFL_DOCUMENT_MUTATIONS $(CFLAGS) $(CFLAGS_FLTO) $(AFL_FUZZ_FILES) src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.c src/afl-performance.o -o afl-fuzz-document $(PYFLAGS) $(LDFLAGS)
test/unittests/unit_maybe_alloc.o : $(COMM_HDR) include/alloc-inl.h test/unittests/unit_maybe_alloc.c $(AFL_FUZZ_FILES)
@$(CC) $(CFLAGS) $(ASAN_CFLAGS) -c test/unittests/unit_maybe_alloc.c -o test/unittests/unit_maybe_alloc.o
unit_maybe_alloc: test/unittests/unit_maybe_alloc.o
@$(CC) $(CFLAGS) -Wl,--wrap=exit -Wl,--wrap=printf test/unittests/unit_maybe_alloc.o -o test/unittests/unit_maybe_alloc $(LDFLAGS) $(ASAN_LDFLAGS) -lcmocka
./test/unittests/unit_maybe_alloc
test/unittests/unit_hash.o : $(COMM_HDR) include/alloc-inl.h test/unittests/unit_hash.c $(AFL_FUZZ_FILES) src/afl-performance.o
@$(CC) $(CFLAGS) $(ASAN_CFLAGS) -c test/unittests/unit_hash.c -o test/unittests/unit_hash.o
unit_hash: test/unittests/unit_hash.o src/afl-performance.o
@$(CC) $(CFLAGS) -Wl,--wrap=exit -Wl,--wrap=printf $^ -o test/unittests/unit_hash $(LDFLAGS) $(ASAN_LDFLAGS) -lcmocka
./test/unittests/unit_hash
test/unittests/unit_rand.o : $(COMM_HDR) include/alloc-inl.h test/unittests/unit_rand.c $(AFL_FUZZ_FILES) src/afl-performance.o
@$(CC) $(CFLAGS) $(ASAN_CFLAGS) -c test/unittests/unit_rand.c -o test/unittests/unit_rand.o
unit_rand: test/unittests/unit_rand.o src/afl-common.o src/afl-performance.o
@$(CC) $(CFLAGS) $(ASAN_CFLAGS) -Wl,--wrap=exit -Wl,--wrap=printf $^ -o test/unittests/unit_rand $(LDFLAGS) $(ASAN_LDFLAGS) -lcmocka
./test/unittests/unit_rand
test/unittests/unit_list.o : $(COMM_HDR) include/list.h test/unittests/unit_list.c $(AFL_FUZZ_FILES)
@$(CC) $(CFLAGS) $(ASAN_CFLAGS) -c test/unittests/unit_list.c -o test/unittests/unit_list.o
unit_list: test/unittests/unit_list.o
@$(CC) $(CFLAGS) $(ASAN_CFLAGS) -Wl,--wrap=exit -Wl,--wrap=printf test/unittests/unit_list.o -o test/unittests/unit_list $(LDFLAGS) $(ASAN_LDFLAGS) -lcmocka
./test/unittests/unit_list
test/unittests/unit_preallocable.o : $(COMM_HDR) include/alloc-inl.h test/unittests/unit_preallocable.c $(AFL_FUZZ_FILES)
@$(CC) $(CFLAGS) $(ASAN_CFLAGS) -c test/unittests/unit_preallocable.c -o test/unittests/unit_preallocable.o
unit_preallocable: test/unittests/unit_preallocable.o
@$(CC) $(CFLAGS) $(ASAN_CFLAGS) -Wl,--wrap=exit -Wl,--wrap=printf test/unittests/unit_preallocable.o -o test/unittests/unit_preallocable $(LDFLAGS) $(ASAN_LDFLAGS) -lcmocka
./test/unittests/unit_preallocable
unit_clean:
@rm -f ./test/unittests/unit_preallocable ./test/unittests/unit_list ./test/unittests/unit_maybe_alloc test/unittests/*.o
ifneq "$(shell uname)" "Darwin"
unit: unit_maybe_alloc unit_preallocable unit_list unit_clean unit_rand unit_hash
else
unit:
@echo [-] unit tests are skipped on Darwin \(lacks GNU linker feature --wrap\)
endif
code-format:
./.custom-format.py -i src/*.c
./.custom-format.py -i include/*.h
./.custom-format.py -i libdislocator/*.c
./.custom-format.py -i libtokencap/*.c
./.custom-format.py -i llvm_mode/*.c
./.custom-format.py -i llvm_mode/*.h
./.custom-format.py -i llvm_mode/*.cc
./.custom-format.py -i gcc_plugin/*.c
#./.custom-format.py -i gcc_plugin/*.h
./.custom-format.py -i gcc_plugin/*.cc
./.custom-format.py -i custom_mutators/*/*.c
./.custom-format.py -i custom_mutators/*/*.h
./.custom-format.py -i examples/*/*.c
./.custom-format.py -i examples/*/*.h
./.custom-format.py -i test/*.c
./.custom-format.py -i qemu_mode/patches/*.h
./.custom-format.py -i qemu_mode/libcompcov/*.c
./.custom-format.py -i qemu_mode/libcompcov/*.cc
./.custom-format.py -i qemu_mode/libcompcov/*.h
./.custom-format.py -i qbdi_mode/*.c
./.custom-format.py -i qbdi_mode/*.cpp
./.custom-format.py -i *.h
./.custom-format.py -i *.c
ifndef AFL_NO_X86
test_build: afl-gcc afl-as afl-showmap
@echo "[*] Testing the CC wrapper and instrumentation output..."
@unset AFL_USE_ASAN AFL_USE_MSAN AFL_CC; AFL_DEBUG=1 AFL_INST_RATIO=100 AFL_PATH=. ./$(TEST_CC) $(CFLAGS) test-instr.c -o test-instr $(LDFLAGS) 2>&1 | grep 'afl-as' >/dev/null || (echo "Oops, afl-as did not get called from "$(TEST_CC)". This is normally achieved by "$(CC)" honoring the -B option."; exit 1 )
ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr0 ./test-instr < /dev/null
echo 1 | ASAN_OPTIONS=detect_leaks=0 ./afl-showmap -m none -q -o .test-instr1 ./test-instr
@rm -f test-instr
@cmp -s .test-instr0 .test-instr1; DR="$$?"; rm -f .test-instr0 .test-instr1; if [ "$$DR" = "0" ]; then echo; echo "Oops, the instrumentation does not seem to be behaving correctly!"; echo; echo "Please post to https://github.com/AFLplusplus/AFLplusplus/issues to troubleshoot the issue."; echo; exit 1; fi
@echo "[+] All right, the instrumentation seems to be working!"
else
test_build: afl-gcc afl-as afl-showmap
@echo "[!] Note: skipping build tests (you may need to use LLVM or QEMU mode)."
endif
all_done: test_build
@if [ ! "`type clang 2>/dev/null`" = "" ]; then echo "[+] LLVM users: see llvm_mode/README.md for a faster alternative to afl-gcc."; fi
@echo "[+] All done! Be sure to review the README.md - it's pretty short and useful."
@if [ "`uname`" = "Darwin" ]; then printf "\nWARNING: Fuzzing on MacOS X is slow because of the unusually high overhead of\nfork() on this OS. Consider using Linux or *BSD. You can also use VirtualBox\n(virtualbox.org) to put AFL inside a Linux or *BSD VM.\n\n"; fi
@! tty <&1 >/dev/null || printf "\033[0;30mNOTE: If you can read this, your terminal probably uses white background.\nThis will make the UI hard to read. See docs/status_screen.md for advice.\033[0m\n" 2>/dev/null
.NOTPARALLEL: clean all
clean:
rm -f $(PROGS) libradamsa.so afl-fuzz-document afl-as as afl-g++ afl-clang afl-clang++ *.o src/*.o *~ a.out core core.[1-9][0-9]* *.stackdump .test .test1 .test2 test-instr .test-instr0 .test-instr1 afl-qemu-trace afl-gcc-fast afl-gcc-pass.so afl-gcc-rt.o afl-g++-fast ld *.so *.8 test/unittests/*.o test/unittests/unit_maybe_alloc test/unittests/preallocable .afl-*
rm -rf out_dir qemu_mode/qemu-3.1.1 *.dSYM */*.dSYM
-$(MAKE) -C llvm_mode clean
-$(MAKE) -C gcc_plugin clean
$(MAKE) -C libdislocator clean
$(MAKE) -C libtokencap clean
$(MAKE) -C examples/afl_network_proxy clean
$(MAKE) -C examples/socket_fuzzing clean
$(MAKE) -C examples/argv_fuzzing clean
$(MAKE) -C qemu_mode/unsigaction clean
$(MAKE) -C qemu_mode/libcompcov clean
rm -rf qemu_mode/qemu-3.1.1
ifeq "$(IN_REPO)" "1"
test -d unicorn_mode/unicornafl && $(MAKE) -C unicorn_mode/unicornafl clean || true
else
rm -rf qemu_mode/qemu-3.1.1.tar.xz
rm -rf unicorn_mode/unicornafl
endif
deepclean: clean
rm -rf qemu_mode/qemu-3.1.1.tar.xz
rm -rf unicorn_mode/unicornafl
git reset --hard >/dev/null 2>&1 || true
distrib: all
-$(MAKE) -C llvm_mode
-$(MAKE) -C gcc_plugin
$(MAKE) -C libdislocator
$(MAKE) -C libtokencap
$(MAKE) -C examples/afl_network_proxy
$(MAKE) -C examples/socket_fuzzing
$(MAKE) -C examples/argv_fuzzing
-cd qemu_mode && sh ./build_qemu_support.sh
cd unicorn_mode && unset CFLAGS && sh ./build_unicorn_support.sh
binary-only: all
$(MAKE) -C libdislocator
$(MAKE) -C libtokencap
$(MAKE) -C examples/afl_network_proxy
$(MAKE) -C examples/socket_fuzzing
$(MAKE) -C examples/argv_fuzzing
-cd qemu_mode && sh ./build_qemu_support.sh
cd unicorn_mode && unset CFLAGS && sh ./build_unicorn_support.sh
source-only: all
-$(MAKE) -C llvm_mode
-$(MAKE) -C gcc_plugin
$(MAKE) -C libdislocator
$(MAKE) -C libtokencap
#$(MAKE) -C examples/afl_network_proxy
#$(MAKE) -C examples/socket_fuzzing
#$(MAKE) -C examples/argv_fuzzing
%.8: %
@echo .TH $* 8 $(BUILD_DATE) "afl++" > $@
@echo .SH NAME >> $@
@echo .B $* >> $@
@echo >> $@
@echo .SH SYNOPSIS >> $@
@./$* -h 2>&1 | head -n 3 | tail -n 1 | sed 's/^\.\///' >> $@
@echo >> $@
@echo .SH OPTIONS >> $@
@echo .nf >> $@
@./$* -hh 2>&1 | tail -n +4 >> $@
@echo >> $@
@echo .SH AUTHOR >> $@
@echo "afl++ was written by Michal \"lcamtuf\" Zalewski and is maintained by Marc \"van Hauser\" Heuse <mh@mh-sec.de>, Heiko \"hexcoder-\" Eissfeldt <heiko.eissfeldt@hexco.de>, Andrea Fioraldi <andreafioraldi@gmail.com> and Dominik Maier <domenukk@gmail.com>" >> $@
@echo The homepage of afl++ is: https://github.com/AFLplusplus/AFLplusplus >> $@
@echo >> $@
@echo .SH LICENSE >> $@
@echo Apache License Version 2.0, January 2004 >> $@
install: all $(MANPAGES)
install -d -m 755 $${DESTDIR}$(BIN_PATH) $${DESTDIR}$(HELPER_PATH) $${DESTDIR}$(DOC_PATH) $${DESTDIR}$(MISC_PATH)
rm -f $${DESTDIR}$(BIN_PATH)/afl-plot.sh
install -m 755 $(PROGS) $(SH_PROGS) $${DESTDIR}$(BIN_PATH)
rm -f $${DESTDIR}$(BIN_PATH)/afl-as
if [ -f afl-qemu-trace ]; then install -m 755 afl-qemu-trace $${DESTDIR}$(BIN_PATH); fi
if [ -f afl-gcc-fast ]; then set e; install -m 755 afl-gcc-fast $${DESTDIR}$(BIN_PATH); ln -sf afl-gcc-fast $${DESTDIR}$(BIN_PATH)/afl-g++-fast; install -m 755 afl-gcc-pass.so afl-gcc-rt.o $${DESTDIR}$(HELPER_PATH); fi
if [ -f afl-clang-fast ]; then $(MAKE) -C llvm_mode install; fi
if [ -f libdislocator.so ]; then set -e; install -m 755 libdislocator.so $${DESTDIR}$(HELPER_PATH); fi
if [ -f libtokencap.so ]; then set -e; install -m 755 libtokencap.so $${DESTDIR}$(HELPER_PATH); fi
if [ -f libcompcov.so ]; then set -e; install -m 755 libcompcov.so $${DESTDIR}$(HELPER_PATH); fi
if [ -f afl-fuzz-document ]; then set -e; install -m 755 afl-fuzz-document $${DESTDIR}$(BIN_PATH); fi
if [ -f socketfuzz32.so -o -f socketfuzz64.so ]; then $(MAKE) -C examples/socket_fuzzing install; fi
if [ -f argvfuzz32.so -o -f argvfuzz64.so ]; then $(MAKE) -C examples/argv_fuzzing install; fi
if [ -f examples/afl_network_proxy/afl-network-server ]; then $(MAKE) -C examples/afl_network_proxy install; fi
set -e; ln -sf afl-gcc $${DESTDIR}$(BIN_PATH)/afl-g++
set -e; if [ -f afl-clang-fast ] ; then ln -sf afl-clang-fast $${DESTDIR}$(BIN_PATH)/afl-clang ; ln -sf afl-clang-fast $${DESTDIR}$(BIN_PATH)/afl-clang++ ; else ln -sf afl-gcc $${DESTDIR}$(BIN_PATH)/afl-clang ; ln -sf afl-gcc $${DESTDIR}$(BIN_PATH)/afl-clang++; fi
mkdir -m 0755 -p ${DESTDIR}$(MAN_PATH)
install -m0644 *.8 ${DESTDIR}$(MAN_PATH)
install -m 755 afl-as $${DESTDIR}$(HELPER_PATH)
ln -sf afl-as $${DESTDIR}$(HELPER_PATH)/as
install -m 644 docs/*.md $${DESTDIR}$(DOC_PATH)
cp -r testcases/ $${DESTDIR}$(MISC_PATH)
cp -r dictionaries/ $${DESTDIR}$(MISC_PATH)

459
Makefile
View File

@ -1,447 +1,42 @@
#
# american fuzzy lop++ - makefile
# -----------------------------
#
# Originally written by Michal Zalewski
#
# Copyright 2013, 2014, 2015, 2016, 2017 Google Inc. All rights reserved.
#
# 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
#
all:
@echo trying to use GNU make...
@gmake all || echo please install GNUmake
# For Heiko:
#TEST_MMAP=1
# the hash character is treated differently in different make versions
# so use a variable for '#'
HASH=\#
source-only:
@gmake source-only
PREFIX ?= /usr/local
BIN_PATH = $(PREFIX)/bin
HELPER_PATH = $(PREFIX)/lib/afl
DOC_PATH = $(PREFIX)/share/doc/afl
MISC_PATH = $(PREFIX)/share/afl
MAN_PATH = $(PREFIX)/man/man8
binary-only:
@gmake binary-only
PROGNAME = afl
VERSION = $(shell grep '^$(HASH)define VERSION ' ../config.h | cut -d '"' -f2)
distrib:
@gmake distrib
# PROGS intentionally omit afl-as, which gets installed elsewhere.
man:
@gmake man
PROGS = afl-gcc afl-fuzz afl-showmap afl-tmin afl-gotcpu afl-analyze
SH_PROGS = afl-plot afl-cmin afl-cmin.bash afl-whatsup afl-system-config
MANPAGES=$(foreach p, $(PROGS) $(SH_PROGS), $(p).8) afl-as.8
install:
@gmake install
ifeq "$(shell echo 'int main() {return 0; }' | $(CC) -x c - -flto=full -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
CFLAGS_FLTO ?= -flto=full
else
ifeq "$(shell echo 'int main() {return 0; }' | $(CC) -x c - -flto=thin -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
CFLAGS_FLTO ?= -flto=thin
else
ifeq "$(shell echo 'int main() {return 0; }' | $(CC) -x c - -flto -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
CFLAGS_FLTO ?= -flto
endif
endif
endif
ifeq "$(shell echo 'int main() {return 0; }' | $(CC) -x c - -march=native -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
CFLAGS_OPT = -march=native
endif
ifneq "$(shell uname -m)" "x86_64"
ifneq "$(shell uname -m)" "i386"
ifneq "$(shell uname -m)" "amd64"
ifneq "$(shell uname -m)" "i86pc"
AFL_NO_X86=1
endif
endif
endif
endif
CFLAGS ?= -O3 -funroll-loops $(CFLAGS_OPT)
override CFLAGS += -Wall -g -Wno-pointer-sign -I include/ \
-DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \
-DDOC_PATH=\"$(DOC_PATH)\" -Wno-unused-function -fcommon
AFL_FUZZ_FILES = $(wildcard src/afl-fuzz*.c)
ifneq "$(shell which python3m)" ""
ifneq "$(shell which python3m-config)" ""
PYTHON_INCLUDE ?= $(shell python3m-config --includes)
PYTHON_VERSION ?= $(strip $(shell python3m --version 2>&1))
# Starting with python3.8, we need to pass the `embed` flag. Earier versions didn't know this flag.
ifeq "$(shell python3m-config --embed --libs 2>/dev/null | grep -q lpython && echo 1 )" "1"
PYTHON_LIB ?= $(shell python3m-config --libs --embed)
else
PYTHON_LIB ?= $(shell python3m-config --ldflags)
endif
endif
endif
ifneq "$(shell which python3)" ""
ifneq "$(shell which python3-config)" ""
PYTHON_INCLUDE ?= $(shell python3-config --includes)
PYTHON_VERSION ?= $(strip $(shell python3 --version 2>&1))
# Starting with python3.8, we need to pass the `embed` flag. Earier versions didn't know this flag.
ifeq "$(shell python3-config --embed --libs 2>/dev/null | grep -q lpython && echo 1 )" "1"
PYTHON_LIB ?= $(shell python3-config --libs --embed)
else
PYTHON_LIB ?= $(shell python3-config --ldflags)
endif
endif
endif
ifneq "$(shell which python)" ""
ifneq "$(shell which python-config)" ""
PYTHON_INCLUDE ?= $(shell python-config --includes)
PYTHON_LIB ?= $(shell python-config --ldflags)
PYTHON_VERSION ?= $(strip $(shell python --version 2>&1))
endif
endif
ifdef SOURCE_DATE_EPOCH
BUILD_DATE ?= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" -I 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" -I 2>/dev/null || date -u -I)
else
BUILD_DATE ?= $(shell date -I)
endif
ifneq "$(filter Linux GNU%,$(shell uname))" ""
LDFLAGS += -ldl
endif
ifneq "$(findstring FreeBSD, $(shell uname))" ""
CFLAGS += -pthread
LDFLAGS += -lpthread
endif
ifneq "$(findstring NetBSD, $(shell uname))" ""
CFLAGS += -pthread
LDFLAGS += -lpthread
endif
ifeq "$(findstring clang, $(shell $(CC) --version 2>/dev/null))" ""
TEST_CC = afl-gcc
else
TEST_CC = afl-clang
endif
COMM_HDR = include/alloc-inl.h include/config.h include/debug.h include/types.h
ifeq "$(shell echo '$(HASH)include <Python.h>@int main() {return 0; }' | tr @ '\n' | $(CC) -x c - -o .test $(PYTHON_INCLUDE) $(LDFLAGS) $(PYTHON_LIB) 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
PYTHON_OK=1
PYFLAGS=-DUSE_PYTHON $(PYTHON_INCLUDE) $(LDFLAGS) $(PYTHON_LIB) -DPYTHON_VERSION="\"$(PYTHON_VERSION)\""
else
PYTHON_OK=0
PYFLAGS=
endif
ifdef STATIC
$(info Compiling static version of binaries)
# Disable python for static compilation to simplify things
PYTHON_OK=0
PYFLAGS=
CFLAGS += -static
LDFLAGS += -lm -lrt -lpthread -lz -lutil
endif
ifeq "$(shell echo '$(HASH)include <sys/ipc.h>@$(HASH)include <sys/shm.h>@int main() { int _id = shmget(IPC_PRIVATE, 65536, IPC_CREAT | IPC_EXCL | 0600); shmctl(_id, IPC_RMID, 0); return 0;}' | tr @ '\n' | $(CC) -x c - -o .test2 2>/dev/null && echo 1 || echo 0 ; rm -f .test2 )" "1"
SHMAT_OK=1
else
SHMAT_OK=0
CFLAGS+=-DUSEMMAP=1
LDFLAGS+=-Wno-deprecated-declarations -lrt
endif
ifeq "$(TEST_MMAP)" "1"
SHMAT_OK=0
CFLAGS+=-DUSEMMAP=1
LDFLAGS+=-Wno-deprecated-declarations -lrt
endif
ifdef ASAN_BUILD
CFLAGS+=-fsanitize=address
LDFLAGS+=-fsanitize=address
endif
all: test_x86 test_shm test_python ready $(PROGS) afl-as test_build all_done
man: $(MANPAGES)
-$(MAKE) -C llvm_mode
-$(MAKE) -C gcc_plugin
tests: source-only
@cd test ; ./test.sh
@rm -f test/errors
performance-tests: performance-test
test-performance: performance-test
performance-test: source-only
@cd test ; ./test-performance.sh
help:
@echo "HELP --- the following make targets exist:"
@echo "=========================================="
@echo "all: just the main afl++ binaries"
@echo "binary-only: everything for binary-only fuzzing: qemu_mode, unicorn_mode, libdislocator, libtokencap, radamsa"
@echo "source-only: everything for source code fuzzing: llvm_mode, gcc_plugin, libdislocator, libtokencap, radamsa"
@echo "distrib: everything (for both binary-only and source code fuzzing)"
@echo "man: creates simple man pages from the help option of the programs"
@echo "install: installs everything you have compiled with the build option above"
@echo "clean: cleans everything. for qemu_mode it means it deletes all downloads as well"
@echo "code-format: format the code, do this before you commit and send a PR please!"
@echo "tests: this runs the test framework. It is more catered for the developers, but if you run into problems this helps pinpointing the problem"
@echo "document: creates afl-fuzz-document which will only do one run and save all manipulated inputs into out/queue/mutations"
@echo "help: shows these build options :-)"
@echo "=========================================="
@echo "Recommended: \"distrib\" or \"source-only\", then \"install\""
@echo
@echo Known build environment options:
@echo "=========================================="
@echo STATIC - compile AFL++ static
@echo ASAN_BUILD - compiles with memory sanitizer for debug purposes
@echo AFL_NO_X86 - if compiling on non-intel/amd platforms
@echo "=========================================="
@echo e.g.: make ASAN_BUILD=1
ifndef AFL_NO_X86
test_x86:
@echo "[*] Checking for the default compiler cc..."
@which $(CC) >/dev/null || ( echo; echo "Oops, looks like there is no compiler '"$(CC)"' in your path."; echo; echo "Don't panic! You can restart with '"$(_)" CC=<yourCcompiler>'."; echo; exit 1 )
@echo "[*] Checking for the ability to compile x86 code..."
@echo 'main() { __asm__("xorb %al, %al"); }' | $(CC) -w -x c - -o .test1 || ( echo; echo "Oops, looks like your compiler can't generate x86 code."; echo; echo "Don't panic! You can use the LLVM or QEMU mode, but see docs/INSTALL first."; echo "(To ignore this error, set AFL_NO_X86=1 and try again.)"; echo; exit 1 )
@rm -f .test1
else
test_x86:
@echo "[!] Note: skipping x86 compilation checks (AFL_NO_X86 set)."
endif
ifeq "$(SHMAT_OK)" "1"
test_shm:
@echo "[+] shmat seems to be working."
@rm -f .test2
else
test_shm:
@echo "[-] shmat seems not to be working, switching to mmap implementation"
endif
ifeq "$(PYTHON_OK)" "1"
test_python:
@rm -f .test 2> /dev/null
@echo "[+] $(PYTHON_VERSION) support seems to be working."
else
test_python:
@echo "[-] You seem to need to install the package python3-dev or python2-dev (and perhaps python[23]-apt), but it is optional so we continue"
endif
ready:
@echo "[+] Everything seems to be working, ready to compile."
afl-gcc: src/afl-gcc.c $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) src/$@.c -o $@ $(LDFLAGS)
set -e; for i in afl-g++ afl-clang afl-clang++; do ln -sf afl-gcc $$i; done
afl-as: src/afl-as.c include/afl-as.h $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) src/$@.c -o $@ $(LDFLAGS)
ln -sf afl-as as
src/afl-common.o : $(COMM_HDR) src/afl-common.c include/common.h
$(CC) $(CFLAGS) $(CFLAGS_FLTO) -c src/afl-common.c -o src/afl-common.o
src/afl-forkserver.o : $(COMM_HDR) src/afl-forkserver.c include/forkserver.h
$(CC) $(CFLAGS) $(CFLAGS_FLTO) -c src/afl-forkserver.c -o src/afl-forkserver.o
src/afl-sharedmem.o : $(COMM_HDR) src/afl-sharedmem.c include/sharedmem.h
$(CC) $(CFLAGS) $(CFLAGS_FLTO) -c src/afl-sharedmem.c -o src/afl-sharedmem.o
radamsa: src/third_party/libradamsa/libradamsa.so
cp src/third_party/libradamsa/libradamsa.so .
src/third_party/libradamsa/libradamsa.so: src/third_party/libradamsa/libradamsa.c src/third_party/libradamsa/radamsa.h
$(MAKE) -C src/third_party/libradamsa/ CFLAGS="$(CFLAGS)"
afl-fuzz: $(COMM_HDR) include/afl-fuzz.h $(AFL_FUZZ_FILES) src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o | test_x86
$(CC) $(CFLAGS) $(CFLAGS_FLTO) $(AFL_FUZZ_FILES) src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o -o $@ $(PYFLAGS) $(LDFLAGS)
afl-showmap: src/afl-showmap.c src/afl-common.o src/afl-sharedmem.o $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) $(CFLAGS_FLTO) src/$@.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o -o $@ $(LDFLAGS)
afl-tmin: src/afl-tmin.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) $(CFLAGS_FLTO) src/$@.c src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o -o $@ $(LDFLAGS)
afl-analyze: src/afl-analyze.c src/afl-common.o src/afl-sharedmem.o $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) $(CFLAGS_FLTO) src/$@.c src/afl-common.o src/afl-sharedmem.o -o $@ $(LDFLAGS)
afl-gotcpu: src/afl-gotcpu.c $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) src/$@.c -o $@ $(LDFLAGS)
# document all mutations and only do one run (use with only one input file!)
document: include/afl-fuzz.h $(AFL_FUZZ_FILES) src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o $(COMM_HDR) | test_x86
$(CC) $(CFLAGS) $(AFL_FUZZ_FILES) -D_AFL_DOCUMENT_MUTATIONS src/afl-common.o src/afl-sharedmem.o src/afl-forkserver.o -o afl-fuzz-document $(LDFLAGS) $(PYFLAGS)
document:
@gmake document
deepclean:
@gmake deepclean
code-format:
./.custom-format.py -i src/*.c
./.custom-format.py -i include/*.h
./.custom-format.py -i libdislocator/*.c
./.custom-format.py -i libtokencap/*.c
./.custom-format.py -i llvm_mode/*.c
./.custom-format.py -i llvm_mode/*.h
./.custom-format.py -i llvm_mode/*.cc
./.custom-format.py -i gcc_plugin/*.c
#./.custom-format.py -i gcc_plugin/*.h
./.custom-format.py -i gcc_plugin/*.cc
./.custom-format.py -i examples/*/*.c
./.custom-format.py -i examples/*/*.h
./.custom-format.py -i qemu_mode/patches/*.h
./.custom-format.py -i qemu_mode/libcompcov/*.c
./.custom-format.py -i qemu_mode/libcompcov/*.cc
./.custom-format.py -i qemu_mode/libcompcov/*.h
./.custom-format.py -i qbdi_mode/*.c
./.custom-format.py -i qbdi_mode/*.cpp
./.custom-format.py -i *.h
./.custom-format.py -i *.c
@gmake code-format
help:
@gmake help
ifndef AFL_NO_X86
tests:
@gmake tests
test_build: afl-gcc afl-as afl-showmap
@echo "[*] Testing the CC wrapper and instrumentation output..."
@unset AFL_USE_ASAN AFL_USE_MSAN AFL_CC; AFL_DEBUG=1 AFL_INST_RATIO=100 AFL_PATH=. ./$(TEST_CC) $(CFLAGS) test-instr.c -o test-instr $(LDFLAGS) 2>&1 | grep 'afl-as' >/dev/null || (echo "Oops, afl-as did not get called from "$(TEST_CC)". This is normally achieved by "$(CC)" honoring the -B option."; exit 1 )
./afl-showmap -m none -q -o .test-instr0 ./test-instr < /dev/null
echo 1 | ./afl-showmap -m none -q -o .test-instr1 ./test-instr
@rm -f test-instr
@cmp -s .test-instr0 .test-instr1; DR="$$?"; rm -f .test-instr0 .test-instr1; if [ "$$DR" = "0" ]; then echo; echo "Oops, the instrumentation does not seem to be behaving correctly!"; echo; echo "Please post to https://github.com/vanhauser-thc/AFLplusplus/issues to troubleshoot the issue."; echo; exit 1; fi
@echo "[+] All right, the instrumentation seems to be working!"
unit:
@gmake unit
else
test_build: afl-gcc afl-as afl-showmap
@echo "[!] Note: skipping build tests (you may need to use LLVM or QEMU mode)."
endif
all_done: test_build
@if [ ! "`which clang 2>/dev/null`" = "" ]; then echo "[+] LLVM users: see llvm_mode/README.llvm for a faster alternative to afl-gcc."; fi
@echo "[+] All done! Be sure to review the README.md - it's pretty short and useful."
@if [ "`uname`" = "Darwin" ]; then printf "\nWARNING: Fuzzing on MacOS X is slow because of the unusually high overhead of\nfork() on this OS. Consider using Linux or *BSD. You can also use VirtualBox\n(virtualbox.org) to put AFL inside a Linux or *BSD VM.\n\n"; fi
@! tty <&1 >/dev/null || printf "\033[0;30mNOTE: If you can read this, your terminal probably uses white background.\nThis will make the UI hard to read. See docs/status_screen.md for advice.\033[0m\n" 2>/dev/null
.NOTPARALLEL: clean
unit_clean:
@gmake unit_clean
clean:
rm -f $(PROGS) libradamsa.so afl-fuzz-document afl-as as afl-g++ afl-clang afl-clang++ *.o src/*.o *~ a.out core core.[1-9][0-9]* *.stackdump .test .test1 .test2 test-instr .test-instr0 .test-instr1 qemu_mode/qemu-3.1.1.tar.xz afl-qemu-trace afl-gcc-fast afl-gcc-pass.so afl-gcc-rt.o afl-g++-fast *.so *.8
rm -rf out_dir qemu_mode/qemu-3.1.1 *.dSYM */*.dSYM
-$(MAKE) -C llvm_mode clean
-$(MAKE) -C gcc_plugin clean
$(MAKE) -C libdislocator clean
$(MAKE) -C libtokencap clean
$(MAKE) -C examples/socket_fuzzing clean
$(MAKE) -C examples/argv_fuzzing clean
$(MAKE) -C qemu_mode/unsigaction clean
$(MAKE) -C qemu_mode/libcompcov clean
$(MAKE) -C src/third_party/libradamsa/ clean
-rm -rf unicorn_mode/unicornafl
distrib: all radamsa
-$(MAKE) -C llvm_mode
-$(MAKE) -C gcc_plugin
$(MAKE) -C libdislocator
$(MAKE) -C libtokencap
$(MAKE) -C examples/socket_fuzzing
$(MAKE) -C examples/argv_fuzzing
cd qemu_mode && sh ./build_qemu_support.sh
cd unicorn_mode && sh ./build_unicorn_support.sh
binary-only: all radamsa
$(MAKE) -C libdislocator
$(MAKE) -C libtokencap
$(MAKE) -C examples/socket_fuzzing
$(MAKE) -C examples/argv_fuzzing
cd qemu_mode && sh ./build_qemu_support.sh
cd unicorn_mode && sh ./build_unicorn_support.sh
source-only: all radamsa
-$(MAKE) -C llvm_mode
-$(MAKE) -C gcc_plugin
$(MAKE) -C libdislocator
$(MAKE) -C libtokencap
%.8: %
@echo .TH $* 8 $(BUILD_DATE) "afl++" > $@
@echo .SH NAME >> $@
@echo .B $* >> $@
@echo >> $@
@echo .SH SYNOPSIS >> $@
@./$* -h 2>&1 | head -n 3 | tail -n 1 | sed 's/^\.\///' >> $@
@echo >> $@
@echo .SH OPTIONS >> $@
@echo .nf >> $@
@./$* -h 2>&1 | tail -n +4 >> $@
@echo >> $@
@echo .SH AUTHOR >> $@
@echo "afl++ was written by Michal \"lcamtuf\" Zalewski and is maintained by Marc \"van Hauser\" Heuse <mh@mh-sec.de>, Heiko \"hexcoder-\" Eissfeldt <heiko.eissfeldt@hexco.de> and Andrea Fioraldi <andreafioraldi@gmail.com>" >> $@
@echo The homepage of afl++ is: https://github.com/vanhauser-thc/AFLplusplus >> $@
@echo >> $@
@echo .SH LICENSE >> $@
@echo Apache License Version 2.0, January 2004 >> $@
install: all $(MANPAGES)
install -d -m 755 $${DESTDIR}$(BIN_PATH) $${DESTDIR}$(HELPER_PATH) $${DESTDIR}$(DOC_PATH) $${DESTDIR}$(MISC_PATH)
rm -f $${DESTDIR}$(BIN_PATH)/afl-plot.sh
install -m 755 $(PROGS) $(SH_PROGS) $${DESTDIR}$(BIN_PATH)
rm -f $${DESTDIR}$(BIN_PATH)/afl-as
if [ -f afl-qemu-trace ]; then install -m 755 afl-qemu-trace $${DESTDIR}$(BIN_PATH); fi
if [ -f afl-gcc-fast ]; then set e; install -m 755 afl-gcc-fast $${DESTDIR}$(BIN_PATH); ln -sf afl-gcc-fast $${DESTDIR}$(BIN_PATH)/afl-g++-fast; install -m 755 afl-gcc-pass.so afl-gcc-rt.o $${DESTDIR}$(HELPER_PATH); fi
ifndef AFL_TRACE_PC
if [ -f afl-clang-fast -a -f libLLVMInsTrim.so -a -f afl-llvm-rt.o ]; then set -e; install -m 755 afl-clang-fast $${DESTDIR}$(BIN_PATH); ln -sf afl-clang-fast $${DESTDIR}$(BIN_PATH)/afl-clang-fast++; install -m 755 libLLVMInsTrim.so afl-llvm-pass.so afl-llvm-rt.o $${DESTDIR}$(HELPER_PATH); fi
else
if [ -f afl-clang-fast -a -f afl-llvm-rt.o ]; then set -e; install -m 755 afl-clang-fast $${DESTDIR}$(BIN_PATH); ln -sf afl-clang-fast $${DESTDIR}$(BIN_PATH)/afl-clang-fast++; install -m 755 afl-llvm-rt.o $${DESTDIR}$(HELPER_PATH); fi
endif
if [ -f afl-llvm-rt-32.o ]; then set -e; install -m 755 afl-llvm-rt-32.o $${DESTDIR}$(HELPER_PATH); fi
if [ -f afl-llvm-rt-64.o ]; then set -e; install -m 755 afl-llvm-rt-64.o $${DESTDIR}$(HELPER_PATH); fi
if [ -f compare-transform-pass.so ]; then set -e; install -m 755 compare-transform-pass.so $${DESTDIR}$(HELPER_PATH); fi
if [ -f split-compares-pass.so ]; then set -e; install -m 755 split-compares-pass.so $${DESTDIR}$(HELPER_PATH); fi
if [ -f split-switches-pass.so ]; then set -e; install -m 755 split-switches-pass.so $${DESTDIR}$(HELPER_PATH); fi
if [ -f libdislocator.so ]; then set -e; install -m 755 libdislocator.so $${DESTDIR}$(HELPER_PATH); fi
if [ -f libtokencap.so ]; then set -e; install -m 755 libtokencap.so $${DESTDIR}$(HELPER_PATH); fi
if [ -f libcompcov.so ]; then set -e; install -m 755 libcompcov.so $${DESTDIR}$(HELPER_PATH); fi
if [ -f libradamsa.so ]; then set -e; install -m 755 libradamsa.so $${DESTDIR}$(HELPER_PATH); fi
if [ -f afl-fuzz-document ]; then set -e; install -m 755 afl-fuzz-document $${DESTDIR}$(BIN_PATH); fi
$(MAKE) -C examples/socket_fuzzing install
$(MAKE) -C examples/argv_fuzzing install
set -e; ln -sf afl-gcc $${DESTDIR}$(BIN_PATH)/afl-g++
set -e; if [ -f afl-clang-fast ] ; then ln -sf afl-clang-fast $${DESTDIR}$(BIN_PATH)/afl-clang ; ln -sf afl-clang-fast $${DESTDIR}$(BIN_PATH)/afl-clang++ ; else ln -sf afl-gcc $${DESTDIR}$(BIN_PATH)/afl-clang ; ln -sf afl-gcc $${DESTDIR}$(BIN_PATH)/afl-clang++; fi
mkdir -m 0755 -p ${DESTDIR}$(MAN_PATH)
install -m0644 *.8 ${DESTDIR}$(MAN_PATH)
install -m 755 afl-as $${DESTDIR}$(HELPER_PATH)
ln -sf afl-as $${DESTDIR}$(HELPER_PATH)/as
install -m 644 docs/*.md $${DESTDIR}$(DOC_PATH)
cp -r testcases/ $${DESTDIR}$(MISC_PATH)
cp -r dictionaries/ $${DESTDIR}$(MISC_PATH)
@gmake clean

264
README.md
View File

@ -2,24 +2,26 @@
<img align="right" src="https://raw.githubusercontent.com/andreafioraldi/AFLplusplus-website/master/static/logo_256x256.png" alt="AFL++ Logo">
![Travis State](https://api.travis-ci.com/vanhauser-thc/AFLplusplus.svg?branch=master)
![Travis State](https://api.travis-ci.com/AFLplusplus/AFLplusplus.svg?branch=stable)
Release Version: 2.61c
Release Version: [2.66c](https://github.com/AFLplusplus/AFLplusplus/releases)
Github Version: 2.61d
Github Version: 2.66d
includes all necessary/interesting changes from Google's afl 2.56b
Originally developed by Michal "lcamtuf" Zalewski.
Repository: [https://github.com/vanhauser-thc/AFLplusplus](https://github.com/vanhauser-thc/AFLplusplus)
Repository: [https://github.com/AFLplusplus/AFLplusplus](https://github.com/AFLplusplus/AFLplusplus)
afl++ is maintained by Marc "van Hauser" Heuse <mh@mh-sec.de>,
Heiko "hexcoder-" Eißfeldt <heiko.eissfeldt@hexco.de>, Andrea Fioraldi <andreafioraldi@gmail.com> and Dominik Maier <mail@dmnk.co>.
afl++ is maintained by:
* Marc "van Hauser" Heuse <mh@mh-sec.de>,
* Heiko "hexcoder-" Eißfeldt <heiko.eissfeldt@hexco.de>,
* Andrea Fioraldi <andreafioraldi@gmail.com> and
* Dominik Maier <mail@dmnk.co>.
Note that although afl now has a Google afl repository [https://github.com/Google/afl](https://github.com/Google/afl),
it is unlikely to receive any noteable enhancements: [https://twitter.com/Dor3s/status/1154737061787660288](https://twitter.com/Dor3s/status/1154737061787660288)
it is unlikely to receive any notable enhancements: [https://twitter.com/Dor3s/status/1154737061787660288](https://twitter.com/Dor3s/status/1154737061787660288)
## The enhancements compared to the original stock afl
@ -38,13 +40,13 @@
* InsTrim, a very effective CFG llvm_mode instrumentation implementation for large targets: [https://github.com/csienslab/instrim](https://github.com/csienslab/instrim)
* C. Holler's afl-fuzz Python mutator module and llvm_mode whitelist support: [https://github.com/choller/afl](https://github.com/choller/afl)
* C. Holler's afl-fuzz Python mutator module and llvm_mode instrument file support: [https://github.com/choller/afl](https://github.com/choller/afl)
* Custom mutator by a library (instead of Python) by kyakdan
* unicorn_mode which allows fuzzing of binaries from completely different platforms (integration provided by domenukk)
* Unicorn mode which allows fuzzing of binaries from completely different platforms (integration provided by domenukk)
* laf-intel or CompCov support for llvm_mode, qemu_mode and unicorn_mode
* LAF-Intel or CompCov support for llvm_mode, qemu_mode and unicorn_mode
* NeverZero patch for afl-gcc, llvm_mode, qemu_mode and unicorn_mode which prevents a wrapping map value to zero, increases coverage
@ -52,35 +54,47 @@
* Win32 PE binary-only fuzzing with QEMU and Wine
* Radamsa mutator (enable with `-R` to add or `-RR` to run it exclusivly).
* Radamsa mutator (as a custom mutator).
* qbdi_mode: fuzz android native libraries via QBDI framework
* QBDI mode to fuzz android native libraries via QBDI framework
* The new CmpLog instrumentation for LLVM and QEMU inspired by [Redqueen](https://www.syssec.ruhr-uni-bochum.de/media/emma/veroeffentlichungen/2018/12/17/NDSS19-Redqueen.pdf)
A more thorough list is available in the PATCHES file.
* LLVM mode Ngram coverage by Adrian Herrera [https://github.com/adrianherrera/afl-ngram-pass](https://github.com/adrianherrera/afl-ngram-pass)
A more thorough list is available in the [PATCHES](docs/PATCHES.md) file.
| Feature/Instrumentation | afl-gcc | llvm_mode | gcc_plugin | qemu_mode | unicorn_mode |
| ----------------------- |:-------:|:---------:|:----------:|:----------------:|:------------:|
| NeverZero | x | x(1) | (2) | x | x |
| Persistent mode | | x | x | x86[_64]/arm[64] | x |
| laf-intel / CompCov | | x | | x86[_64]/arm[64] | x86[_64]/arm |
| LAF-Intel / CompCov | | x | | x86[_64]/arm[64] | x86[_64]/arm |
| CmpLog | | x | | x86[_64]/arm[64] | |
| Whitelist | | x | x | (x)(3) | |
| Instrument file list | | x | x | (x)(3) | |
| Non-colliding coverage | | x(4) | | (x)(5) | |
| InsTrim | | x | | | |
| Ngram prev_loc coverage | | x(6) | | | |
| Context coverage | | x | | | |
| Snapshot LKM support | | x | | (x)(5) | |
neverZero:
(1) only in LLVM >= 9.0 due to a bug in llvm in previous versions
(1) default for LLVM >= 9.0, env var for older version due an efficiency bug in llvm <= 8
(2) gcc creates non-performant code, hence it is disabled in gcc_plugin
(2) GCC creates non-performant code, hence it is disabled in gcc_plugin
(3) partially via AFL_CODE_START/AFL_CODE_END
(4) Only for LLVM >= 11 and not all targets compile
(5) upcoming, development in the branch
(6) not compatible with LTO instrumentation and needs at least LLVM >= 4.1
So all in all this is the best-of afl that is currently out there :-)
For new versions and additional information, check out:
[https://github.com/vanhauser-thc/AFLplusplus](https://github.com/vanhauser-thc/AFLplusplus)
[https://github.com/AFLplusplus/AFLplusplus](https://github.com/AFLplusplus/AFLplusplus)
To compare notes with other users or get notified about major new features,
send a mail to <afl-users+subscribe@googlegroups.com>.
@ -88,79 +102,102 @@
See [docs/QuickStartGuide.md](docs/QuickStartGuide.md) if you don't have time to
read this file.
## Branches
The following branches exist:
* [master/trunk](https://github.com/AFLplusplus/AFLplusplus/) : stable state of afl++ - it is synced from dev from time to
time when we are satisfied with it's stability
* [dev](https://github.com/AFLplusplus/AFLplusplus/tree/dev) : development state of afl++ - bleeding edge and you might catch a
checkout which does not compile or has a bug. *We only accept PRs in dev!!*
* (any other) : experimental branches to work on specific features or testing
new functionality or changes.
For releases, please see the [Releases](https://github.com/AFLplusplus/AFLplusplus/releases) tab.
## Google Summer of Code 2020 (and any other students and enthusiast developers)
We are happy to be part of [Google Summer of Code 2020](https://summerofcode.withgoogle.com/organizations/5100744400699392/)! :-)
We have several ideas we would like to see in AFL++ to make it even better.
However we already work on so many things that we do not have the time for
However, we already work on so many things that we do not have the time for
all the big ideas.
This can be your way to support and contribute to AFL++ - extend it to
something cool
something cool.
We have an idea list in [docs/ideas.md](docs/ideas.md)
We have an idea list in [docs/ideas.md](docs/ideas.md).
## 0) Building and installing afl++
For everyone who wants to contribute (and send pull requests) please read
[CONTRIBUTING.md](CONTRIBUTING.md) before your submit.
afl++ has many build options.
## Building and installing afl++
An easy way to install afl++ with everything compiled is available via docker:
You can use the [Dockerfile](Dockerfile) (which has gcc-10 and clang-11 -
hence afl-clang-lto is available!) or just pull directly from the docker hub:
```shell
docker pull aflplusplus/aflplusplus
docker run -ti -v /location/of/your/target:/src aflplusplus/aflplusplus
```
This container is automatically generated when a push to master happens.
You will find your target source code in /src in the container.
If you want to build afl++ yourself you have many options.
The easiest is to build and install everything:
```shell
$ sudo apt install build-essential libtool-bin python3 automake bison libglib2.0-dev libpixman-1-dev clang
$ make distrib
$ sudo make install
sudo apt install build-essential libtool-bin python3-dev automake flex bison libglib2.0-dev libpixman-1-dev clang python3-setuptools llvm
make distrib
sudo make install
```
It is recommended to install the newest available gcc and clang and llvm-dev
possible in your distribution!
Note that "make distrib" also builds llvm_mode, qemu_mode, unicorn_mode and
more. If you just want plain afl then do "make all", however compiling and
using at least llvm_mode is highly recommended for much better results -
hence in this case
hence in this case
```shell
$ make source-only
make source-only
```
is what you should choose.
These build targets exist:
* all: just the main afl++ binaries
* binary-only: everything for binary-only fuzzing: qemu_mode, unicorn_mode, libdislocator, libtokencap, radamsa
* source-only: everything for source code fuzzing: llvm_mode, libdislocator, libtokencap, radamsa
* binary-only: everything for binary-only fuzzing: qemu_mode, unicorn_mode, libdislocator, libtokencap
* source-only: everything for source code fuzzing: llvm_mode, libdislocator, libtokencap
* distrib: everything (for both binary-only and source code fuzzing)
* man: creates simple man pages from the help option of the programs
* install: installs everything you have compiled with the build options above
* clean: cleans everything. for qemu_mode and unicorn_mode it means it deletes all downloads as well
* clean: cleans everything compiled, not downloads (unless not on a checkout)
* deepclean: cleans everything including downloads
* code-format: format the code, do this before you commit and send a PR please!
* tests: runs test cases to ensure that all features are still working as they should
* unit: perform unit tests (based on cmocka)
* help: shows these build options
[Unless you are on Mac OS X](https://developer.apple.com/library/archive/qa/qa1118/_index.html) you can also build statically linked versions of the
afl++ binaries by passing the STATIC=1 argument to make:
```shell
$ make all STATIC=1
make all STATIC=1
```
These build options exist:
* STATIC - compile AFL++ static
* ASAN_BUILD - compiles with memory sanitizer for debug purposes
* PROFILING - compile with profiling information (gprof)
* NO_PYTHON - disable python support
* AFL_NO_X86 - if compiling on non-intel/amd platforms
* LLVM_CONFIG - if your distro doesn't use the standard name for llvm-config (e.g. Debian)
e.g.: make ASAN_BUILD=1
Note that afl++ is faster and better the newer the compilers used are.
Hence gcc-9 and especially llvm-9 should be the compilers of choice.
If your distribution does not have them, you can use the Dockerfile:
```shell
$ docker build -t aflplusplus
```
## 1) Challenges of guided fuzzing
## Challenges of guided fuzzing
Fuzzing is one of the most powerful and proven strategies for identifying
security issues in real-world software; it is responsible for the vast
@ -175,9 +212,9 @@ There have been numerous attempts to solve this problem. One of the early
approaches - pioneered by Tavis Ormandy - is corpus distillation. The method
relies on coverage signals to select a subset of interesting seeds from a
massive, high-quality corpus of candidate files, and then fuzz them by
traditional means. The approach works exceptionally well, but requires such
traditional means. The approach works exceptionally well but requires such
a corpus to be readily available. In addition, block coverage measurements
provide only a very simplistic understanding of program state, and are less
provide only a very simplistic understanding of the program state and are less
useful for guiding the fuzzing effort in the long haul.
Other, more sophisticated research has focused on techniques such as program
@ -187,7 +224,7 @@ to suffer from reliability and performance problems in practical uses - and
currently do not offer a viable alternative to "dumb" fuzzing techniques.
## 2) The afl-fuzz approach
## The afl-fuzz approach
American Fuzzy Lop is a brute-force fuzzer coupled with an exceedingly simple
but rock-solid instrumentation-guided genetic algorithm. It uses a modified
@ -198,7 +235,7 @@ Simplifying a bit, the overall algorithm can be summed up as:
1) Load user-supplied initial test cases into the queue,
2) Take next input file from the queue,
2) Take the next input file from the queue,
3) Attempt to trim the test case to the smallest size that doesn't alter
the measured behavior of the program,
@ -226,12 +263,12 @@ The fuzzer is thoroughly tested to deliver out-of-the-box performance far
superior to blind fuzzing or coverage-only tools.
## 3) Instrumenting programs for use with AFL
## Instrumenting programs for use with AFL
PLEASE NOTE: llvm_mode compilation with afl-clang-fast/afl-clang-fast++
instead of afl-gcc/afl-g++ is much faster and has a few cool features.
instead of afl-gcc/afl-g++ is much faster and has many cool features.
See llvm_mode/ - however few code does not compile with llvm.
We support llvm versions 3.8.0 to 11.
We support llvm versions 3.4 to 11.
When source code is available, instrumentation can be injected by a companion
tool that works as a drop-in replacement for gcc or clang in any standard build
@ -245,8 +282,8 @@ The correct way to recompile the target program may vary depending on the
specifics of the build process, but a nearly-universal approach would be:
```shell
$ CC=/path/to/afl/afl-gcc ./configure
$ make clean all
CC=/path/to/afl/afl-gcc ./configure
make clean all
```
For C++ programs, you'd would also want to set `CXX=/path/to/afl/afl-g++`.
@ -254,23 +291,23 @@ For C++ programs, you'd would also want to set `CXX=/path/to/afl/afl-g++`.
The clang wrappers (afl-clang and afl-clang++) can be used in the same way;
clang users may also opt to leverage a higher-performance instrumentation mode,
as described in [llvm_mode/README.md](llvm_mode/README.md).
Clang/LLVM has a much better performance and works with LLVM version 3.8.0 to 11.
Clang/LLVM has a much better performance and works with LLVM version 3.4 to 11.
Using the LAF Intel performance enhancements are also recommended, see
[llvm_mode/README.laf-intel.md](llvm_mode/README.laf-intel.md)
Using partial instrumentation is also recommended, see
[llvm_mode/README.whitelist.md](llvm_mode/README.whitelist.md)
[llvm_mode/README.instrument_file.md](llvm_mode/README.instrument_file.md)
When testing libraries, you need to find or write a simple program that reads
data from stdin or from a file and passes it to the tested library. In such a
case, it is essential to link this executable against a static version of the
instrumented library, or to make sure that the correct .so file is loaded at
instrumented library or to make sure that the correct .so file is loaded at
runtime (usually by setting `LD_LIBRARY_PATH`). The simplest option is a static
build, usually possible via:
```shell
$ CC=/path/to/afl/afl-gcc ./configure --disable-shared
CC=/path/to/afl/afl-gcc ./configure --disable-shared
```
Setting `AFL_HARDEN=1` when calling 'make' will cause the CC wrapper to
@ -282,7 +319,7 @@ PS. ASAN users are advised to review [docs/notes_for_asan.md](docs/notes_for_asa
file for important caveats.
## 4) Instrumenting binary-only apps
## Instrumenting binary-only apps
When source code is *NOT* available, the fuzzer offers experimental support for
fast, on-the-fly instrumentation of black-box binaries. This is accomplished
@ -292,13 +329,13 @@ QEMU is a project separate from AFL, but you can conveniently build the
feature by doing:
```shell
$ cd qemu_mode
$ ./build_qemu_support.sh
cd qemu_mode
./build_qemu_support.sh
```
For additional instructions and caveats, see [qemu_mode/README.md](qemu_mode/README.md).
If possible you should use the persistent mode, see [README.persistent.md](README.persistent.md).
If possible you should use the persistent mode, see [qemu_mode/README.persistent.md](qemu_mode/README.persistent.md).
The mode is approximately 2-5x slower than compile-time instrumentation, is
less conducive to parallelization, and may have some other quirks.
@ -310,18 +347,23 @@ the speed compared to qemu_mode.
A more comprehensive description of these and other options can be found in
[docs/binaryonly_fuzzing.md](docs/binaryonly_fuzzing.md)
## Good examples and writeups
## 5) Good examples and writeups
Here are some good writeups to show how to effectibly use AFL++:
Here are some good writeups to show how to effectively use AFL++:
* [https://aflplus.plus/docs/tutorials/libxml2_tutorial/](https://aflplus.plus/docs/tutorials/libxml2_tutorial/)
* [https://bananamafia.dev/post/gb-fuzz/](https://bananamafia.dev/post/gb-fuzz/)
* [https://securitylab.github.com/research/fuzzing-challenges-solutions-1](https://securitylab.github.com/research/fuzzing-challenges-solutions-1)
* [https://securitylab.github.com/research/fuzzing-sockets-FTP](https://securitylab.github.com/research/fuzzing-sockets-FTP)
If you are interested in fuzzing structured data (where you define what the
structure is), these two links have you covered:
* [https://github.com/bruce30262/libprotobuf-mutator_fuzzing_learning/tree/master/4_libprotobuf_aflpp_custom_mutator](https://github.com/bruce30262/libprotobuf-mutator_fuzzing_learning/tree/master/4_libprotobuf_aflpp_custom_mutator)
* [https://github.com/thebabush/afl-libprotobuf-mutator](https://github.com/thebabush/afl-libprotobuf-mutator)
If you find other good ones, please send them to us :-)
## 6) Power schedules
## Power schedules
The power schedules were copied from Marcel Böhme's excellent AFLfast
implementation and expand on the ability to discover new paths and
@ -329,27 +371,31 @@ therefore may increase the code coverage.
The available schedules are:
- explore (default)
- fast
- coe
- quad
- lin
- exploit
- explore (default, original AFL)
- exploit (original AFL)
- fast (AFLfast)
- coe (AFLfast)
- quad (AFLfast)
- lin (AFLfast)
- rare (afl++ experimental)
- mmopt (afl++ experimental)
- seek (afl++ experimental)
In parallel mode (-M/-S, several instances with shared queue), we suggest to
run the master using the exploit schedule (-p exploit) and the slaves with a
combination of cut-off-exponential (-p coe), exponential (-p fast; default),
and explore (-p explore) schedules.
In parallel mode (-M/-S, several instances with the shared queue), we suggest to
run the main node using the explore or fast schedule (-p explore) and the secondary
nodes with a combination of cut-off-exponential (-p coe), exponential (-p fast),
explore (-p explore) and mmopt (-p mmopt) schedules. If a schedule does
not perform well for a target, restart the secondary nodes with a different schedule.
In single mode, using -p fast is usually more beneficial than the default
explore mode.
(We don't want to change the default behaviour of afl, so "fast" has not been
In single mode, using -p fast is usually slightly more beneficial than the
default explore mode.
(We don't want to change the default behavior of afl, so "fast" has not been
made the default mode).
More details can be found in the paper published at the 23rd ACM Conference on
Computer and Communications Security [CCS'16](https://www.sigsac.org/ccs/CCS2016/accepted-papers/)
## 7) Choosing initial test cases
## Choosing initial test cases
To operate correctly, the fuzzer requires one or more starting file that
contains a good example of the input data normally expected by the targeted
@ -370,7 +416,7 @@ the afl-cmin utility to identify a subset of functionally distinct files that
exercise different code paths in the target binary.
## 8) Fuzzing binaries
## Fuzzing binaries
The fuzzing process itself is carried out by the afl-fuzz utility. This program
requires a read-only directory with initial test cases, a separate place to
@ -379,7 +425,7 @@ store its findings, plus a path to the binary to test.
For target binaries that accept input directly from stdin, the usual syntax is:
```shell
$ ./afl-fuzz -i testcase_dir -o findings_dir /path/to/program [...params...]
./afl-fuzz -i testcase_dir -o findings_dir /path/to/program [...params...]
```
For programs that take input from a file, use '@@' to mark the location in
@ -387,7 +433,7 @@ the target's command line where the input file name should be placed. The
fuzzer will substitute this for you:
```shell
$ ./afl-fuzz -i testcase_dir -o findings_dir /path/to/program @@
./afl-fuzz -i testcase_dir -o findings_dir /path/to/program @@
```
You can also use the -f option to have the mutated data written to a specific
@ -407,18 +453,18 @@ steps, which can take several days, but tend to produce neat test cases. If you
want quick & dirty results right away - akin to zzuf and other traditional
fuzzers - add the -d option to the command line.
## 9) Interpreting output
## Interpreting output
See the [docs/status_screen.md](docs/status_screen.md) file for information on
how to interpret the displayed stats and monitor the health of the process. Be
sure to consult this file especially if any UI elements are highlighted in red.
The fuzzing process will continue until you press Ctrl-C. At minimum, you want
The fuzzing process will continue until you press Ctrl-C. At a minimum, you want
to allow the fuzzer to complete one queue cycle, which may take anywhere from a
couple of hours to a week or so.
There are three subdirectories created within the output directory and updated
in real time:
in real-time:
- queue/ - test cases for every distinctive execution path, plus all the
starting files given by the user. This is the synthesized corpus
@ -443,15 +489,15 @@ involve any state transitions not seen in previously-recorded faults. If a
single bug can be reached in multiple ways, there will be some count inflation
early in the process, but this should quickly taper off.
The file names for crashes and hangs are correlated with parent, non-faulting
The file names for crashes and hangs are correlated with the parent, non-faulting
queue entries. This should help with debugging.
When you can't reproduce a crash found by afl-fuzz, the most likely cause is
that you are not setting the same memory limit as used by the tool. Try:
```shell
$ LIMIT_MB=50
$ ( ulimit -Sv $[LIMIT_MB << 10]; /path/to/tested_binary ... )
LIMIT_MB=50
( ulimit -Sv $[LIMIT_MB << 10]; /path/to/tested_binary ... )
```
Change LIMIT_MB to match the -m parameter passed to afl-fuzz. On OpenBSD,
@ -460,14 +506,14 @@ also change -Sv to -Sd.
Any existing output directory can be also used to resume aborted jobs; try:
```shell
$ ./afl-fuzz -i- -o existing_output_dir [...etc...]
./afl-fuzz -i- -o existing_output_dir [...etc...]
```
If you have gnuplot installed, you can also generate some pretty graphs for any
active fuzzing task using afl-plot. For an example of how this looks like,
see [http://lcamtuf.coredump.cx/afl/plot/](http://lcamtuf.coredump.cx/afl/plot/).
## 10) Parallelized fuzzing
## Parallelized fuzzing
Every instance of afl-fuzz takes up roughly one core. This means that on
multi-core systems, parallelization is necessary to fully utilize the hardware.
@ -478,7 +524,7 @@ The parallel fuzzing mode also offers a simple way for interfacing AFL to other
fuzzers, to symbolic or concolic execution engines, and so forth; again, see the
last section of [docs/parallel_fuzzing.md](docs/parallel_fuzzing.md) for tips.
## 12) Fuzzer dictionaries
## Fuzzer dictionaries
By default, afl-fuzz mutation engine is optimized for compact data formats -
say, images, multimedia, compressed data, regular expression syntax, or shell
@ -507,13 +553,13 @@ instrumentation feedback alone. This actually works in practice, say:
PS. Even when no explicit dictionary is given, afl-fuzz will try to extract
existing syntax tokens in the input corpus by watching the instrumentation
very closely during deterministic byte flips. This works for some types of
parsers and grammars, but isn't nearly as good as the -x mode.
parsers and grammars but isn't nearly as good as the -x mode.
If a dictionary is really hard to come by, another option is to let AFL run
for a while, and then use the token capture library that comes as a companion
for a while and then use the token capture library that comes as a companion
utility with AFL. For that, see [libtokencap/README.md](libtokencap/README.tokencap.md).
## 13) Crash triage
## Crash triage
The coverage-based grouping of crashes usually produces a small data set that
can be quickly triaged manually or with a very simple GDB or Valgrind script.
@ -525,7 +571,7 @@ difficult to quickly evaluate for exploitability without a lot of debugging and
code analysis work. To assist with this task, afl-fuzz supports a very unique
"crash exploration" mode enabled with the -C flag.
In this mode, the fuzzer takes one or more crashing test cases as the input,
In this mode, the fuzzer takes one or more crashing test cases as the input
and uses its feedback-driven fuzzing strategies to very quickly enumerate all
code paths that can be reached in the program while keeping it in the
crashing state.
@ -542,7 +588,7 @@ Oh, one more thing: for test case minimization, give afl-tmin a try. The tool
can be operated in a very simple way:
```shell
$ ./afl-tmin -i test_case -o minimized_result -- /path/to/program [...]
./afl-tmin -i test_case -o minimized_result -- /path/to/program [...]
```
The tool works with crashing and non-crashing test cases alike. In the crash
@ -560,12 +606,11 @@ be critical, and which are not; while not bulletproof, it can often offer quick
insights into complex file formats. More info about its operation can be found
near the end of [docs/technical_details.md](docs/technical_details.md).
## 14) Going beyond crashes
## Going beyond crashes
Fuzzing is a wonderful and underutilized technique for discovering non-crashing
design and implementation errors, too. Quite a few interesting bugs have been
found by modifying the target programs to call abort() when, say:
found by modifying the target programs to call abort() when say:
- Two bignum libraries produce different outputs when given the same
fuzzer-generated input,
@ -584,10 +629,10 @@ if you are the maintainer of a particular package, you can make this code
conditional with `#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION` (a flag also
shared with libfuzzer) or `#ifdef __AFL_COMPILER` (this one is just for AFL).
## 15) Common-sense risks
## Common-sense risks
Please keep in mind that, similarly to many other computationally-intensive
tasks, fuzzing may put strain on your hardware and on the OS. In particular:
tasks, fuzzing may put a strain on your hardware and on the OS. In particular:
- Your CPU will run hot and will need adequate cooling. In most cases, if
cooling is insufficient or stops working properly, CPU speeds will be
@ -613,14 +658,14 @@ tasks, fuzzing may put strain on your hardware and on the OS. In particular:
$ iostat -d 3 -x -k [...optional disk ID...]
```
## 16) Known limitations & areas for improvement
## Known limitations & areas for improvement
Here are some of the most important caveats for AFL:
- AFL detects faults by checking for the first spawned process dying due to
a signal (SIGSEGV, SIGABRT, etc). Programs that install custom handlers for
these signals may need to have the relevant code commented out. In the same
vein, faults in child processed spawned by the fuzzed target may evade
vein, faults in child processes spawned by the fuzzed target may evade
detection unless you manually add some code to catch that.
- As with any other brute-force tool, the fuzzer offers limited coverage if
@ -629,8 +674,9 @@ Here are some of the most important caveats for AFL:
To work around this, you can comment out the relevant checks (see
examples/libpng_no_checksum/ for inspiration); if this is not possible,
you can also write a postprocessor, as explained in
examples/post_library/ (with AFL_POST_LIBRARY)
you can also write a postprocessor, one of the hooks of custom mutators.
See [docs/custom_mutators.md](docs/custom_mutators.md) on how to use
`AFL_CUSTOM_MUTATOR_LIBRARY`
- There are some unfortunate trade-offs with ASAN and 64-bit binaries. This
isn't due to any specific fault of afl-fuzz; see [docs/notes_for_asan.md](docs/notes_for_asan.md)
@ -653,7 +699,7 @@ Here are some of the most important caveats for AFL:
Beyond this, see INSTALL for platform-specific tips.
## 17) Special thanks
## Special thanks
Many of the improvements to the original afl and afl++ wouldn't be possible
without feedback, bug reports, or patches from:
@ -701,16 +747,16 @@ without feedback, bug reports, or patches from:
Nathan Voss Dominik Maier
Andrea Biondo Vincent Le Garrec
Khaled Yakdan Kuang-che Wu
Josephine Calliotte
Josephine Calliotte Konrad Welc
```
Thank you!
(For people sending pull requests - please add yourself to this list :-)
## 18) Contact
## Contact
Questions? Concerns? Bug reports? The contributors can be reached via
[https://github.com/vanhauser-thc/AFLplusplus](https://github.com/vanhauser-thc/AFLplusplus)
[https://github.com/AFLplusplus/AFLplusplus](https://github.com/AFLplusplus/AFLplusplus)
There is also a mailing list for the afl project; to join, send a mail to
<afl-users+subscribe@googlegroups.com>. Or, if you prefer to browse

96
TODO.md
View File

@ -1,92 +1,32 @@
# TODO list for AFL++
## Roadmap 2.61
Makefile:
- -march=native -Ofast -flto=full (especially for afl-fuzz)
llvm_mode:
- using lto + opt to instrument at link time, and using a sat solver to
select basic block IDs that do not result in collisions
(Solution for "The far away future", see bottom of file)
qemu_mode:
- ensure redqueen implementation works fine
- ensure no issues in persistent mode
## Roadmap 2.66+
- AFL_MAP_SIZE for qemu_mode and unicorn_mode
- namespace for targets? e.g. network
- learn from honggfuzz (mutations, maybe ptrace?)
- CPU affinity for many cores? There seems to be an issue > 96 cores
## Further down the road
afl-fuzz:
- sync_fuzzers(): only masters sync from all, slaves only sync from master
(@andrea: be careful, often people run all slaves)
- ascii_only mode
- ascii_only mode for mutation output - or use a custom mutator for this?
- setting min_len/max_len/start_offset/end_offset limits for mutation output
llvm_mode:
- LTO - imitate sancov
gcc_plugin:
- (wait for submission then decide)
- laf-intel
- better instrumentation
- better instrumentation (seems to be better with gcc-9+)
qemu_mode:
- update to 4.x (probably this will be skipped :( )
- instrim for QEMU mode via static analysis (with r2pipe? or angr?)
Idea: The static analyzer outputs a map in which each edge that must be
skipped is marked with 1. QEMU loads it at startup in the parent process.
- rename qemu specific envs to AFL_QEMU (AFL_ENTRYPOINT, AFL_CODE_START/END, AFL_COMPCOV_LEVEL?)
- add AFL_QEMU_EXITPOINT (maybe multiple?)
- update to 5.x (if the performance bug if gone)
- non colliding instrumentation
- rename qemu specific envs to AFL_QEMU (AFL_ENTRYPOINT, AFL_CODE_START/END,
AFL_COMPCOV_LEVEL?)
- add AFL_QEMU_EXITPOINT (maybe multiple?), maybe pointless as we have
persistent mode
- add/implement AFL_QEMU_INST_LIBLIST and AFL_QEMU_NOINST_PROGRAM
- add/implement AFL_QEMU_INST_REGIONS as a list of _START/_END addresses
custom_mutators:
- rip what Superion is doing into custom mutators for js, php, etc.
- uniform python and custom mutators API
## The far away future:
Problem: Average targets (tiff, jpeg, unrar) go through 1500 edges.
At afl's default map that means ~16 collisions and ~3 wrappings.
- Solution #1: increase map size.
=> speed loss is bad. last resort solution
every +1 decreases fuzzing speed by ~10% and halfs the collisions
birthday paradox predicts collisions at this # of edges:
| mapsize | collisions |
| :-----: | :--------: |
| 2^16 | 302 |
| 2^17 | 427 |
| 2^18 | 603 |
| 2^19 | 853 |
| 2^20 | 1207 |
| 2^21 | 1706 |
| 2^22 | 2412 |
| 2^23 | 3411 |
| 2^24 | 4823 |
Increasing the map is an easy solution but also not a good one.
- Solution #2: use dynamic map size and collision free basic block IDs
=> This works and is the selected solution
This only works in llvm_mode and llvm >= 9 though
A potential good future solution. Heiko/hexcoder follows this up
- Solution #3: write instruction pointers to a big shared map
=> Tested and it is a dead end
512kb/1MB shared map and the instrumented code writes the instruction
pointer into the map. Map must be big enough but could be command line
controlled.
Good: complete coverage information, nothing is lost. choice of analysis
impacts speed, but this can be decided by user options
Neutral: a little bit slower but no loss of coverage
Bad: completely changes how afl uses the map and the scheduling.
Overall another very good solution, Marc Heuse/vanHauser follows this up

View File

@ -1,4 +1,6 @@
#!/usr/bin/env sh
export AFL_QUIET=1
export ASAN_OPTIONS=detect_leaks=0
THISPATH=`dirname ${0}`
export PATH="${THISPATH}:$PATH"
awk -f - -- ${@+"$@"} <<'EOF'
@ -23,7 +25,7 @@ awk -f - -- ${@+"$@"} <<'EOF'
# ln
# cp
# pwd
# which
# type
# cd
# find
# stat
@ -94,15 +96,13 @@ function getopt(argc, argv, options, thisopt, i)
function usage() {
print \
"Usage: afl-cmin [ options ] -- /path/to/target_app [ ... ]\n" \
"afl-cmin [ options ] -- /path/to/target_app [ ... ]\n" \
"\n" \
"Required parameters:\n" \
"\n" \
" -i dir - input directory with starting corpus\n" \
" -o dir - output directory for minimized files\n" \
"\n" \
"Execution control settings:\n" \
"\n" \
" -f file - location read by the fuzzed program (stdin)\n" \
" -m megs - memory limit for child process ("mem_limit" MB)\n" \
" -t msec - run time limit for child process (none)\n" \
@ -116,11 +116,10 @@ function usage() {
"For additional tips, please consult docs/README.md\n" \
"\n" \
"Environment variables used:\n" \
"AFL_KEEP_TRACES: leave the temporary <out_dir>\.traces directory\n" \
"AFL_KEEP_TRACES: leave the temporary <out_dir>/.traces directory\n" \
"AFL_PATH: path for the afl-showmap binary\n" \
"AFL_SKIP_BIN_CHECK: skip check for target binary\n" \
"AFL_ALLOW_TMP: allow unsafe use of input/output directories under {/var}/tmp\n" \
> "/dev/stderr"
"AFL_ALLOW_TMP: allow unsafe use of input/output directories under {/var}/tmp\n"
exit 1
}
@ -265,7 +264,7 @@ BEGIN {
if (target_bin && !exists_and_is_executable(target_bin)) {
"which "target_bin" 2>/dev/null" | getline tnew
"command -v "target_bin" 2>/dev/null" | getline tnew
if (!tnew || !exists_and_is_executable(tnew)) {
print "[-] Error: binary '"target_bin"' not found or not executable." > "/dev/stderr"
exit 1
@ -314,7 +313,7 @@ BEGIN {
if (0 == system("test -f afl-cmin")) {
showmap = "./afl-showmap"
} else {
"which afl-showmap 2>/dev/null" | getline showmap
"command -v afl-showmap 2>/dev/null" | getline showmap
}
} else {
showmap = ENVIRON["AFL_PATH"] "/afl-showmap"
@ -399,10 +398,20 @@ BEGIN {
cur = 0;
if (!stdin_file) {
print " Processing "in_count" files (forkserver mode)..."
system( "AFL_CMIN_ALLOW_ANY=1 \""showmap"\" -m "mem_limit" -t "timeout" -o \""trace_dir"\" -Z "extra_par" -i \""in_dir"\" -- \""target_bin"\" "prog_args_string)
retval = system( "AFL_CMIN_ALLOW_ANY=1 \""showmap"\" -m "mem_limit" -t "timeout" -o \""trace_dir"\" -Z "extra_par" -i \""in_dir"\" -- \""target_bin"\" "prog_args_string)
} else {
print " Processing "in_count" files (forkserver mode)..."
system( "AFL_CMIN_ALLOW_ANY=1 \""showmap"\" -m "mem_limit" -t "timeout" -o \""trace_dir"\" -Z "extra_par" -i \""in_dir"\" -- \""target_bin"\" "prog_args_string" </dev/null")
retval = system( "AFL_CMIN_ALLOW_ANY=1 \""showmap"\" -m "mem_limit" -t "timeout" -o \""trace_dir"\" -Z "extra_par" -i \""in_dir"\" -- \""target_bin"\" "prog_args_string" </dev/null")
}
if (retval) {
print "[!]Exit code != 0 received from afl-showmap, terminating..."
if (!ENVIRON["AFL_KEEP_TRACES"]) {
system("rm -rf "trace_dir" 2>/dev/null")
system("rmdir "out_dir)
}
exit retval
}
#######################################################

View File

@ -51,6 +51,8 @@ TIMEOUT=none
unset IN_DIR OUT_DIR STDIN_FILE EXTRA_PAR MEM_LIMIT_GIVEN \
AFL_CMIN_CRASHES_ONLY AFL_CMIN_ALLOW_ANY QEMU_MODE UNICORN_MODE
export AFL_QUIET=1
while getopts "+i:o:f:m:t:eQUCh" opt; do
case "$opt" in
@ -126,13 +128,12 @@ Minimization settings:
-C - keep crashing inputs, reject everything else
-e - solve for edge coverage only, ignore hit counts
For additional tips, please consult docs/README.
For additional tips, please consult docs/README.md.
Environment variables used:
AFL_KEEP_TRACES: leave the temporary <out_dir>\.traces directory
AFL_PATH: path for the afl-showmap binary
AFL_SKIP_BIN_CHECK: skip check for target binary
AFL_ALLOW_TMP: allow unsafe use of input/output directories under {/var}/tmp
_EOF_
exit 1
fi
@ -140,29 +141,29 @@ fi
# Do a sanity check to discourage the use of /tmp, since we can't really
# handle this safely from a shell script.
if [ "$AFL_ALLOW_TMP" = "" ]; then
echo "$IN_DIR" | grep -qE '^(/var)?/tmp/'
T1="$?"
echo "$TARGET_BIN" | grep -qE '^(/var)?/tmp/'
T2="$?"
echo "$OUT_DIR" | grep -qE '^(/var)?/tmp/'
T3="$?"
echo "$STDIN_FILE" | grep -qE '^(/var)?/tmp/'
T4="$?"
echo "$PWD" | grep -qE '^(/var)?/tmp/'
T5="$?"
if [ "$T1" = "0" -o "$T2" = "0" -o "$T3" = "0" -o "$T4" = "0" -o "$T5" = "0" ]; then
echo "[-] Error: do not use this script in /tmp or /var/tmp." 1>&2
exit 1
fi
fi
#if [ "$AFL_ALLOW_TMP" = "" ]; then
#
# echo "$IN_DIR" | grep -qE '^(/var)?/tmp/'
# T1="$?"
#
# echo "$TARGET_BIN" | grep -qE '^(/var)?/tmp/'
# T2="$?"
#
# echo "$OUT_DIR" | grep -qE '^(/var)?/tmp/'
# T3="$?"
#
# echo "$STDIN_FILE" | grep -qE '^(/var)?/tmp/'
# T4="$?"
#
# echo "$PWD" | grep -qE '^(/var)?/tmp/'
# T5="$?"
#
# if [ "$T1" = "0" -o "$T2" = "0" -o "$T3" = "0" -o "$T4" = "0" -o "$T5" = "0" ]; then
# echo "[-] Error: do not use this script in /tmp or /var/tmp." 1>&2
# exit 1
# fi
#
#fi
# If @@ is specified, but there's no -f, let's come up with a temporary input
# file name.
@ -244,7 +245,7 @@ if [ ! "$STDIN_FILE" = "" ]; then
fi
if [ "$AFL_PATH" = "" ]; then
SHOWMAP="${0%/afl-cmin}/afl-showmap"
SHOWMAP="${0%/afl-cmin.bash}/afl-showmap"
else
SHOWMAP="$AFL_PATH/afl-showmap"
fi

View File

@ -15,6 +15,10 @@
# http://www.apache.org/licenses/LICENSE-2.0
#
get_abs_path() {
echo $(cd "`dirname "$1"`" && pwd)/"`basename "$1"`"
}
echo "progress plotting utility for afl-fuzz by Michal Zalewski"
echo
@ -31,42 +35,44 @@ an empty directory where this tool can write the resulting plots to.
The program will put index.html and three PNG images in the output directory;
you should be able to view it with any web browser of your choice.
_EOF_
exit 1
fi
if [ "$AFL_ALLOW_TMP" = "" ]; then
inputdir=`get_abs_path "$1"`
outputdir=`get_abs_path "$2"`
echo "$1" | grep -qE '^(/var)?/tmp/'
T1="$?"
#if [ "$AFL_ALLOW_TMP" = "" ]; then
#
# echo "$inputdir" | grep -qE '^(/var)?/tmp/'
# T1="$?"
#
# echo "$outputdir" | grep -qE '^(/var)?/tmp/'
# T2="$?"
#
# if [ "$T1" = "0" -o "$T2" = "0" ]; then
#
# echo "[-] Error: this script shouldn't be used with shared /tmp directories." 1>&2
# exit 1
#
# fi
#
#fi
echo "$2" | grep -qE '^(/var)?/tmp/'
T2="$?"
if [ "$T1" = "0" -o "$T2" = "0" ]; then
echo "[-] Error: this script shouldn't be used with shared /tmp directories." 1>&2
exit 1
fi
fi
if [ ! -f "$1/plot_data" ]; then
if [ ! -f "$inputdir/plot_data" ]; then
echo "[-] Error: input directory is not valid (missing 'plot_data')." 1>&2
exit 1
fi
BANNER="`cat "$1/fuzzer_stats" | grep '^afl_banner ' | cut -d: -f2- | cut -b2-`"
BANNER="`cat "$inputdir/fuzzer_stats" 2> /dev/null | grep '^afl_banner ' | cut -d: -f2- | cut -b2-`"
test "$BANNER" = "" && BANNER="(none)"
GNUPLOT=`which gnuplot 2>/dev/null`
GNUPLOT=`command -v gnuplot 2>/dev/null`
if [ "$GNUPLOT" = "" ]; then
@ -75,17 +81,17 @@ if [ "$GNUPLOT" = "" ]; then
fi
mkdir "$2" 2>/dev/null
mkdir "$outputdir" 2>/dev/null
if [ ! -d "$2" ]; then
if [ ! -d "$outputdir" ]; then
echo "[-] Error: unable to create the output directory - pick another location." 1>&2
exit 1
fi
rm -f "$2/high_freq.png" "$2/low_freq.png" "$2/exec_speed.png"
mv -f "$2/index.html" "$2/index.html.orig" 2>/dev/null
rm -f "$outputdir/high_freq.png" "$outputdir/low_freq.png" "$outputdir/exec_speed.png"
mv -f "$outputdir/index.html" "$outputdir/index.html.orig" 2>/dev/null
echo "[*] Generating plots..."
@ -94,7 +100,7 @@ echo "[*] Generating plots..."
cat <<_EOF_
set terminal png truecolor enhanced size 1000,300 butt
set output '$2/high_freq.png'
set output '$outputdir/high_freq.png'
set xdata time
set timefmt '%s'
@ -112,31 +118,31 @@ set key outside
set autoscale xfixmin
set autoscale xfixmax
plot '$1/plot_data' using 1:4 with filledcurve x1 title 'total paths' linecolor rgb '#000000' fillstyle transparent solid 0.2 noborder, \\
plot '$inputdir/plot_data' using 1:4 with filledcurve x1 title 'total paths' linecolor rgb '#000000' fillstyle transparent solid 0.2 noborder, \\
'' using 1:3 with filledcurve x1 title 'current path' linecolor rgb '#f0f0f0' fillstyle transparent solid 0.5 noborder, \\
'' using 1:5 with lines title 'pending paths' linecolor rgb '#0090ff' linewidth 3, \\
'' using 1:6 with lines title 'pending favs' linecolor rgb '#c00080' linewidth 3, \\
'' using 1:2 with lines title 'cycles done' linecolor rgb '#c000f0' linewidth 3
set terminal png truecolor enhanced size 1000,200 butt
set output '$2/low_freq.png'
set output '$outputdir/low_freq.png'
plot '$1/plot_data' using 1:8 with filledcurve x1 title '' linecolor rgb '#c00080' fillstyle transparent solid 0.2 noborder, \\
plot '$inputdir/plot_data' using 1:8 with filledcurve x1 title '' linecolor rgb '#c00080' fillstyle transparent solid 0.2 noborder, \\
'' using 1:8 with lines title ' uniq crashes' linecolor rgb '#c00080' linewidth 3, \\
'' using 1:9 with lines title 'uniq hangs' linecolor rgb '#c000f0' linewidth 3, \\
'' using 1:10 with lines title 'levels' linecolor rgb '#0090ff' linewidth 3
set terminal png truecolor enhanced size 1000,200 butt
set output '$2/exec_speed.png'
set output '$outputdir/exec_speed.png'
plot '$1/plot_data' using 1:11 with filledcurve x1 title '' linecolor rgb '#0090ff' fillstyle transparent solid 0.2 noborder, \\
'$1/plot_data' using 1:11 with lines title ' execs/sec' linecolor rgb '#0090ff' linewidth 3 smooth bezier;
plot '$inputdir/plot_data' using 1:11 with filledcurve x1 title '' linecolor rgb '#0090ff' fillstyle transparent solid 0.2 noborder, \\
'$inputdir/plot_data' using 1:11 with lines title ' execs/sec' linecolor rgb '#0090ff' linewidth 3 smooth bezier;
_EOF_
) | gnuplot
if [ ! -s "$2/exec_speed.png" ]; then
if [ ! -s "$outputdir/exec_speed.png" ]; then
echo "[-] Error: something went wrong! Perhaps you have an ancient version of gnuplot?" 1>&2
exit 1
@ -145,10 +151,10 @@ fi
echo "[*] Generating index.html..."
cat >"$2/index.html" <<_EOF_
cat >"$outputdir/index.html" <<_EOF_
<table style="font-family: 'Trebuchet MS', 'Tahoma', 'Arial', 'Helvetica'">
<tr><td style="width: 18ex"><b>Banner:</b></td><td>$BANNER</td></tr>
<tr><td><b>Directory:</b></td><td>$1</td></tr>
<tr><td><b>Directory:</b></td><td>$inputdir</td></tr>
<tr><td><b>Generated on:</b></td><td>`date`</td></tr>
</table>
<p>
@ -162,8 +168,8 @@ _EOF_
# served by Apache or other HTTP daemon. Since the plots aren't horribly
# sensitive, this seems like a reasonable trade-off.
chmod 755 "$2"
chmod 644 "$2/high_freq.png" "$2/low_freq.png" "$2/exec_speed.png" "$2/index.html"
chmod 755 "$outputdir"
chmod 644 "$outputdir/high_freq.png" "$outputdir/low_freq.png" "$outputdir/exec_speed.png" "$outputdir/index.html"
echo "[+] All done - enjoy your charts!"

View File

@ -18,12 +18,13 @@
# instances of afl-fuzz.
#
echo "status check tool for afl-fuzz by Michal Zalewski"
echo "$0 status check tool for afl-fuzz by Michal Zalewski"
echo
test "$1" = "-h" && {
echo $0
echo $0 [-s] output_directory
echo
echo afl-whatsup has no command line options
echo Options:
echo -s - skip details and output summary results only
echo
exit 1
}
@ -60,6 +61,13 @@ if [ -d queue ]; then
fi
RED=`tput setaf 9 1 1`
GREEN=`tput setaf 2 1 1`
BLUE=`tput setaf 4 1 1`
YELLOW=`tput setaf 11 1 1`
NC=`tput sgr0`
RESET="$NC"
CUR_TIME=`date +%s`
TMP=`mktemp -t .afl-whatsup-XXXXXXXX` || TMP=`mktemp -p /data/local/tmp .afl-whatsup-XXXXXXXX` || TMP=`mktemp -p /data/local/tmp .afl-whatsup-XXXXXXXX` || exit 1
@ -74,6 +82,12 @@ TOTAL_CRASHES=0
TOTAL_PFAV=0
TOTAL_PENDING=0
# Time since last path / crash / hang, formatted as string
FMT_TIME="0 days 0 hours"
FMT_PATH="${RED}none seen yet${NC}"
FMT_CRASH="none seen yet"
FMT_HANG="none seen yet"
if [ "$SUMMARY_ONLY" = "" ]; then
echo "Individual fuzzers"
@ -82,6 +96,34 @@ if [ "$SUMMARY_ONLY" = "" ]; then
fi
fmt_duration()
{
DUR_STRING=
if [ $1 -eq 0 ]; then
return 1
fi
local duration=$((CUR_TIME - $1))
local days=$((duration / 60 / 60 / 24))
local hours=$(((duration / 60 / 60) % 24))
local minutes=$(((duration / 60) % 60))
local seconds=$((duration % 60))
if [ $days -gt 0 ]; then
DUR_STRING="$days days, $hours hours"
elif [ $hours -gt 0 ]; then
DUR_STRING="$hours hours, $minutes minutes"
elif [ $minutes -gt 0 ]; then
DUR_STRING="$minutes minutes, $seconds seconds"
else
DUR_STRING="$seconds seconds"
fi
}
FIRST=true
TOTAL_WCOP=
TOTAL_LAST_PATH=0
for i in `find . -maxdepth 2 -iname fuzzer_stats | sort`; do
sed 's/^command_line.*$/_skip:1/;s/[ ]*:[ ]*/="/;s/$/"/' "$i" >"$TMP"
@ -91,9 +133,15 @@ for i in `find . -maxdepth 2 -iname fuzzer_stats | sort`; do
RUN_DAYS=$((RUN_UNIX / 60 / 60 / 24))
RUN_HRS=$(((RUN_UNIX / 60 / 60) % 24))
test -n "$cycles_wo_finds" && {
test -z "$FIRST" && TOTAL_WCOP="${TOTAL_WCOP}/"
TOTAL_WCOP="${TOTAL_WCOP}${cycles_wo_finds}"
FIRST=
}
if [ "$SUMMARY_ONLY" = "" ]; then
echo ">>> $afl_banner ($RUN_DAYS days, $RUN_HRS hrs) <<<"
echo ">>> $afl_banner ($RUN_DAYS days, $RUN_HRS hrs) fuzzer PID: $fuzzer_pid <<<"
echo
fi
@ -124,8 +172,41 @@ for i in `find . -maxdepth 2 -iname fuzzer_stats | sort`; do
TOTAL_PENDING=$((TOTAL_PENDING + pending_total))
TOTAL_PFAV=$((TOTAL_PFAV + pending_favs))
if [ "$last_path" -gt "$TOTAL_LAST_PATH" ]; then
TOTAL_LAST_PATH=$last_path
fi
if [ "$SUMMARY_ONLY" = "" ]; then
# Warnings in red
TIMEOUT_PERC=$((exec_timeout * 100 / execs_done))
if [ $TIMEOUT_PERC -ge 10 ]; then
echo " ${RED}timeout_ratio $TIMEOUT_PERC%${NC}"
fi
if [ $EXEC_SEC -lt 100 ]; then
echo " ${RED}slow execution, $EXEC_SEC execs/sec${NC}"
fi
fmt_duration $last_path && FMT_PATH=$DUR_STRING
fmt_duration $last_crash && FMT_CRASH=$DUR_STRING
fmt_duration $last_hang && FMT_HANG=$DUR_STRING
FMT_CWOP="not available"
test -n "$cycles_wo_finds" && {
test "$cycles_wo_finds" = 0 && FMT_CWOP="$cycles_wo_finds"
test "$cycles_wo_finds" -gt 10 && FMT_CWOP="${YELLOW}$cycles_wo_finds${NC}"
test "$cycles_wo_finds" -gt 50 && FMT_CWOP="${RED}$cycles_wo_finds${NC}"
}
echo " last_path : $FMT_PATH"
echo " last_crash : $FMT_CRASH"
echo " last_hang : $FMT_HANG"
echo " cycles_wo_finds : $FMT_CWOP"
CPU_USAGE=$(ps aux | grep $fuzzer_pid | grep -v grep | awk '{print $3}')
MEM_USAGE=$(ps aux | grep $fuzzer_pid | grep -v grep | awk '{print $4}')
echo " cpu usage $CPU_USAGE%, memory usage $MEM_USAGE%"
echo " cycle $((cycles_done + 1)), lifetime speed $EXEC_SEC execs/sec, path $cur_path/$paths_total (${PATH_PERC}%)"
if [ "$unique_crashes" = "0" ]; then
@ -140,11 +221,28 @@ for i in `find . -maxdepth 2 -iname fuzzer_stats | sort`; do
done
# Formatting for total time, time since last path, crash, and hang
fmt_duration $((CUR_TIME - TOTAL_TIME)) && FMT_TIME=$DUR_STRING
# Formatting for total execution
FMT_EXECS="0 millions"
EXECS_MILLION=$((TOTAL_EXECS / 1000 / 1000))
EXECS_THOUSAND=$((TOTAL_EXECS / 1000 % 1000))
if [ $EXECS_MILLION -gt 9 ]; then
FMT_EXECS="$EXECS_MILLION millions"
elif [ $EXECS_MILLION -gt 0 ]; then
FMT_EXECS="$EXECS_MILLION millions, $EXECS_THOUSAND thousands"
else
FMT_EXECS="$EXECS_THOUSAND thousands"
fi
rm -f "$TMP"
TOTAL_DAYS=$((TOTAL_TIME / 60 / 60 / 24))
TOTAL_HRS=$(((TOTAL_TIME / 60 / 60) % 24))
test -z "$TOTAL_WCOP" && TOTAL_WCOP="not available"
fmt_duration $TOTAL_LAST_PATH && TOTAL_LAST_PATH=$DUR_STRING
test "$TOTAL_TIME" = "0" && TOTAL_TIME=1
echo "Summary stats"
@ -156,9 +254,12 @@ if [ ! "$DEAD_CNT" = "0" ]; then
echo " Dead or remote : $DEAD_CNT (excluded from stats)"
fi
echo " Total run time : $TOTAL_DAYS days, $TOTAL_HRS hours"
echo " Total execs : $((TOTAL_EXECS / 1000 / 1000)) million"
echo " Total run time : $FMT_TIME"
echo " Total execs : $FMT_EXECS"
echo " Cumulative speed : $TOTAL_EPS execs/sec"
if [ "$ALIVE_CNT" -gt "0" ]; then
echo " Average speed : $((TOTAL_EPS / ALIVE_CNT)) execs/sec"
fi
echo " Pending paths : $TOTAL_PFAV faves, $TOTAL_PENDING total"
if [ "$ALIVE_CNT" -gt "1" ]; then
@ -166,6 +267,8 @@ if [ "$ALIVE_CNT" -gt "1" ]; then
fi
echo " Crashes found : $TOTAL_CRASHES locally unique"
echo "Cycles without finds : $TOTAL_WCOP"
echo " Time without finds : $TOTAL_LAST_PATH"
echo
exit 0

12
custom_mutators/README.md Normal file
View File

@ -0,0 +1,12 @@
# production ready custom mutators
This directory holds ready to use custom mutators.
Just type "make" in the individual subdirectories.
Use with e.g.
`AFL_CUSTOM_MUTATOR_LIBRARY=custom_mutators/radamsa/radamsa-mutator.so afl-fuzz ....`
and add `AFL_CUSTOM_MUTATOR_ONLY=1` if you only want to use the custom mutator.
Multiple custom mutators can be used by separating their paths with `:` in the environment variable.

View File

@ -1,15 +1,15 @@
CUR_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
all: libradamsa.so
all: radamsa-mutator.so
# These can be overriden:
CFLAGS ?= -march=native $(CFLAGS_FLTO)
CFLAGS ?= $(CFLAGS_FLTO)
# These are required: (otherwise radamsa gets very very slooooow)
CFLAGS += -O3 -funroll-loops
libradamsa.so: libradamsa.a
$(CC) $(CFLAGS) -shared libradamsa.a -o libradamsa.so
#libradamsa.so: libradamsa.a
# $(CC) $(CFLAGS) -shared libradamsa.a -o libradamsa.so
libradamsa.a: libradamsa.c radamsa.h
@echo " ***************************************************************"
@ -17,10 +17,14 @@ libradamsa.a: libradamsa.c radamsa.h
@echo " ***************************************************************"
$(CC) -fPIC $(CFLAGS) -I $(CUR_DIR) -o libradamsa.a -c libradamsa.c
radamsa-mutator.so: radamsa-mutator.c libradamsa.a
$(CC) $(CFLAGS) -g -I. -I../../include -shared -fPIC -c radamsa-mutator.c
$(CC) $(CFLAGS) -shared -fPIC -o radamsa-mutator.so radamsa-mutator.o libradamsa.a
test: libradamsa.a libradamsa-test.c
$(CC) $(CFLAGS) -I $(CUR_DIR) -o libradamsa-test libradamsa-test.c libradamsa.a
./libradamsa-test libradamsa-test.c | grep "library test passed"
rm /tmp/libradamsa-*.fuzz
clean:
rm -f libradamsa.a libradamsa.so libradamsa-test
rm -f radamsa-mutator.so libradamsa.a libradamsa-test *.o *~ core

View File

@ -1,4 +1,4 @@
# libradamsa
# custum mutator: libradamsa
Pretranslated radamsa library. This code belongs to the radamsa author.

View File

@ -0,0 +1,342 @@
#ifndef CUSTOM_MUTATOR_HELPERS
#define CUSTOM_MUTATOR_HELPERS
#include "config.h"
#include "types.h"
#include <stdlib.h>
#define INITIAL_GROWTH_SIZE (64)
#define RAND_BELOW(limit) (rand() % (limit))
/* Use in a struct: creates a name_buf and a name_size variable. */
#define BUF_VAR(type, name) \
type * name##_buf; \
size_t name##_size;
/* this filles in `&structptr->something_buf, &structptr->something_size`. */
#define BUF_PARAMS(struct, name) \
(void **)&struct->name##_buf, &struct->name##_size
typedef struct {
} afl_t;
static void surgical_havoc_mutate(u8 *out_buf, s32 begin, s32 end) {
static s8 interesting_8[] = {INTERESTING_8};
static s16 interesting_16[] = {INTERESTING_8, INTERESTING_16};
static s32 interesting_32[] = {INTERESTING_8, INTERESTING_16, INTERESTING_32};
switch (RAND_BELOW(12)) {
case 0: {
/* Flip a single bit somewhere. Spooky! */
s32 bit_idx = ((RAND_BELOW(end - begin) + begin) << 3) + RAND_BELOW(8);
out_buf[bit_idx >> 3] ^= 128 >> (bit_idx & 7);
break;
}
case 1: {
/* Set byte to interesting value. */
u8 val = interesting_8[RAND_BELOW(sizeof(interesting_8))];
out_buf[(RAND_BELOW(end - begin) + begin)] = val;
break;
}
case 2: {
/* Set word to interesting value, randomly choosing endian. */
if (end - begin < 2) break;
s32 byte_idx = (RAND_BELOW(end - begin) + begin);
if (byte_idx >= end - 1) break;
switch (RAND_BELOW(2)) {
case 0:
*(u16 *)(out_buf + byte_idx) =
interesting_16[RAND_BELOW(sizeof(interesting_16) >> 1)];
break;
case 1:
*(u16 *)(out_buf + byte_idx) =
SWAP16(interesting_16[RAND_BELOW(sizeof(interesting_16) >> 1)]);
break;
}
break;
}
case 3: {
/* Set dword to interesting value, randomly choosing endian. */
if (end - begin < 4) break;
s32 byte_idx = (RAND_BELOW(end - begin) + begin);
if (byte_idx >= end - 3) break;
switch (RAND_BELOW(2)) {
case 0:
*(u32 *)(out_buf + byte_idx) =
interesting_32[RAND_BELOW(sizeof(interesting_32) >> 2)];
break;
case 1:
*(u32 *)(out_buf + byte_idx) =
SWAP32(interesting_32[RAND_BELOW(sizeof(interesting_32) >> 2)]);
break;
}
break;
}
case 4: {
/* Set qword to interesting value, randomly choosing endian. */
if (end - begin < 8) break;
s32 byte_idx = (RAND_BELOW(end - begin) + begin);
if (byte_idx >= end - 7) break;
switch (RAND_BELOW(2)) {
case 0:
*(u64 *)(out_buf + byte_idx) =
(s64)interesting_32[RAND_BELOW(sizeof(interesting_32) >> 2)];
break;
case 1:
*(u64 *)(out_buf + byte_idx) = SWAP64(
(s64)interesting_32[RAND_BELOW(sizeof(interesting_32) >> 2)]);
break;
}
break;
}
case 5: {
/* Randomly subtract from byte. */
out_buf[(RAND_BELOW(end - begin) + begin)] -= 1 + RAND_BELOW(ARITH_MAX);
break;
}
case 6: {
/* Randomly add to byte. */
out_buf[(RAND_BELOW(end - begin) + begin)] += 1 + RAND_BELOW(ARITH_MAX);
break;
}
case 7: {
/* Randomly subtract from word, random endian. */
if (end - begin < 2) break;
s32 byte_idx = (RAND_BELOW(end - begin) + begin);
if (byte_idx >= end - 1) break;
if (RAND_BELOW(2)) {
*(u16 *)(out_buf + byte_idx) -= 1 + RAND_BELOW(ARITH_MAX);
} else {
u16 num = 1 + RAND_BELOW(ARITH_MAX);
*(u16 *)(out_buf + byte_idx) =
SWAP16(SWAP16(*(u16 *)(out_buf + byte_idx)) - num);
}
break;
}
case 8: {
/* Randomly add to word, random endian. */
if (end - begin < 2) break;
s32 byte_idx = (RAND_BELOW(end - begin) + begin);
if (byte_idx >= end - 1) break;
if (RAND_BELOW(2)) {
*(u16 *)(out_buf + byte_idx) += 1 + RAND_BELOW(ARITH_MAX);
} else {
u16 num = 1 + RAND_BELOW(ARITH_MAX);
*(u16 *)(out_buf + byte_idx) =
SWAP16(SWAP16(*(u16 *)(out_buf + byte_idx)) + num);
}
break;
}
case 9: {
/* Randomly subtract from dword, random endian. */
if (end - begin < 4) break;
s32 byte_idx = (RAND_BELOW(end - begin) + begin);
if (byte_idx >= end - 3) break;
if (RAND_BELOW(2)) {
*(u32 *)(out_buf + byte_idx) -= 1 + RAND_BELOW(ARITH_MAX);
} else {
u32 num = 1 + RAND_BELOW(ARITH_MAX);
*(u32 *)(out_buf + byte_idx) =
SWAP32(SWAP32(*(u32 *)(out_buf + byte_idx)) - num);
}
break;
}
case 10: {
/* Randomly add to dword, random endian. */
if (end - begin < 4) break;
s32 byte_idx = (RAND_BELOW(end - begin) + begin);
if (byte_idx >= end - 3) break;
if (RAND_BELOW(2)) {
*(u32 *)(out_buf + byte_idx) += 1 + RAND_BELOW(ARITH_MAX);
} else {
u32 num = 1 + RAND_BELOW(ARITH_MAX);
*(u32 *)(out_buf + byte_idx) =
SWAP32(SWAP32(*(u32 *)(out_buf + byte_idx)) + num);
}
break;
}
case 11: {
/* Just set a random byte to a random value. Because,
why not. We use XOR with 1-255 to eliminate the
possibility of a no-op. */
out_buf[(RAND_BELOW(end - begin) + begin)] ^= 1 + RAND_BELOW(255);
break;
}
}
}
/* This function calculates the next power of 2 greater or equal its argument.
@return The rounded up power of 2 (if no overflow) or 0 on overflow.
*/
static inline size_t next_pow2(size_t in) {
if (in == 0 || in > (size_t)-1)
return 0; /* avoid undefined behaviour under-/overflow */
size_t out = in - 1;
out |= out >> 1;
out |= out >> 2;
out |= out >> 4;
out |= out >> 8;
out |= out >> 16;
return out + 1;
}
/* This function makes sure *size is > size_needed after call.
It will realloc *buf otherwise.
*size will grow exponentially as per:
https://blog.mozilla.org/nnethercote/2014/11/04/please-grow-your-buffers-exponentially/
Will return NULL and free *buf if size_needed is <1 or realloc failed.
@return For convenience, this function returns *buf.
*/
static inline void *maybe_grow(void **buf, size_t *size, size_t size_needed) {
/* No need to realloc */
if (likely(size_needed && *size >= size_needed)) return *buf;
/* No initial size was set */
if (size_needed < INITIAL_GROWTH_SIZE) size_needed = INITIAL_GROWTH_SIZE;
/* grow exponentially */
size_t next_size = next_pow2(size_needed);
/* handle overflow */
if (!next_size) { next_size = size_needed; }
/* alloc */
*buf = realloc(*buf, next_size);
*size = *buf ? next_size : 0;
return *buf;
}
/* Swaps buf1 ptr and buf2 ptr, as well as their sizes */
static inline void swap_bufs(void **buf1, size_t *size1, void **buf2,
size_t *size2) {
void * scratch_buf = *buf1;
size_t scratch_size = *size1;
*buf1 = *buf2;
*size1 = *size2;
*buf2 = scratch_buf;
*size2 = scratch_size;
}
#undef INITIAL_GROWTH_SIZE
#endif

View File

@ -0,0 +1,81 @@
#include <radamsa.h>
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
size_t filesize(char *filename) {
struct stat st;
stat(filename, &st);
return st.st_size;
}
#define BUFSIZE 1024 * 1024
void fail(char *why) {
printf("fail: %s\n", why);
exit(1);
}
void write_output(char *data, size_t len, int num) {
char path[32];
int fd;
int wrote;
sprintf(path, "/tmp/libradamsa-%d.fuzz", num);
fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR);
printf("Opened %s -> %d\n", path, fd);
if (fd < 0) { fail("failed to open output file"); }
wrote = write(fd, data, len);
printf("wrote %d of %zu bytes\n", wrote, len);
if (wrote != len) { fail("failed to write all of output at once"); }
close(fd);
printf("Wrote %zu bytes to %s\n", len, path);
}
int main(int nargs, char **argv) {
char * spath = argv[1];
int fd = open(spath, O_RDONLY, 0);
size_t len;
char * input;
char * output;
int seed = 0;
if (fd < 0) { fail("cannot open input file"); }
len = filesize(spath);
input = malloc(len);
output = malloc(BUFSIZE);
if (!input || !output) { fail("failed to allocate buffers\n"); }
radamsa_init();
if (len != read(fd, input, len)) {
fail("failed to read the entire sample at once");
}
while (seed++ < 100) {
size_t n;
n = radamsa((uint8_t *)input, len, (uint8_t *)output, BUFSIZE, seed);
write_output(output, n, seed);
printf("Fuzzed %zu -> %zu bytes\n", len, n);
}
printf("library test passed\n");
free(output);
free(input);
return 0;
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,70 @@
// This simple example just creates random buffer <= 100 filled with 'A'
// needs -I /path/to/AFLplusplus/include
//#include "custom_mutator_helpers.h"
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "radamsa.h"
#include "custom_mutator_helpers.h"
typedef struct my_mutator {
afl_t *afl;
u8 *mutator_buf;
unsigned int seed;
} my_mutator_t;
my_mutator_t *afl_custom_init(afl_t *afl, unsigned int seed) {
srand(seed);
my_mutator_t *data = calloc(1, sizeof(my_mutator_t));
if (!data) {
perror("afl_custom_init alloc");
return NULL;
}
if ((data->mutator_buf = malloc(MAX_FILE)) == NULL) {
perror("mutator_buf alloc");
return NULL;
}
data->afl = afl;
data->seed = seed;
radamsa_init();
return data;
}
size_t afl_custom_fuzz(my_mutator_t *data, uint8_t *buf, size_t buf_size,
u8 **out_buf, uint8_t *add_buf, size_t add_buf_size,
size_t max_size) {
*out_buf = data->mutator_buf;
return radamsa(buf, buf_size, data->mutator_buf, max_size, data->seed++);
}
/**
* Deinitialize everything
*
* @param data The data ptr from afl_custom_init
*/
void afl_custom_deinit(my_mutator_t *data) {
free(data->mutator_buf);
free(data);
}

View File

@ -0,0 +1,10 @@
#include <inttypes.h>
#include <stddef.h>
void radamsa_init(void);
size_t radamsa(uint8_t *ptr, size_t len, uint8_t *target, size_t max,
unsigned int seed);
size_t radamsa_inplace(uint8_t *ptr, size_t len, size_t max, unsigned int seed);

View File

@ -8,6 +8,9 @@ grammar of some of the more verbose data formats or languages. The basic
principle behind the operation of fuzzer dictionaries is outlined in section 10
of the "main" README.md for the project.
These sets were done by Michal Zalewski, various contributors, and imported
from oss-fuzz, go-fuzz and libfuzzer.
Custom dictionaries can be added at will. They should consist of a
reasonably-sized set of rudimentary syntax units that the fuzzer will then try
to clobber together in various ways. Snippets between 2 and 16 bytes are

73
dictionaries/aff.dict Normal file
View File

@ -0,0 +1,73 @@
# https://www.systutorials.com/docs/linux/man/4-hunspell/
# Affix keywords
"AF"
"AM"
"BREAK"
"CHECKCOMPOUNDCASE"
"CHECKCOMPOUNDDUP"
"CHECKCOMPOUNDPATTERN"
"CHECKCOMPOUNDREP"
"CHECKCOMPOUNDTRIPLE"
"COMPLEXPREFIXES"
"COMPOUNDBEGIN"
"COMPOUNDFLAG"
"COMPOUNDFORBIDFLAG"
"COMPOUNDLAST"
"COMPOUNDMIDDLE"
"COMPOUNDMIN"
"COMPOUNDPERMITFLAG"
"COMPOUNDROOT"
"COMPOUNDRULE"
"COMPOUNDSYLLABLE"
"COMPOUNDWORDMAX"
"FLAG"
"FORBIDWARN"
"FORCEUCASE"
"IGNORE"
"KEY"
"LANG"
"MAP"
"MAXCODSUGS"
"MAXDIFF"
"MAXNGRAMSUGS"
"NOSPLITSUGS"
"NOSUGGEST"
"ONLYINCOMPOUND"
"ONLYMAXDIFF"
"PFX"
"PHONE"
"REP"
"SET"
"SFX"
"SIMPLIFIEDTRIPLE"
"SUGWITHDOTS"
"SYLLABLENUM"
"TRY"
"WARN"
"CIRCUMFIX"
"FORBIDDENWORD"
"FULLSTRIP"
"KEEPCASE"
"ICONV"
"OCONV"
"LEMMA_PRESENT"
"NEEDAFFIX"
"PSEUDOROOT"
"SUBSTANDARD"
"WORDCHARS"
"CHECKSHARPS"
# Optional data fields
"ph:"
"st:"
"al:"
"po:"
"ds:"
"is:"
"ts:"
"sp:"
"pa:"
"dp:"
"ip:"
"tp:"

112
dictionaries/ass.dict Normal file
View File

@ -0,0 +1,112 @@
"0x"
"\\1a"
"\\2a"
"\\2c"
"\\3a"
"\\3c"
"\\4a"
"\\4c"
"\\a"
"\\alpha"
"\\an"
"Arial"
"\\b"
"Banner;"
"\\be"
"\\blur"
"\\bord"
"\\c"
"CFF"
"CID Type 1"
"\\clip"
"clip"
"Courier"
"Courier New"
"Default"
"Dialogue:"
"[Events]"
"\\fade"
"\\fax"
"\\fay"
"\\fe"
"\\fn"
"fontname:"
"[Fonts]"
"Format:"
"\\frx"
"\\fry"
"\\frz"
"\\fs"
"\\fsc"
"\\fscx"
"\\fscy"
"\\fsp"
"&h"
"Helvetica"
"\\i"
"\\iclip"
"iclip"
"\\k"
"Kerning:"
"Kerning"
"\\kf"
"\\ko"
"Language:"
"monospace"
"\\move"
"move"
"none"
"\\org"
"org"
"OverrideStyle"
"\\p"
"p"
"\\pbo"
"pbo"
"pc.240m"
"pc.601"
"pc.709"
"pc.fcc"
"PlayResX:"
"PlayResX"
"PlayResY:"
"PlayResY"
"\\pos"
"pos"
"\\q"
"\\r"
"\\s"
"sans-serif"
"ScaledBorderAndShadow:"
"ScaledBorderAndShadow"
"[Script Info]"
"Scroll down;"
"Scroll up;"
"serif"
"\\shad"
"Style:"
"\\t"
"Text"
"Timer:"
"Timer"
"Times"
"Times New Roman"
"tv.240m"
"tv.601"
"tv.709"
"tv.fcc"
"Type 1"
"Type 42"
"\\u"
"UTF-8"
"[V4 Styles]"
"[V4+ Styles]"
"WrapStyle:"
"WrapStyle"
"\\xbord"
"\\xshad"
"\\ybord"
"YCbCr Matrix:"
"YCbCr Matrix"
"yes"
"\\yshad"

33
dictionaries/atom.dict Normal file
View File

@ -0,0 +1,33 @@
# https://validator.w3.org/feed/docs/atom.html
# https://tools.ietf.org/html/rfc4287
"<?xml version='1.0' encoding='utf-8'?>"
"<feed xmlns='http://www.w3.org/2005/Atom'>"
"<alternate>"
"<author>"
"<category>"
"<content>"
"<contributor>"
"<email>"
"<entry>"
"<feed>"
"<first>"
"<generator>"
"<icon>"
"<id>"
"<last>"
"<link>"
"<logo>"
"<modified/>
"<name>"
"<next>"
"<previous>"
"<published>"
"<rights>"
"<source>"
"<subtitle>"
"<summary>"
"<title>"
"<updated>"
"<uri>"

5
dictionaries/av1_dc.dict Normal file
View File

@ -0,0 +1,5 @@
# IVF Signature + version (bytes 0-5)
kw1="DKIF\x00\x00"
# AV1 codec fourCC (bytes 8-11)
kw2="AV01"

152
dictionaries/bash.dict Normal file
View File

@ -0,0 +1,152 @@
# Keywords taken from
# - https://www.gnu.org/software/bash/manual/html_node/Bash-Variables.html
# - https://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html
# - https://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Variables.html
# - https://www.gnu.org/software/bash/manual/html_node/Reserved-Word-Index.html
"!"
"."
":"
"["
"[["
"]]"
"{"
"}"
"BASH"
"BASH_ALIASES"
"BASH_ARGC"
"BASH_ARGV"
"BASH_ARGV0"
"BASH_CMDS"
"BASH_COMMAND"
"BASH_COMPAT"
"BASH_ENV"
"BASH_EXECUTION_STRING"
"BASH_LINENO"
"BASH_LOADABLES_PATH"
"BASHOPTS"
"BASHPID"
"BASH_REMATCH"
"BASH_SOURCE"
"BASH_SUBSHELL"
"BASH_VERSINFO"
"BASH_VERSION"
"BASH_XTRACEFD"
"break"
"case"
"cd"
"CDPATH"
"CHILD_MAX"
"COLUMNS"
"COMP_CWORD"
"COMP_KEY"
"COMP_LINE"
"COMP_POINT"
"COMPREPLY"
"COMP_TYPE"
"COMP_WORDBREAKS"
"COMP_WORDS"
"continue"
"COPROC"
"DIRSTACK"
"do"
"done"
"elif"
"else"
"EMACS"
"ENV"
"EPOCHREALTIME"
"EPOCHSECONDS"
"esac"
"EUID"
"eval"
"exec"
"EXECIGNORE"
"exit"
"export"
"FCEDIT"
"fi"
"FIGNORE"
"for"
"FUNCNAME"
"FUNCNEST"
"function"
"getopts"
"GLOBIGNORE"
"GROUPS"
"hash"
"histchars"
"HISTCMD"
"HISTCONTROL"
"HISTFILE"
"HISTFILESIZE"
"HISTIGNORE"
"HISTSIZE"
"HISTTIMEFORMAT"
"HOME"
"HOSTFILE"
"HOSTNAME"
"HOSTTYPE"
"if"
"IFS"
"IGNOREEOF"
"in"
"INPUTRC"
"INSIDE_EMACS"
"LANG"
"LC_ALL"
"LC_COLLATE"
"LC_CTYPE"
"LC_MESSAGES"
"LC_NUMERIC"
"LC_TIME"
"LINENO"
"LINES"
"MACHTYPE"
"MAIL"
"MAILCHECK"
"MAILPATH"
"MAPFILE"
"OLDPWD"
"OPTARG"
"OPTERR"
"OPTIND"
"OSTYPE"
"PATH"
"PIPESTATUS"
"POSIXLY_CORRECT"
"PPID"
"PROMPT_COMMAND"
"PROMPT_DIRTRIM"
"PS0"
"PS1"
"PS2"
"PS3"
"PS4"
"pwd"
"PWD"
"RANDOM"
"READLINE_LINE"
"READLINE_POINT"
"readonly"
"REPLY"
"return"
"SECONDS"
"select"
"SHELL"
"SHELLOPTS"
"shift"
"SHLVL"
"test"
"then"
"time"
"TIMEFORMAT"
"times"
"TMOUT"
"TMPDIR"
"trap"
"UID"
"umask"
"unset"
"until"
"while"

30
dictionaries/bdf.dict Normal file
View File

@ -0,0 +1,30 @@
# https://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format
# https://www.adobe.com/content/dam/acom/en/devnet/font/pdfs/5005.BDF_Spec.pdf
"STARTFONT"
"COMMENT"
"CONTENTVERSION"
"FONT"
"SIZE"
"FONTBOUNDINGBOX"
"METRICSSET"
"SWIDTH"
"DWIDTH"
"SWIDTH1"
"DWIDTH1"
"VVECTOR"
"STARTPROPERTIES"
"ENDPROPERTIES"
"CHARS"
"STARTCHAR"
"ENCODING"
"BBX"
"BITMAP"
"ENDCHAR"
"ENDFONT"
# misc
"255"
"-1"
"0"
"2.1"

10
dictionaries/bmp.dict Normal file
View File

@ -0,0 +1,10 @@
windows="BM"
os2_bitmap="BA"
os2_icon="CI"
os2_pointer="CP"
os2_struct="IC"
os2_ptr="PT"
windows_color_space="Win "
srgb="sRGB"
link="LINK"
mbed="MBED"

3
dictionaries/bz2.dict Normal file
View File

@ -0,0 +1,3 @@
magic="BZ"
compress_magic="\x31\x41\x59\x26\x53\x59"
eos_magic="\x17\x72\x45\x38\x50\x90"

14
dictionaries/creole.dict Normal file
View File

@ -0,0 +1,14 @@
# http://www.wikicreole.org/wiki/Creole1.0
bold="**"
italic="//"
heading="=="
link1="[[a|b]]"
link2="[[a:b]]"
hr="----"
img=" {{a|b}}"
table_heading="|=a |=b |"
raw="{{{a}}}"
escape="~"
placeholder="<<<x>>>"
line_break="\\\\"

354
dictionaries/css.dict Normal file
View File

@ -0,0 +1,354 @@
# https://en.wikipedia.org/wiki/Cascading_Style_Sheets
# selectors
"::after"
"::before"
"::first-letter"
"::first-line"
"::placeholder"
"::selection"
":active"
":checked"
":default"
":disabled"
":empty"
":enabled"
":first-child"
":first-of-type"
":focus"
":hover"
":in-range"
":indeterminate"
":invalid"
":lang("
":last-child"
":last-of-type"
":link"
":not("
":nth-child("
":nth-last-child("
":nth-last-of-type("
":nth-of-type("
":only-child"
":only-of-type"
":optional"
":out-of-range"
":read-only"
":read-write"
":required"
":root"
":target"
":valid"
":visited"
# units
"ch"
"cm"
"em"
"ex"
"in"
"mm"
"pc"
"pt"
"px"
"rem"
"vh"
"vmax"
"vmin"
"vw"
# functions
"attr("
"calc("
"cubic-bezier("
"hsl("
"hsls("
"linear-gradient("
"radial-gradient("
"repeating-linear-gradient("
"repeating-radial-gradient("
"rgb("
"rgba("
"var("
# prefixes
"-moz"
"-webkit"
# properties
"@charset"
"@font-face"
"@font-feature-values"
"@import"
"@keyframes"
"@media"
"align-items"
"align-self"
"all"
"animation"
"animation-delay"
"animation-direction"
"animation-duration"
"animation-fill-mode"
"animation-iteration-count"
"animation-name"
"animation-play-state"
"animation-timing-function"
"backface-visibility"
"background"
"background-attachment"
"background-blend-mode"
"background-clip"
"background-color"
"background-image"
"background-origin"
"background-position"
"background-repeat"
"background-size"
"border"
"border-bottom"
"border-bottom-color"
"border-bottom-left-radius"
"border-bottom-right-radius"
"border-bottom-style"
"border-bottom-width"
"border-collapse"
"border-color"
"border-image"
"border-image-outset"
"border-image-repeat"
"border-image-slice"
"border-image-source"
"border-image-width"
"border-left"
"border-left-color"
"border-left-style"
"border-left-width"
"border-radius"
"border-right"
"border-right-color"
"border-right-style"
"border-right-width"
"border-spacing"
"border-style"
"border-top"
"border-top-color"
"border-top-left-radius"
"border-top-right-radius"
"border-top-style"
"border-top-width"
"border-width"
"bottom"
"box-decoration-break"
"box-shadow"
"box-sizing"
"break-after"
"break-before"
"break-inside"
"caption-side"
"caret-color"
"clear"
"clip"
"color"
"column-count"
"column-fill"
"column-gap"
"column-rule"
"column-rule-color"
"column-rule-style"
"column-rule-width"
"column-span"
"column-width"
"columns"
"content"
"counter-increment"
"counter-reset"
"cursor"
"direction"
"display"
"empty-cells"
"filter"
"flex"
"flex-basis"
"flex-direction"
"flex-flow"
"flex-grow"
"flex-shrink"
"flex-wrap"
"float"
"font"
"font-family"
"font-feature-settings"
"font-kerning"
"font-language-override"
"font-size"
"font-size-adjust"
"font-stretch"
"font-style"
"font-synthesis"
"font-variant"
"font-variant-alternates"
"font-variant-caps"
"font-variant-east-asian"
"font-variant-ligatures"
"font-variant-numeric"
"font-variant-position"
"font-weight"
"from"
"grid"
"grid-area"
"grid-auto-columns"
"grid-auto-flow"
"grid-auto-rows"
"grid-column"
"grid-column-end"
"grid-column-gap"
"grid-column-start"
"grid-gap"
"grid-row"
"grid-row-end"
"grid-row-gap"
"grid-row-start"
"grid-template"
"grid-template-areas"
"grid-template-columns"
"grid-template-rows"
"hanging-punctuation"
"height"
"hyphens"
"image-rendering"
"isolation"
"justify-content"
"left"
"letter-spacing"
"line-break"
"line-height"
"list-style"
"list-style-image"
"list-style-position"
"list-style-type"
"margin"
"margin-bottom"
"margin-left"
"margin-right"
"margin-top"
"max-height"
"max-width"
"min-height"
"min-width"
"mix-blend-mode"
"object-fit"
"object-position"
"opacity"
"order"
"orphans"
"outline"
"outline-color"
"outline-offset"
"outline-style"
"outline-width"
"overflow"
"overflow-wrap"
"overflow-x"
"overflow-y"
"padding"
"padding-bottom"
"padding-left"
"padding-right"
"padding-top"
"page-break-after"
"page-break-before"
"page-break-inside"
"perspective"
"perspective-origin"
"pointer-events"
"position"
"quotes"
"resize"
"right"
"scroll-behavior"
"tab-size"
"table-layout"
"text-align"
"text-align-last"
"text-combine-upright"
"text-decoration"
"text-decoration-color"
"text-decoration-line"
"text-decoration-style"
"text-indent"
"text-justify"
"text-orientation"
"text-overflow"
"text-shadow"
"text-transform"
"text-underline-position"
"to"
"top"
"transform"
"transform-origin"
"transform-style"
"transition"
"transition-delay"
"transition-duration"
"transition-property"
"transition-timing-function"
"unicode-bidi"
"user-select"
"vertical-align"
"visibility"
"white-space"
"widows"
"width"
"word-break"
"word-spacing"
"word-wrap"
"writing-mode"
"z-index"
# aural - https://www.w3schools.com/cssref/css_ref_aural.asp
"above"
"azimuth"
"below"
"center"
"code"
"continuous"
"cue"
"cue-after"
"cue-before"
"elevation"
"generic-voice"
"left"
"left-side"
"leftwards"
"lower"
"medium"
"mix"
"none"
"once"
"pause"
"pause-after"
"pause-before"
"pitch"
"pitch-range"
"play-during"
"richness"
"right"
"right-side"
"slower"
"speak"
"speak-header"
"speak-numeral"
"speak-punctuation"
"speech-rate"
"stress"
"url"
"voice-family"
"volume"
"x-fast"
"x-high"
"x-loud"
"x-low"
"x-slow"
"x-soft"

6
dictionaries/csv.dict Normal file
View File

@ -0,0 +1,6 @@
"\x00"
"\r\n"
";;"
",,"
"\t;"
"\n;"

35
dictionaries/dds.dict Normal file
View File

@ -0,0 +1,35 @@
# See http://www.mindcontrol.org/~hplus/graphics/dds-info/
magic="\x20\x53\x44\x44"
# Headers
"\x00\x00\x00\x01"
"\x00\x00\x00\x02"
"\x00\x00\x00\x04"
"\x00\x00\x00\x08"
"\x00\x00\x10\x00"
"\x00\x02\x00\x00"
"\x00\x08\x00\x00"
"\x00\x80\x00\x00"
"\x00\x00\x00\x01"
"\x00\x00\x00\x04"
"\x00\x00\x00\x20"
"\x00\x00\x00\x40"
"\x00\x00\x00\x08"
"\x00\x00\x10\x00"
"\x00\x40\x00\x00"
"\x00\x00\x02\x00"
"\x00\x00\x04\x00"
"\x00\x00\x08\x00"
"\x00\x00\x10\x00"
"\x00\x00\x20\x00"
"\x00\x00\x40\x00"
"\x00\x00\x80\x00"
"\x00\x20\x00\x00"
#formats
"1TXD"
"2TXD"
"3TXD"
"4TXD"
"5TXD"

34
dictionaries/djvu.dict Normal file
View File

@ -0,0 +1,34 @@
"ANTa"
"ANTz"
"BG2k"
"BG44"
"BGjp"
"BM44"
"CELX"
"DIRM"
"DJVI"
"DJVM"
"DJVU"
"Djbz"
"FAKE"
"FG2k"
"FG44"
"FGbz"
"FGjp"
"FORM"
"INCL"
"INFO"
"LINK"
"METa"
"METz"
"NAVM"
"NDIR"
"PM44"
"SINF"
"Sjbz"
"Smmr"
"TH44"
"THUM"
"TXTa"
"TXTz"
"WMRM"

688
dictionaries/docommand.dict Normal file
View File

@ -0,0 +1,688 @@
#SELECT WORD FROM INFORMATION_SCHEMA.KEYWORDS;
ACCESSIBLE="ACCESSIBLE"
ACCOUNT="ACCOUNT"
ACTION="ACTION"
ACTIVE="ACTIVE"
ADD="ADD"
ADMIN="ADMIN"
AFTER="AFTER"
AGAINST="AGAINST"
AGGREGATE="AGGREGATE"
ALGORITHM="ALGORITHM"
ALL="ALL"
ALTER="ALTER"
ALWAYS="ALWAYS"
ANALYZE="ANALYZE"
AND="AND"
ANY="ANY"
AS="AS"
ASC="ASC"
ASCII="ASCII"
ASENSITIVE="ASENSITIVE"
AT="AT"
AUTOEXTEND_SIZE="AUTOEXTEND_SIZE"
AUTO_INCREMENT="AUTO_INCREMENT"
AVG="AVG"
AVG_ROW_LENGTH="AVG_ROW_LENGTH"
BACKUP="BACKUP"
BEFORE="BEFORE"
BEGIN="BEGIN"
BETWEEN="BETWEEN"
BIGINT="BIGINT"
BINARY="BINARY"
BINLOG="BINLOG"
BIT="BIT"
BLOB="BLOB"
BLOCK="BLOCK"
BOOL="BOOL"
BOOLEAN="BOOLEAN"
BOTH="BOTH"
BTREE="BTREE"
BUCKETS="BUCKETS"
BY="BY"
BYTE="BYTE"
CACHE="CACHE"
CALL="CALL"
CASCADE="CASCADE"
CASCADED="CASCADED"
CASE="CASE"
CATALOG_NAME="CATALOG_NAME"
CHAIN="CHAIN"
CHANGE="CHANGE"
CHANGED="CHANGED"
CHANNEL="CHANNEL"
CHAR="CHAR"
CHARACTER="CHARACTER"
CHARSET="CHARSET"
CHECK="CHECK"
CHECKSUM="CHECKSUM"
CIPHER="CIPHER"
CLASS_ORIGIN="CLASS_ORIGIN"
CLIENT="CLIENT"
CLONE="CLONE"
CLOSE="CLOSE"
COALESCE="COALESCE"
CODE="CODE"
COLLATE="COLLATE"
COLLATION="COLLATION"
COLUMN="COLUMN"
COLUMNS="COLUMNS"
COLUMN_FORMAT="COLUMN_FORMAT"
COLUMN_NAME="COLUMN_NAME"
COMMENT="COMMENT"
COMMIT="COMMIT"
COMMITTED="COMMITTED"
COMPACT="COMPACT"
COMPLETION="COMPLETION"
COMPONENT="COMPONENT"
COMPRESSED="COMPRESSED"
COMPRESSION="COMPRESSION"
CONCURRENT="CONCURRENT"
CONDITION="CONDITION"
CONNECTION="CONNECTION"
CONSISTENT="CONSISTENT"
CONSTRAINT="CONSTRAINT"
CONSTRAINT_CATALOG="CONSTRAINT_CATALOG"
CONSTRAINT_NAME="CONSTRAINT_NAME"
CONSTRAINT_SCHEMA="CONSTRAINT_SCHEMA"
CONTAINS="CONTAINS"
CONTEXT="CONTEXT"
CONTINUE="CONTINUE"
CONVERT="CONVERT"
CPU="CPU"
CREATE="CREATE"
CROSS="CROSS"
CUBE="CUBE"
CUME_DIST="CUME_DIST"
CURRENT="CURRENT"
CURRENT_DATE="CURRENT_DATE"
CURRENT_TIME="CURRENT_TIME"
CURRENT_TIMESTAMP="CURRENT_TIMESTAMP"
CURRENT_USER="CURRENT_USER"
CURSOR="CURSOR"
CURSOR_NAME="CURSOR_NAME"
DATA="DATA"
DATABASE="DATABASE"
DATABASES="DATABASES"
DATAFILE="DATAFILE"
DATE="DATE"
DATETIME="DATETIME"
DAY="DAY"
DAY_HOUR="DAY_HOUR"
DAY_MICROSECOND="DAY_MICROSECOND"
DAY_MINUTE="DAY_MINUTE"
DAY_SECOND="DAY_SECOND"
DEALLOCATE="DEALLOCATE"
DEC="DEC"
DECIMAL="DECIMAL"
DECLARE="DECLARE"
DEFAULT="DEFAULT"
DEFAULT_AUTH="DEFAULT_AUTH"
DEFINER="DEFINER"
DEFINITION="DEFINITION"
DELAYED="DELAYED"
DELAY_KEY_WRITE="DELAY_KEY_WRITE"
DELETE="DELETE"
DENSE_RANK="DENSE_RANK"
DESC="DESC"
DESCRIBE="DESCRIBE"
DESCRIPTION="DESCRIPTION"
DETERMINISTIC="DETERMINISTIC"
DIAGNOSTICS="DIAGNOSTICS"
DIRECTORY="DIRECTORY"
DISABLE="DISABLE"
DISCARD="DISCARD"
DISK="DISK"
DISTINCT="DISTINCT"
DISTINCTROW="DISTINCTROW"
DIV="DIV"
DO="DO"
DOUBLE="DOUBLE"
DROP="DROP"
DUAL="DUAL"
DUMPFILE="DUMPFILE"
DUPLICATE="DUPLICATE"
DYNAMIC="DYNAMIC"
EACH="EACH"
ELSE="ELSE"
ELSEIF="ELSEIF"
EMPTY="EMPTY"
ENABLE="ENABLE"
ENCLOSED="ENCLOSED"
ENCRYPTION="ENCRYPTION"
END="END"
ENDS="ENDS"
ENFORCED="ENFORCED"
ENGINE="ENGINE"
ENGINES="ENGINES"
ENUM="ENUM"
ERROR="ERROR"
ERRORS="ERRORS"
ESCAPE="ESCAPE"
ESCAPED="ESCAPED"
EVENT="EVENT"
EVENTS="EVENTS"
EVERY="EVERY"
EXCEPT="EXCEPT"
EXCHANGE="EXCHANGE"
EXCLUDE="EXCLUDE"
EXECUTE="EXECUTE"
EXISTS="EXISTS"
EXIT="EXIT"
EXPANSION="EXPANSION"
EXPIRE="EXPIRE"
EXPLAIN="EXPLAIN"
EXPORT="EXPORT"
EXTENDED="EXTENDED"
EXTENT_SIZE="EXTENT_SIZE"
FALSE="FALSE"
FAST="FAST"
FAULTS="FAULTS"
FETCH="FETCH"
FIELDS="FIELDS"
FILE="FILE"
FILE_BLOCK_SIZE="FILE_BLOCK_SIZE"
FILTER="FILTER"
FIRST="FIRST"
FIRST_VALUE="FIRST_VALUE"
FIXED="FIXED"
FLOAT="FLOAT"
FLOAT4="FLOAT4"
FLOAT8="FLOAT8"
FLUSH="FLUSH"
FOLLOWING="FOLLOWING"
FOLLOWS="FOLLOWS"
FOR="FOR"
FORCE="FORCE"
FOREIGN="FOREIGN"
FORMAT="FORMAT"
FOUND="FOUND"
FROM="FROM"
FULL="FULL"
FULLTEXT="FULLTEXT"
FUNCTION="FUNCTION"
GENERAL="GENERAL"
GENERATED="GENERATED"
GEOMCOLLECTION="GEOMCOLLECTION"
GEOMETRY="GEOMETRY"
GEOMETRYCOLLECTION="GEOMETRYCOLLECTION"
GET="GET"
GET_FORMAT="GET_FORMAT"
GET_MASTER_PUBLIC_KEY="GET_MASTER_PUBLIC_KEY"
GLOBAL="GLOBAL"
GRANT="GRANT"
GRANTS="GRANTS"
GROUP="GROUP"
GROUPING="GROUPING"
GROUPS="GROUPS"
GROUP_REPLICATION="GROUP_REPLICATION"
HANDLER="HANDLER"
HASH="HASH"
HAVING="HAVING"
HELP="HELP"
HIGH_PRIORITY="HIGH_PRIORITY"
HISTOGRAM="HISTOGRAM"
HISTORY="HISTORY"
HOST="HOST"
HOSTS="HOSTS"
HOUR="HOUR"
HOUR_MICROSECOND="HOUR_MICROSECOND"
HOUR_MINUTE="HOUR_MINUTE"
HOUR_SECOND="HOUR_SECOND"
IDENTIFIED="IDENTIFIED"
IF="IF"
IGNORE="IGNORE"
IGNORE_SERVER_IDS="IGNORE_SERVER_IDS"
IMPORT="IMPORT"
IN="IN"
INACTIVE="INACTIVE"
INDEX="INDEX"
INDEXES="INDEXES"
INFILE="INFILE"
INITIAL_SIZE="INITIAL_SIZE"
INNER="INNER"
INOUT="INOUT"
INSENSITIVE="INSENSITIVE"
INSERT="INSERT"
INSERT_METHOD="INSERT_METHOD"
INSTALL="INSTALL"
INSTANCE="INSTANCE"
INT="INT"
INT1="INT1"
INT2="INT2"
INT3="INT3"
INT4="INT4"
INT8="INT8"
INTEGER="INTEGER"
INTERVAL="INTERVAL"
INTO="INTO"
INVISIBLE="INVISIBLE"
INVOKER="INVOKER"
IO="IO"
IO_AFTER_GTIDS="IO_AFTER_GTIDS"
IO_BEFORE_GTIDS="IO_BEFORE_GTIDS"
IO_THREAD="IO_THREAD"
IPC="IPC"
IS="IS"
ISOLATION="ISOLATION"
ISSUER="ISSUER"
ITERATE="ITERATE"
JOIN="JOIN"
JSON="JSON"
JSON_TABLE="JSON_TABLE"
KEY="KEY"
KEYS="KEYS"
KEY_BLOCK_SIZE="KEY_BLOCK_SIZE"
KILL="KILL"
LAG="LAG"
LANGUAGE="LANGUAGE"
LAST="LAST"
LAST_VALUE="LAST_VALUE"
LATERAL="LATERAL"
LEAD="LEAD"
LEADING="LEADING"
LEAVE="LEAVE"
LEAVES="LEAVES"
LEFT="LEFT"
LESS="LESS"
LEVEL="LEVEL"
LIKE="LIKE"
LIMIT="LIMIT"
LINEAR="LINEAR"
LINES="LINES"
LINESTRING="LINESTRING"
LIST="LIST"
LOAD="LOAD"
LOCAL="LOCAL"
LOCALTIME="LOCALTIME"
LOCALTIMESTAMP="LOCALTIMESTAMP"
LOCK="LOCK"
LOCKED="LOCKED"
LOCKS="LOCKS"
LOGFILE="LOGFILE"
LOGS="LOGS"
LONG="LONG"
LONGBLOB="LONGBLOB"
LONGTEXT="LONGTEXT"
LOOP="LOOP"
LOW_PRIORITY="LOW_PRIORITY"
MASTER="MASTER"
MASTER_AUTO_POSITION="MASTER_AUTO_POSITION"
MASTER_BIND="MASTER_BIND"
MASTER_CONNECT_RETRY="MASTER_CONNECT_RETRY"
MASTER_DELAY="MASTER_DELAY"
MASTER_HEARTBEAT_PERIOD="MASTER_HEARTBEAT_PERIOD"
MASTER_HOST="MASTER_HOST"
MASTER_LOG_FILE="MASTER_LOG_FILE"
MASTER_LOG_POS="MASTER_LOG_POS"
MASTER_PASSWORD="MASTER_PASSWORD"
MASTER_PORT="MASTER_PORT"
MASTER_PUBLIC_KEY_PATH="MASTER_PUBLIC_KEY_PATH"
MASTER_RETRY_COUNT="MASTER_RETRY_COUNT"
MASTER_SERVER_ID="MASTER_SERVER_ID"
MASTER_SSL="MASTER_SSL"
MASTER_SSL_CA="MASTER_SSL_CA"
MASTER_SSL_CAPATH="MASTER_SSL_CAPATH"
MASTER_SSL_CERT="MASTER_SSL_CERT"
MASTER_SSL_CIPHER="MASTER_SSL_CIPHER"
MASTER_SSL_CRL="MASTER_SSL_CRL"
MASTER_SSL_CRLPATH="MASTER_SSL_CRLPATH"
MASTER_SSL_KEY="MASTER_SSL_KEY"
MASTER_SSL_VERIFY_SERVER_CERT="MASTER_SSL_VERIFY_SERVER_CERT"
MASTER_TLS_VERSION="MASTER_TLS_VERSION"
MASTER_USER="MASTER_USER"
MATCH="MATCH"
MAXVALUE="MAXVALUE"
MAX_CONNECTIONS_PER_HOUR="MAX_CONNECTIONS_PER_HOUR"
MAX_QUERIES_PER_HOUR="MAX_QUERIES_PER_HOUR"
MAX_ROWS="MAX_ROWS"
MAX_SIZE="MAX_SIZE"
MAX_UPDATES_PER_HOUR="MAX_UPDATES_PER_HOUR"
MAX_USER_CONNECTIONS="MAX_USER_CONNECTIONS"
MEDIUM="MEDIUM"
MEDIUMBLOB="MEDIUMBLOB"
MEDIUMINT="MEDIUMINT"
MEDIUMTEXT="MEDIUMTEXT"
MEMORY="MEMORY"
MERGE="MERGE"
MESSAGE_TEXT="MESSAGE_TEXT"
MICROSECOND="MICROSECOND"
MIDDLEINT="MIDDLEINT"
MIGRATE="MIGRATE"
MINUTE="MINUTE"
MINUTE_MICROSECOND="MINUTE_MICROSECOND"
MINUTE_SECOND="MINUTE_SECOND"
MIN_ROWS="MIN_ROWS"
MOD="MOD"
MODE="MODE"
MODIFIES="MODIFIES"
MODIFY="MODIFY"
MONTH="MONTH"
MULTILINESTRING="MULTILINESTRING"
MULTIPOINT="MULTIPOINT"
MULTIPOLYGON="MULTIPOLYGON"
MUTEX="MUTEX"
MYSQL_ERRNO="MYSQL_ERRNO"
NAME="NAME"
NAMES="NAMES"
NATIONAL="NATIONAL"
NATURAL="NATURAL"
NCHAR="NCHAR"
NDB="NDB"
NDBCLUSTER="NDBCLUSTER"
NESTED="NESTED"
NETWORK_NAMESPACE="NETWORK_NAMESPACE"
NEVER="NEVER"
NEW="NEW"
NEXT="NEXT"
NO="NO"
NODEGROUP="NODEGROUP"
NONE="NONE"
NOT="NOT"
NOWAIT="NOWAIT"
NO_WAIT="NO_WAIT"
NO_WRITE_TO_BINLOG="NO_WRITE_TO_BINLOG"
NTH_VALUE="NTH_VALUE"
NTILE="NTILE"
NULL="NULL"
NULLS="NULLS"
NUMBER="NUMBER"
NUMERIC="NUMERIC"
NVARCHAR="NVARCHAR"
OF="OF"
OFFSET="OFFSET"
OJ="OJ"
OLD="OLD"
ON="ON"
ONE="ONE"
ONLY="ONLY"
OPEN="OPEN"
OPTIMIZE="OPTIMIZE"
OPTIMIZER_COSTS="OPTIMIZER_COSTS"
OPTION="OPTION"
OPTIONAL="OPTIONAL"
OPTIONALLY="OPTIONALLY"
OPTIONS="OPTIONS"
OR="OR"
ORDER="ORDER"
ORDINALITY="ORDINALITY"
ORGANIZATION="ORGANIZATION"
OTHERS="OTHERS"
OUT="OUT"
OUTER="OUTER"
OUTFILE="OUTFILE"
OVER="OVER"
OWNER="OWNER"
PACK_KEYS="PACK_KEYS"
PAGE="PAGE"
PARSER="PARSER"
PARTIAL="PARTIAL"
PARTITION="PARTITION"
PARTITIONING="PARTITIONING"
PARTITIONS="PARTITIONS"
PASSWORD="PASSWORD"
PATH="PATH"
PERCENT_RANK="PERCENT_RANK"
PERSIST="PERSIST"
PERSIST_ONLY="PERSIST_ONLY"
PHASE="PHASE"
PLUGIN="PLUGIN"
PLUGINS="PLUGINS"
PLUGIN_DIR="PLUGIN_DIR"
POINT="POINT"
POLYGON="POLYGON"
PORT="PORT"
PRECEDES="PRECEDES"
PRECEDING="PRECEDING"
PRECISION="PRECISION"
PREPARE="PREPARE"
PRESERVE="PRESERVE"
PREV="PREV"
PRIMARY="PRIMARY"
PRIVILEGES="PRIVILEGES"
PROCEDURE="PROCEDURE"
PROCESS="PROCESS"
PROCESSLIST="PROCESSLIST"
PROFILE="PROFILE"
PROFILES="PROFILES"
PROXY="PROXY"
PURGE="PURGE"
QUARTER="QUARTER"
QUERY="QUERY"
QUICK="QUICK"
RANGE="RANGE"
RANK="RANK"
READ="READ"
READS="READS"
READ_ONLY="READ_ONLY"
READ_WRITE="READ_WRITE"
REAL="REAL"
REBUILD="REBUILD"
RECOVER="RECOVER"
RECURSIVE="RECURSIVE"
REDO_BUFFER_SIZE="REDO_BUFFER_SIZE"
REDUNDANT="REDUNDANT"
REFERENCE="REFERENCE"
REFERENCES="REFERENCES"
REGEXP="REGEXP"
RELAY="RELAY"
RELAYLOG="RELAYLOG"
RELAY_LOG_FILE="RELAY_LOG_FILE"
RELAY_LOG_POS="RELAY_LOG_POS"
RELAY_THREAD="RELAY_THREAD"
RELEASE="RELEASE"
RELOAD="RELOAD"
REMOVE="REMOVE"
RENAME="RENAME"
REORGANIZE="REORGANIZE"
REPAIR="REPAIR"
REPEAT="REPEAT"
REPEATABLE="REPEATABLE"
REPLACE="REPLACE"
REPLICATE_DO_DB="REPLICATE_DO_DB"
REPLICATE_DO_TABLE="REPLICATE_DO_TABLE"
REPLICATE_IGNORE_DB="REPLICATE_IGNORE_DB"
REPLICATE_IGNORE_TABLE="REPLICATE_IGNORE_TABLE"
REPLICATE_REWRITE_DB="REPLICATE_REWRITE_DB"
REPLICATE_WILD_DO_TABLE="REPLICATE_WILD_DO_TABLE"
REPLICATE_WILD_IGNORE_TABLE="REPLICATE_WILD_IGNORE_TABLE"
REPLICATION="REPLICATION"
REQUIRE="REQUIRE"
RESET="RESET"
RESIGNAL="RESIGNAL"
RESOURCE="RESOURCE"
RESPECT="RESPECT"
RESTART="RESTART"
RESTORE="RESTORE"
RESTRICT="RESTRICT"
RESUME="RESUME"
RETAIN="RETAIN"
RETURN="RETURN"
RETURNED_SQLSTATE="RETURNED_SQLSTATE"
RETURNS="RETURNS"
REUSE="REUSE"
REVERSE="REVERSE"
REVOKE="REVOKE"
RIGHT="RIGHT"
RLIKE="RLIKE"
ROLE="ROLE"
ROLLBACK="ROLLBACK"
ROLLUP="ROLLUP"
ROTATE="ROTATE"
ROUTINE="ROUTINE"
ROW="ROW"
ROWS="ROWS"
ROW_COUNT="ROW_COUNT"
ROW_FORMAT="ROW_FORMAT"
ROW_NUMBER="ROW_NUMBER"
RTREE="RTREE"
SAVEPOINT="SAVEPOINT"
SCHEDULE="SCHEDULE"
SCHEMA="SCHEMA"
SCHEMAS="SCHEMAS"
SCHEMA_NAME="SCHEMA_NAME"
SECOND="SECOND"
SECONDARY="SECONDARY"
SECONDARY_ENGINE="SECONDARY_ENGINE"
SECONDARY_LOAD="SECONDARY_LOAD"
SECONDARY_UNLOAD="SECONDARY_UNLOAD"
SECOND_MICROSECOND="SECOND_MICROSECOND"
SECURITY="SECURITY"
SELECT="SELECT"
SENSITIVE="SENSITIVE"
SEPARATOR="SEPARATOR"
SERIAL="SERIAL"
SERIALIZABLE="SERIALIZABLE"
SERVER="SERVER"
SESSION="SESSION"
SET="SET"
SHARE="SHARE"
SHOW="SHOW"
SHUTDOWN="SHUTDOWN"
SIGNAL="SIGNAL"
SIGNED="SIGNED"
SIMPLE="SIMPLE"
SKIP="SKIP"
SLAVE="SLAVE"
SLOW="SLOW"
SMALLINT="SMALLINT"
SNAPSHOT="SNAPSHOT"
SOCKET="SOCKET"
SOME="SOME"
SONAME="SONAME"
SOUNDS="SOUNDS"
SOURCE="SOURCE"
SPATIAL="SPATIAL"
SPECIFIC="SPECIFIC"
SQL="SQL"
SQLEXCEPTION="SQLEXCEPTION"
SQLSTATE="SQLSTATE"
SQLWARNING="SQLWARNING"
SQL_AFTER_GTIDS="SQL_AFTER_GTIDS"
SQL_AFTER_MTS_GAPS="SQL_AFTER_MTS_GAPS"
SQL_BEFORE_GTIDS="SQL_BEFORE_GTIDS"
SQL_BIG_RESULT="SQL_BIG_RESULT"
SQL_BUFFER_RESULT="SQL_BUFFER_RESULT"
SQL_CALC_FOUND_ROWS="SQL_CALC_FOUND_ROWS"
SQL_NO_CACHE="SQL_NO_CACHE"
SQL_SMALL_RESULT="SQL_SMALL_RESULT"
SQL_THREAD="SQL_THREAD"
SQL_TSI_DAY="SQL_TSI_DAY"
SQL_TSI_HOUR="SQL_TSI_HOUR"
SQL_TSI_MINUTE="SQL_TSI_MINUTE"
SQL_TSI_MONTH="SQL_TSI_MONTH"
SQL_TSI_QUARTER="SQL_TSI_QUARTER"
SQL_TSI_SECOND="SQL_TSI_SECOND"
SQL_TSI_WEEK="SQL_TSI_WEEK"
SQL_TSI_YEAR="SQL_TSI_YEAR"
SRID="SRID"
SSL="SSL"
STACKED="STACKED"
START="START"
STARTING="STARTING"
STARTS="STARTS"
STATS_AUTO_RECALC="STATS_AUTO_RECALC"
STATS_PERSISTENT="STATS_PERSISTENT"
STATS_SAMPLE_PAGES="STATS_SAMPLE_PAGES"
STATUS="STATUS"
STOP="STOP"
STORAGE="STORAGE"
STORED="STORED"
STRAIGHT_JOIN="STRAIGHT_JOIN"
STRING="STRING"
SUBCLASS_ORIGIN="SUBCLASS_ORIGIN"
SUBJECT="SUBJECT"
SUBPARTITION="SUBPARTITION"
SUBPARTITIONS="SUBPARTITIONS"
SUPER="SUPER"
SUSPEND="SUSPEND"
SWAPS="SWAPS"
SWITCHES="SWITCHES"
SYSTEM="SYSTEM"
TABLE="TABLE"
TABLES="TABLES"
TABLESPACE="TABLESPACE"
TABLE_CHECKSUM="TABLE_CHECKSUM"
TABLE_NAME="TABLE_NAME"
TEMPORARY="TEMPORARY"
TEMPTABLE="TEMPTABLE"
TERMINATED="TERMINATED"
TEXT="TEXT"
THAN="THAN"
THEN="THEN"
THREAD_PRIORITY="THREAD_PRIORITY"
TIES="TIES"
TIME="TIME"
TIMESTAMP="TIMESTAMP"
TIMESTAMPADD="TIMESTAMPADD"
TIMESTAMPDIFF="TIMESTAMPDIFF"
TINYBLOB="TINYBLOB"
TINYINT="TINYINT"
TINYTEXT="TINYTEXT"
TO="TO"
TRAILING="TRAILING"
TRANSACTION="TRANSACTION"
TRIGGER="TRIGGER"
TRIGGERS="TRIGGERS"
TRUE="TRUE"
TRUNCATE="TRUNCATE"
TYPE="TYPE"
TYPES="TYPES"
UNBOUNDED="UNBOUNDED"
UNCOMMITTED="UNCOMMITTED"
UNDEFINED="UNDEFINED"
UNDO="UNDO"
UNDOFILE="UNDOFILE"
UNDO_BUFFER_SIZE="UNDO_BUFFER_SIZE"
UNICODE="UNICODE"
UNINSTALL="UNINSTALL"
UNION="UNION"
UNIQUE="UNIQUE"
UNKNOWN="UNKNOWN"
UNLOCK="UNLOCK"
UNSIGNED="UNSIGNED"
UNTIL="UNTIL"
UPDATE="UPDATE"
UPGRADE="UPGRADE"
USAGE="USAGE"
USE="USE"
USER="USER"
USER_RESOURCES="USER_RESOURCES"
USE_FRM="USE_FRM"
USING="USING"
UTC_DATE="UTC_DATE"
UTC_TIME="UTC_TIME"
UTC_TIMESTAMP="UTC_TIMESTAMP"
VALIDATION="VALIDATION"
VALUE="VALUE"
VALUES="VALUES"
VARBINARY="VARBINARY"
VARCHAR="VARCHAR"
VARCHARACTER="VARCHARACTER"
VARIABLES="VARIABLES"
VARYING="VARYING"
VCPU="VCPU"
VIEW="VIEW"
VIRTUAL="VIRTUAL"
VISIBLE="VISIBLE"
WAIT="WAIT"
WARNINGS="WARNINGS"
WEEK="WEEK"
WEIGHT_STRING="WEIGHT_STRING"
WHEN="WHEN"
WHERE="WHERE"
WHILE="WHILE"
WINDOW="WINDOW"
WITH="WITH"
WITHOUT="WITHOUT"
WORK="WORK"
WRAPPER="WRAPPER"
WRITE="WRITE"
X509="X509"
XA="XA"
XID="XID"
XML="XML"
XOR="XOR"
YEAR="YEAR"
YEAR_MONTH="YEAR_MONTH"
ZEROFILL="ZEROFILL"

222
dictionaries/exif.dict Normal file
View File

@ -0,0 +1,222 @@
"\x00\x01"
"\x00\x02"
"\x00\x10"
"\x00\x90"
"\x00\xa0"
"\x00\xa3"
"\x00\xa5"
"\x00\xfe"
"\x01\x00"
"\x01\x01"
"\x01\x02"
"\x01\x03"
"\x01\x06"
"\x01\x0a"
"\x01\x0d"
"\x01\x0e"
"\x01\x0f"
"\x01\x10"
"\x01\x11"
"\x01\x12"
"\x01\x15"
"\x01\x16"
"\x01\x17"
"\x01\x1a"
"\x01\x1b"
"\x01\x1c"
"\x01\x28"
"\x01\x2d"
"\x01\x31"
"\x01\x32"
"\x01\x3b"
"\x01\x3e"
"\x01\x3f"
"\x01\x4a"
"\x01\x56"
"\x01\x91"
"\x01\x92"
"\x01\xa0"
"\x01\xa3"
"\x01\xa4"
"\x02\x00"
"\x02\x01"
"\x02\x02"
"\x02\x10"
"\x02\x11"
"\x02\x12"
"\x02\x13"
"\x02\x14"
"\x02\x91"
"\x02\x92"
"\x02\xa0"
"\x02\xa3"
"\x02\xa4"
"\x02\xbc"
"\x03\x01"
"\x03\x90"
"\x03\x92"
"\x03\xa0"
"\x03\xa4"
"\x04\x90"
"\x04\x92"
"\x04\xa0"
"\x04\xa4"
"\x05\x92"
"\x05\xa0"
"\x05\xa4"
"\x06\x01"
"\x06\x92"
"\x06\xa4"
"\x07\x92"
"\x07\xa4"
"\x08\x92"
"\x08\xa4"
"\x09\x92"
"\x09\xa4"
"\x0a\x01"
"\x0a\x92"
"\x0a\xa4"
"\x0b\xa2"
"\x0b\xa4"
"\x0c\xa2"
"\x0c\xa4"
"\x0d\x01"
"\x0e\x01"
"\x0e\xa2"
"\x0f\x01"
"\x0f\xa2"
"\x10\x00"
"\x10\x01"
"\x10\x02"
"\x10\xa2"
"\x11\x01"
"\x11\x02"
"\x12\x01"
"\x12\x02"
"\x13\x02"
"\x14\x02"
"\x14\x92"
"\x14\xa2"
"\x15\x01"
"\x15\xa2"
"\x16\x01"
"\x16\x92"
"\x17\x01"
"\x17\xa2"
"\x1a\x01"
"\x1b\x01"
"\x1c\x01"
"\x1c\xea"
"\x20\xa4"
"\x22\x88"
"\x24\x88"
"\x25\x88"
"\x27\x88"
"\x28\x01"
"\x28\x88"
"\x2a\x88"
"\x2d\x01"
"\x31\x01"
"\x32\x01"
"\x3b\x01"
"\x3e\x01"
"\x3f\x01"
"\x49\x86"
"\x4a\x01"
"\x56\x01"
"\x69\x87"
"\x73\x87"
"\x7c\x92"
"\x82\x8d"
"\x82\x8e"
"\x82\x8f"
"\x82\x98"
"\x82\x9a"
"\x82\x9d"
"\x83\xbb"
"\x86\x49"
"\x86\x92"
"\x87\x69"
"\x87\x73"
"\x88\x22"
"\x88\x24"
"\x88\x25"
"\x88\x27"
"\x88\x28"
"\x88\x2a"
"\x8d\x82"
"\x8e\x82"
"\x8f\x82"
"\x90\x00"
"\x90\x03"
"\x90\x04"
"\x90\x92"
"\x91\x01"
"\x91\x02"
"\x91\x92"
"\x92\x01"
"\x92\x02"
"\x92\x03"
"\x92\x04"
"\x92\x05"
"\x92\x06"
"\x92\x07"
"\x92\x08"
"\x92\x09"
"\x92\x0a"
"\x92\x14"
"\x92\x16"
"\x92\x7c"
"\x92\x86"
"\x92\x90"
"\x92\x91"
"\x92\x92"
"\x98\x82"
"\x9a\x82"
"\x9b\x9c"
"\x9c\x9b"
"\x9c\x9c"
"\x9c\x9d"
"\x9c\x9e"
"\x9c\x9f"
"\x9d\x82"
"\x9d\x9c"
"\x9e\x9c"
"\x9f\x9c"
"\xa0\x00"
"\xa0\x01"
"\xa0\x02"
"\xa0\x03"
"\xa0\x04"
"\xa0\x05"
"\xa2\x0b"
"\xa2\x0c"
"\xa2\x0e"
"\xa2\x0f"
"\xa2\x10"
"\xa2\x14"
"\xa2\x15"
"\xa2\x17"
"\xa3\x00"
"\xa3\x01"
"\xa3\x02"
"\xa4\x01"
"\xa4\x02"
"\xa4\x03"
"\xa4\x04"
"\xa4\x05"
"\xa4\x06"
"\xa4\x07"
"\xa4\x08"
"\xa4\x09"
"\xa4\x0a"
"\xa4\x0b"
"\xa4\x0c"
"\xa4\x20"
"\xa5\x00"
"\xa5\xc4"
"\xbb\x83"
"\xbc\x02"
"\xc4\xa5"
"\xea\x1c"
"\xfe\x00"

42
dictionaries/fbs.dict Normal file
View File

@ -0,0 +1,42 @@
# spec: https://google.github.io/flatbuffers/flatbuffers_grammar.html
attribute="attribute"
bool="bool"
byte="byte"
double="double"
enum="enum"
false="false"
file_extension="file_extension"
float32="float32"
float64="float64"
float="float"
include="include"
inf="inf"
infinity="infinity"
int16="int16"
int32="int32"
int64="int64"
int8="int8"
int="int"
long="long"
namespace="namespace"
nan="nan"
root_type="root_type"
root_type="root_type"
rpc_service="rpc_service"
short="short"
string="string"
struct="struct"
table="table"
true="true"
ubyte="ubyte"
uint16="uint16"
uint32="uint32"
uint64="uint64"
uint="uint"
ulong="ulong"
union="union"
ushort="ushort"
separator=":"
eol=";"

124
dictionaries/ftp.dict Normal file
View File

@ -0,0 +1,124 @@
# from https://github.com/antonio-morales/Fuzzing/Dictionaries/FTP/Example.dict.txt
#Parameters
#tls = {0,1,2,3}
#Input1
"user"
"pass"
"syst"
"acct"
"feat"
"noop"
"help"
"stat"
"stru"
"adat"
"site"
#Input2
"mkd"
"cwd"
"pwd"
"cdup"
#Input3
"port"
"list"
"mlst"
"nlst"
"mlsd"
#Input4
"rmd"
#Input5
"stor"
#Input6
"retr"
#Input7
"dele"
#Input8
"pasv"
#Input9
"epsv"
#Input10
"type"
"size"
#Input11
"mode"
#Input12
"rnfr"
"rnto"
#Input13
"appe"
#Input14
"allo"
"quit"
#Input15
"connect"
#Input16
"esta"
"estp"
#Input17
"mdtm"
"opts"
"eprt"
#Input18
"mfmt"
"pret"
"stou"
"rest"
#-------------------------------------
"\x00"
"\x0d\x0a"
"\x0d"
"\x0a"
"-"
"-a "
"-C "
"-d "
"-F "
"-l "
"-r "
"-R "
"-S "
"-t"
" "
"fuzzing"
"test"
"teste"
".txt"
"test.txt"
" UTC"
"C"
"E"
"P"
"S"
"abor"
#ifdef WITH_TLS
"pbsz"
"auth"
"prot"
"ccc"
#ifdef DEBUG
"xdbg"
# ifdef WITH_DIRALIASES
"alias"

373
dictionaries/graphviz.dict Normal file
View File

@ -0,0 +1,373 @@
# Semi-manually curated list of interesting words within a graphviz input file.
# TODO(robhart): Consider expanding from:
# - htmllex.c
# - ?
# Not included exhaustive list of colortables, fontnames, etc. that are unlikely
# to influence core graphviz behaviour.
# Attributes (from http://www.graphviz.org/doc/info/attrs.html)
"Damping"
"K"
"URL"
"_background"
"area"
"arrowhead"
"arrowsize"
"arrowtail"
"bb"
"bgcolor"
"colorList"
"center"
"charset"
"clusterrank"
"color"
"colorList"
"colorscheme"
"comment"
"compound"
"concentrate"
"constraint"
"decorate"
"defaultdist"
"dim"
"dimen"
"dir"
"diredgeconstraints"
"distortion"
"dpi"
"edgeURL"
"edgehref"
"edgetarget"
"edgetooltip"
"epsilon"
"esep"
"fillcolor"
"fixedsize"
"fontcolor"
"fontname"
"fontnames"
"fontpath"
"fontsize"
"forcelabels"
"gradientangle"
"group"
"headURL"
"head_lp"
"headclip"
"headhref"
"headlabel"
"headport"
"headtarget"
"headtooltip"
"height"
"href"
"id"
"image"
"imagepath"
"imagescale"
"inputscale"
"label"
"labelURL"
"label_scheme"
"labelangle"
"labeldistance"
"labelfloat"
"labelfontcolor"
"labelfontname"
"labelfontsize"
"labelhref"
"labeljust"
"labelloc"
"labeltarget"
"labeltooltip"
"landscape"
"layer"
"layerlistsep"
"layers"
"layerselect"
"layersep"
"layout"
"len"
"levels"
"levelsgap"
"lhead"
"lheight"
"lp"
"ltail"
"lwidth"
"margin"
"maxiter"
"mclimit"
"mindist"
"minlen"
"mode"
"model"
"mosek"
"newrank"
"nodesep"
"nojustify"
"normalize"
"notranslate"
"nslimit "
"nslimit1"
"ordering"
"orientation"
"OrientationGraph"
"outputorder"
"overlap"
"overlap_scaling"
"overlap_shrink"
"pack"
"packmode"
"pad"
"point"
"page"
"point"
"pagedir"
"pencolor"
"penwidth"
"peripheries"
"pin"
"pos"
"splineType"
"quadtree"
"quantum"
"rank"
"rankdir"
"ranksep"
"ratio"
"string"
"rects"
"regular"
"remincross"
"RemoveOverlaps"
"repulsiveforce"
"resolution"
"root"
"rotate"
"rotation"
"samehead"
"sametail"
"samplepoints"
"scale"
"searchsize"
"sep"
"setlinewidth"
"shape"
"shapefile"
"showboxes"
"sides"
"size"
"skew"
"smoothing"
"sortv"
"splines"
"string"
"start"
"style"
"stylesheet"
"tailURL"
"tail_lp"
"tailclip"
"tailhref"
"taillabel"
"tailport"
"tailtarget"
"tailtooltip"
"target"
"tooltip"
"truecolor"
"vertices"
"viewport"
"voro_margin"
"weight"
"width"
"xdotversion"
"xlabel"
"xlp"
"z"
# Shapes (from shapes.c)
"box"
"polygon"
"ellipse"
"oval"
"circle"
"point"
"egg"
"triangle"
"none"
"plaintext"
"plain"
"diamond"
"trapezium"
"parallelogram"
"house"
"pentagon"
"hexagon"
"septagon"
"octagon"
"note"
"tab"
"folder"
"box3d"
"component"
"cylinder"
"rect"
"rectangle"
"square"
"doublecircle"
"doubleoctagon"
"tripleoctagon"
"invtriangle"
"invtrapezium"
"invhouse"
"underline"
"Mdiamond"
"Msquare"
"Mcircle"
"DotGraphs"
"promoter"
"cds"
"terminator"
"utr"
"insulator"
"ribosite"
"rnastab"
"proteasesite"
"proteinstab"
"primersite"
"restrictionsite"
"fivepoverhang"
"threepoverhang"
"noverhang"
"assembly"
"signature"
"rpromoter"
"larrow"
"rarrow"
"lpromoter"
"record"
"Mrecord"
"epsf"
"star"
# styles
"bold"
"dashed"
"diagonals"
"dotted"
"filled"
"invis"
"radial"
"rounded"
"solid"
"striped"
"tapered"
"wedged"
# misc -- https://graphviz.gitlab.io/_pages/doc/info/lang.html
"node"
"edge"
"digraph"
"subgraph"
"strict"
"same"
"->"
"--"
" {A B} "
" a -- b "
# Special value for the "shape" attribute
"epsf"
# html
"=\""
"<table"
"<tr"
"<td"
"<font"
"<br"
"<img"
"<i"
"<b"
"<u"
"<o"
"<sub"
"<sup"
"<s"
"<hr"
"<vr"
# html attributes
"align"
"balign"
"bgcolor"
"border"
"cellborder"
"cellpadding"
"cellspacing"
"color"
"colspan"
"columns"
"face"
"fixedsize"
"gradientangle"
"height"
"href"
"id"
"point-size"
"port"
"rows"
"rowspan"
"scale"
"sides"
"src"
"style"
"target"
"title"
"tooltip"
"valign"
"width"
# arrow spaces
"box"
"crow"
"curve"
"icurve"
"diamond"
"dot"
"inv"
"none"
"normal"
"tee"
"vee"
# Examples of parameters
"%f"
"50,50,.5,'2.8 BSD'"
"100,100,2,450,-1"
"none"
"avg_dist"
"graph_dist"
"power_dist"
"rng"
"spring"
"triangle"
"same"
"min"
"source"
"max"
"sink"
"node"
"clust"
"graph"
"array_flags"
"%2x"
"%s"
"%99$p"
"%n"

76
dictionaries/heif.dict Normal file
View File

@ -0,0 +1,76 @@
# https://standards.iso.org/ittf/PubliclyAvailableStandards/c066067_ISO_IEC_23008-12_2017.zip
"altr"
"auxC"
"auxc"
"auxi"
"auxv"
"avcC"
"avci"
"avcs"
"ccst"
"cdsc"
"clap"
"colr"
"dimg"
"dinf"
"dref"
"elst"
"equi"
"free"
"frma"
"ftyp"
"grid"
"grp1"
"hdlr"
"heic"
"heim"
"heis"
"heix"
"hevc"
"hevx"
"hvc1"
"hvc2"
"hvcC"
"idat"
"iden"
"iinf"
"iloc"
"imir"
"infe"
"iovl"
"ipro"
"iprp"
"iref"
"irot"
"ispe"
"jpeg"
"jpgC"
"jpgs"
"lhv1"
"lhvC"
"lsel"
"mdat"
"meta"
"mif1"
"mime"
"mjpg"
"msf1"
"oinf"
"pasp"
"pict"
"pitm"
"pixi"
"refs"
"rloc"
"schi"
"schm"
"sgpd"
"sinf"
"skip"
"stsz"
"subs"
"thmb"
"tkhd"
"tols"
"trak"

View File

@ -0,0 +1,49 @@
asterisk="*"
attr_generic=" a=\"1\""
attr_href=" href=\"1\""
attr_xml_lang=" xml:lang=\"1\""
attr_xmlns=" xmlns=\"1\""
backslash="\\"
backtick="`"
colon=":"
dashes="---"
double_quote="\""
entity_builtin="&lt;"
entity_decimal="&#1;"
entity_external="&a;"
entity_hex="&#x1;"
equals="==="
exclamation="!"
greater_than=">"
hash="#"
hyphen="-"
indent=" "
left_bracket="["
left_paren="("
less_than="<"
plus="+"
right_bracket="]"
right_paren=")"
single_quote="'"
string_any="ANY"
string_brackets="[]"
string_cdata="CDATA"
string_dashes="--"
string_empty_dblquotes="\"\""
string_empty_quotes="''"
string_idrefs="IDREFS"
string_parentheses="()"
string_pcdata="#PCDATA"
tag_cdata="<![CDATA["
tag_close="</a>"
tag_doctype="<!DOCTYPE"
tag_element="<!ELEMENT"
tag_entity="<!ENTITY"
tag_notation="<!NOTATION"
tag_open="<a>"
tag_open_close="<a />"
tag_open_exclamation="<!"
tag_open_q="<?"
tag_sq2_close="]]>"
tag_xml_q="<?xml?>"
underscore="_"

119
dictionaries/http.dict Normal file
View File

@ -0,0 +1,119 @@
# Sources: https://en.wikipedia.org/wiki/List_of_HTTP_header_fields
# misc
"HTTP/1.1"
# verbs
"CONNECT"
"DELETE"
"GET"
"HEAD"
"OPTIONS"
"PATCH"
"POST"
"PUT"
"TRACE"
# Fields
"A-IM"
"Accept"
"Accept-Charset"
"Accept-Datetime"
"Accept-Encoding"
"Accept-Language"
"Accept-Patch"
"Accept-Ranges"
"Access-Control-Allow-Credentials"
"Access-Control-Allow-Headers"
"Access-Control-Allow-Methods"
"Access-Control-Allow-Origin"
"Access-Control-Expose-Headers"
"Access-Control-Max-Age"
"Access-Control-Request-Headers"
"Access-Control-Request-Method"
"Age"
"Allow"
"Alt-Svc"
"Authorization"
"Cache-Control"
"Connection"
"Connection:"
"Content-Disposition"
"Content-Encoding"
"Content-Language"
"Content-Length"
"Content-Location"
"Content-MD5"
"Content-Range"
"Content-Security-Policy"
"Content-Type"
"Cookie"
"DNT"
"Date"
"Delta-Base"
"ETag"
"Expect"
"Expires"
"Forwarded"
"From"
"Front-End-Https"
"HTTP2-Settings"
"Host"
"IM"
"If-Match"
"If-Modified-Since"
"If-None-Match"
"If-Range"
"If-Unmodified-Since"
"Last-Modified"
"Link"
"Location"
"Max-Forwards"
"Origin"
"P3P"
"Pragma"
"Proxy-Authenticate"
"Proxy-Authorization"
"Proxy-Connection"
"Public-Key-Pins"
"Range"
"Referer"
"Refresh"
"Retry-After"
"Save-Data"
"Server"
"Set-Cookie"
"Status"
"Strict-Transport-Security"
"TE"
"Timing-Allow-Origin"
"Tk"
"Trailer"
"Transfer-Encoding"
"Upgrade"
"Upgrade-Insecure-Requests"
"User-Agent"
"Vary"
"Via"
"WWW-Authenticate"
"Warning"
"X-ATT-DeviceId"
"X-Content-Duration"
"X-Content-Security-Policy"
"X-Content-Type-Options"
"X-Correlation-ID"
"X-Csrf-Token"
"X-Forwarded-For"
"X-Forwarded-Host"
"X-Forwarded-Proto"
"X-Frame-Options"
"X-Http-Method-Override"
"X-Powered-By"
"X-Request-ID"
"X-Requested-With"
"X-UA-Compatible"
"X-UIDH"
"X-Wap-Profile"
"X-WebKit-CSP"
"X-XSS-Protection"

591
dictionaries/icc.dict Normal file
View File

@ -0,0 +1,591 @@
# See http://www.color.org/specification/ICC.2-2019.pdf
magic="acsp"
# spectral encoding
"rs"
"ts"
"es"
"bs"
"sm"
"mc"
# Profile classes
"scnr"
"mntr"
"prtr"
"link"
"spac"
"abst"
"nmcl"
"cenc"
"mod "
"mlnk"
"mvis"
# Data colour space field
"XYZ "
"Lab "
"Luv "
"YVbr"
"Yxy "
"LMS "
"RGB "
"GRAY"
"HSV "
"HLS "
"CMYK"
"CMY "
"2CLR"
"3CLR"
"4CLR"
"5CLR"
"6CLR"
"7CLR"
"8CLR"
"9CLR"
"ACLR"
"BCLR"
"CCLR"
"DCLR"
"ECLR"
"FCLR"
"nc"
"YCC"
# primary platforms
"APPL"
"MSFT"
"SGI "
"SUNW"
# Tags
"A2B0"
"A2B1"
"A2B2"
"A2B3"
"A2M0"
"bcp0"
"bcp1"
"bcp2"
"bcp3"
"bsp0"
"bsp1"
"bsp2"
"bsp3"
"bAB0"
"bAB1"
"bAB2"
"bAB3"
"bBA0"
"bBA1"
"bBA2"
"bBA3"
"bBD0"
"bBD1"
"bBD2"
"bBD3"
"bDB0"
"bDB1"
"bDB2"
"bDB3"
"bMB0"
"bMB1"
"bMB2"
"bMB3"
"bMS0"
"bMS1"
"bMS2"
"bMS3"
"B2A0"
"B2A1"
"B2A2"
"B2A3"
"B2D0"
"B2D1"
"B2D2"
"B2D3"
"calt"
"targ"
"cept"
"csnm"
"clro"
"cloo"
"clin"
"clio"
"ciis"
"cprt"
"c2sp"
"cxF "
"dmnd"
"dmdd"
"dAB0"
"dAB2"
"dAB3"
"dAB4"
"dBA0"
"dBA1"
"dBA2"
"dBA3"
"dBD0"
"dBD1"
"dBD2"
"dBD3"
"dDB0"
"dDB1"
"dDB2"
"dDB3"
"d2B0"
"d2B1"
"d2B2"
"d2B3"
"gbd0"
"gbd1"
"gbd2"
"gbd3"
"mdv "
"mcta"
"minf"
"miin"
"wtpt"
"meta"
"M2A0"
"M2B0"
"M2B1"
"M2B2"
"M2B3"
"M2S0"
"M2S1"
"M2S2"
"M2S3"
"nmcl"
"rig0"
"desc"
"psin"
"rfnm"
"rig2"
"svcn"
"swpt"
"s2cp"
"smap"
"tech"
# tag types
"clro"
"curv"
"data"
"dtim"
"dict"
"ehim"
"enim"
"fl16"
"fl32"
"fl64"
"gbd "
"mAB "
"mBA "
"meas"
"mluc"
"mpet"
"para"
"sf32"
"sig "
"smat"
"tary"
"tstr"
"ui32"
"ui64"
"ui08"
"ut16"
"utf8"
"zut8"
"zxml"
# Function operands
"calc"
"func"
"true"
"ndef"
"env "
"in "
"out "
"tget"
"tput"
"tsav"
"curv"
"mtx "
"clut"
"tint"
"elem"
"copy"
"rotl"
"rotr"
"posd"
"flip"
"pop "
"solv"
"tran"
"sum "
"prod"
"min "
"max "
"and "
"or "
"pi "
"+INF"
"-INF"
"NaN "
"add "
"sub "
"mul "
"dic "
"mod "
"pow "
"gama"
"sadd"
"ssub"
"sdiv"
"smul"
"sq "
"sqrt"
"cb "
"cbrt"
"abs "
"neg "
"rond"
"flor"
"ceil"
"trnc"
"sign"
"exp "
"log "
"ln "
"sin "
"cos "
"tan "
"asin"
"acos"
"atan"
"atn2"
"ctop"
"ptoc"
"rnum"
"lt "
"le "
"eq"
"near"
"ge "
"gt "
"vmin"
"vmax"
"vand"
"vor "
"tLab"
"tXYZ"
"if "
"else"
"sel "
"case"
"dflt"
"cvst"
"sngf"
"curf"
"parf"
"smaf"
"clut"
"eclt"
"emtx"
"eobs"
"xclt"
"iemx"
"JtoX"
"matf"
"smet"
"rclt"
"robs"
"tint"
"XtoJ"
"bACS"
"eACS"
"brdf"
"type"
"func"
"nump"
"xfrm"
"BPh0"
"BPh1"
"CT10"
"CT20"
"CT30"
"CT11"
"CT21"
"CT31"
"War0"
"War1"
"La10"
"La20"
"La30"
"La11"
"La21"
"La31"
"name"
"lcnm"
"pcs "
"spec"
"spcb"
"spcg"
"ncol"
"pinf"
# from oss-fuzz, some duplicates
# Fuzzing dictionary for icc
# Extracted from lcms2.h of Little-CMS project 2.8.
magic="acsp"
sig="lcms"
# Base ICC type definitions
"chrm"
"clro"
"clrt"
"crdi"
"curv"
"data"
"dict"
"dtim"
"devs"
"mft2"
"mft1"
"mAB "
"mBA "
"meas"
"mluc"
"mpet"
"ncol"
"ncl2"
"para"
"pseq"
"psid"
"rcs2"
"sf32"
"scrn"
"sig "
"text"
"desc"
"uf32"
"bfd "
"ui16"
"ui32"
"ui64"
"ui08"
"vcgt"
"view"
"XYZ "
# Base ICC tag definitions
"A2B0"
"A2B1"
"A2B2"
"bXYZ"
"bXYZ"
"bTRC"
"B2A0"
"B2A1"
"B2A2"
"calt"
"targ"
"chad"
"chrm"
"clro"
"clrt"
"clot"
"ciis"
"cprt"
"crdi"
"data"
"dtim"
"dmnd"
"dmdd"
"devs"
"D2B0"
"D2B1"
"D2B2"
"D2B3"
"B2D0"
"B2D1"
"B2D2"
"B2D3"
"gamt"
"kTRC"
"gXYZ"
"gXYZ"
"gTRC"
"lumi"
"meas"
"bkpt"
"wtpt"
"ncol"
"ncl2"
"resp"
"rig0"
"pre0"
"pre1"
"pre2"
"desc"
"dscm"
"pseq"
"psid"
"psd0"
"psd1"
"psd2"
"psd3"
"ps2s"
"ps2i"
"rXYZ"
"rXYZ"
"rTRC"
"rig2"
"scrd"
"scrn"
"tech"
"bfd "
"vued"
"view"
"vcgt"
"meta"
"arts"
# ICC Technology tag
"dcam"
"fscn"
"rscn"
"ijet"
"twax"
"epho"
"esta"
"dsub"
"rpho"
"fprn"
"vidm"
"vidc"
"pjtv"
"CRT "
"PMD "
"AMD "
"KPCD"
"imgs"
"grav"
"offs"
"silk"
"flex"
"mpfs"
"mpfr"
"dmpc"
"dcpj"
# ICC Color spaces
"XYZ "
"Lab "
"Luv "
"YCbr"
"Yxy "
"RGB "
"GRAY"
"HSV "
"HLS "
"CMYK"
"CMY "
"MCH1"
"MCH2"
"MCH3"
"MCH4"
"MCH5"
"MCH6"
"MCH7"
"MCH8"
"MCH9"
"MCHA"
"MCHB"
"MCHC"
"MCHD"
"MCHE"
"MCHF"
"nmcl"
"1CLR"
"2CLR"
"3CLR"
"4CLR"
"5CLR"
"6CLR"
"7CLR"
"8CLR"
"9CLR"
"ACLR"
"BCLR"
"CCLR"
"DCLR"
"ECLR"
"FCLR"
"LuvK"
# ICC Profile Class
"scnr"
"mntr"
"prtr"
"link"
"abst"
"spac"
"nmcl"
# ICC Platforms
"APPL"
"MSFT"
"SUNW"
"SGI "
"TGNT"
"*nix"
# Reference gamut
"prmg"
# For cmsSigColorimetricIntentImageStateTag
"scoe"
"sape"
"fpce"
"rhoc"
"rpoc"
# Multi process elements types
"cvst"
"matf"
"clut"
"bACS"
"eACS"
"l2x "
"x2l "
"ncl "
"2 4 "
"4 2 "
"idn "
"d2l "
"l2d "
"d2x "
"x2d "
"clp "
# Types of CurveElements
"parf"
"samf"
"curf"
# Used in ResponseCurveType
"StaA"
"StaE"
"StaI"
"StaT"
"StaM"
"DN "
"DN P"
"DNN "
"DNNP"

View File

@ -0,0 +1,25 @@
# Dict for ICC profiles parsed by skcms.
"mft1"
"mft2"
"mAB "
"rXYZ"
"gXYZ"
"bXYZ"
"rTRC"
"gTRC"
"bTRC"
"kTRC"
"A2B0"
"curv"
"para"
"mluc"
"XYZ "
"Lab "
"RGB "
"CMYK"
"GRAY"
"mntr"
"scnr"
"prtr"
"spac"

43
dictionaries/icns.dict Normal file
View File

@ -0,0 +1,43 @@
# https://en.wikipedia.org/wiki/Apple_Icon_Image_format
"ICN#"
"ICON"
"TOC "
"h8mk"
"ic04"
"ic05"
"ic07"
"ic08"
"ic09"
"ic10"
"ic11"
"ic12"
"ic13"
"ic14"
"ich#"
"ich4"
"ich8"
"icl4"
"icl8"
"icm#"
"icm4"
"icm8"
"icnV"
"icns"
"icp4"
"icp5"
"icp6"
"ics#"
"ics4"
"ics8"
"icsB"
"icsb"
"ih32"
"il32"
"info"
"is32"
"it32"
"l8mk"
"name"
"s8mk"
"t8mk"

688
dictionaries/initfile.dict Normal file
View File

@ -0,0 +1,688 @@
#SELECT WORD FROM INFORMATION_SCHEMA.KEYWORDS;
ACCESSIBLE="ACCESSIBLE"
ACCOUNT="ACCOUNT"
ACTION="ACTION"
ACTIVE="ACTIVE"
ADD="ADD"
ADMIN="ADMIN"
AFTER="AFTER"
AGAINST="AGAINST"
AGGREGATE="AGGREGATE"
ALGORITHM="ALGORITHM"
ALL="ALL"
ALTER="ALTER"
ALWAYS="ALWAYS"
ANALYZE="ANALYZE"
AND="AND"
ANY="ANY"
AS="AS"
ASC="ASC"
ASCII="ASCII"
ASENSITIVE="ASENSITIVE"
AT="AT"
AUTOEXTEND_SIZE="AUTOEXTEND_SIZE"
AUTO_INCREMENT="AUTO_INCREMENT"
AVG="AVG"
AVG_ROW_LENGTH="AVG_ROW_LENGTH"
BACKUP="BACKUP"
BEFORE="BEFORE"
BEGIN="BEGIN"
BETWEEN="BETWEEN"
BIGINT="BIGINT"
BINARY="BINARY"
BINLOG="BINLOG"
BIT="BIT"
BLOB="BLOB"
BLOCK="BLOCK"
BOOL="BOOL"
BOOLEAN="BOOLEAN"
BOTH="BOTH"
BTREE="BTREE"
BUCKETS="BUCKETS"
BY="BY"
BYTE="BYTE"
CACHE="CACHE"
CALL="CALL"
CASCADE="CASCADE"
CASCADED="CASCADED"
CASE="CASE"
CATALOG_NAME="CATALOG_NAME"
CHAIN="CHAIN"
CHANGE="CHANGE"
CHANGED="CHANGED"
CHANNEL="CHANNEL"
CHAR="CHAR"
CHARACTER="CHARACTER"
CHARSET="CHARSET"
CHECK="CHECK"
CHECKSUM="CHECKSUM"
CIPHER="CIPHER"
CLASS_ORIGIN="CLASS_ORIGIN"
CLIENT="CLIENT"
CLONE="CLONE"
CLOSE="CLOSE"
COALESCE="COALESCE"
CODE="CODE"
COLLATE="COLLATE"
COLLATION="COLLATION"
COLUMN="COLUMN"
COLUMNS="COLUMNS"
COLUMN_FORMAT="COLUMN_FORMAT"
COLUMN_NAME="COLUMN_NAME"
COMMENT="COMMENT"
COMMIT="COMMIT"
COMMITTED="COMMITTED"
COMPACT="COMPACT"
COMPLETION="COMPLETION"
COMPONENT="COMPONENT"
COMPRESSED="COMPRESSED"
COMPRESSION="COMPRESSION"
CONCURRENT="CONCURRENT"
CONDITION="CONDITION"
CONNECTION="CONNECTION"
CONSISTENT="CONSISTENT"
CONSTRAINT="CONSTRAINT"
CONSTRAINT_CATALOG="CONSTRAINT_CATALOG"
CONSTRAINT_NAME="CONSTRAINT_NAME"
CONSTRAINT_SCHEMA="CONSTRAINT_SCHEMA"
CONTAINS="CONTAINS"
CONTEXT="CONTEXT"
CONTINUE="CONTINUE"
CONVERT="CONVERT"
CPU="CPU"
CREATE="CREATE"
CROSS="CROSS"
CUBE="CUBE"
CUME_DIST="CUME_DIST"
CURRENT="CURRENT"
CURRENT_DATE="CURRENT_DATE"
CURRENT_TIME="CURRENT_TIME"
CURRENT_TIMESTAMP="CURRENT_TIMESTAMP"
CURRENT_USER="CURRENT_USER"
CURSOR="CURSOR"
CURSOR_NAME="CURSOR_NAME"
DATA="DATA"
DATABASE="DATABASE"
DATABASES="DATABASES"
DATAFILE="DATAFILE"
DATE="DATE"
DATETIME="DATETIME"
DAY="DAY"
DAY_HOUR="DAY_HOUR"
DAY_MICROSECOND="DAY_MICROSECOND"
DAY_MINUTE="DAY_MINUTE"
DAY_SECOND="DAY_SECOND"
DEALLOCATE="DEALLOCATE"
DEC="DEC"
DECIMAL="DECIMAL"
DECLARE="DECLARE"
DEFAULT="DEFAULT"
DEFAULT_AUTH="DEFAULT_AUTH"
DEFINER="DEFINER"
DEFINITION="DEFINITION"
DELAYED="DELAYED"
DELAY_KEY_WRITE="DELAY_KEY_WRITE"
DELETE="DELETE"
DENSE_RANK="DENSE_RANK"
DESC="DESC"
DESCRIBE="DESCRIBE"
DESCRIPTION="DESCRIPTION"
DETERMINISTIC="DETERMINISTIC"
DIAGNOSTICS="DIAGNOSTICS"
DIRECTORY="DIRECTORY"
DISABLE="DISABLE"
DISCARD="DISCARD"
DISK="DISK"
DISTINCT="DISTINCT"
DISTINCTROW="DISTINCTROW"
DIV="DIV"
DO="DO"
DOUBLE="DOUBLE"
DROP="DROP"
DUAL="DUAL"
DUMPFILE="DUMPFILE"
DUPLICATE="DUPLICATE"
DYNAMIC="DYNAMIC"
EACH="EACH"
ELSE="ELSE"
ELSEIF="ELSEIF"
EMPTY="EMPTY"
ENABLE="ENABLE"
ENCLOSED="ENCLOSED"
ENCRYPTION="ENCRYPTION"
END="END"
ENDS="ENDS"
ENFORCED="ENFORCED"
ENGINE="ENGINE"
ENGINES="ENGINES"
ENUM="ENUM"
ERROR="ERROR"
ERRORS="ERRORS"
ESCAPE="ESCAPE"
ESCAPED="ESCAPED"
EVENT="EVENT"
EVENTS="EVENTS"
EVERY="EVERY"
EXCEPT="EXCEPT"
EXCHANGE="EXCHANGE"
EXCLUDE="EXCLUDE"
EXECUTE="EXECUTE"
EXISTS="EXISTS"
EXIT="EXIT"
EXPANSION="EXPANSION"
EXPIRE="EXPIRE"
EXPLAIN="EXPLAIN"
EXPORT="EXPORT"
EXTENDED="EXTENDED"
EXTENT_SIZE="EXTENT_SIZE"
FALSE="FALSE"
FAST="FAST"
FAULTS="FAULTS"
FETCH="FETCH"
FIELDS="FIELDS"
FILE="FILE"
FILE_BLOCK_SIZE="FILE_BLOCK_SIZE"
FILTER="FILTER"
FIRST="FIRST"
FIRST_VALUE="FIRST_VALUE"
FIXED="FIXED"
FLOAT="FLOAT"
FLOAT4="FLOAT4"
FLOAT8="FLOAT8"
FLUSH="FLUSH"
FOLLOWING="FOLLOWING"
FOLLOWS="FOLLOWS"
FOR="FOR"
FORCE="FORCE"
FOREIGN="FOREIGN"
FORMAT="FORMAT"
FOUND="FOUND"
FROM="FROM"
FULL="FULL"
FULLTEXT="FULLTEXT"
FUNCTION="FUNCTION"
GENERAL="GENERAL"
GENERATED="GENERATED"
GEOMCOLLECTION="GEOMCOLLECTION"
GEOMETRY="GEOMETRY"
GEOMETRYCOLLECTION="GEOMETRYCOLLECTION"
GET="GET"
GET_FORMAT="GET_FORMAT"
GET_MASTER_PUBLIC_KEY="GET_MASTER_PUBLIC_KEY"
GLOBAL="GLOBAL"
GRANT="GRANT"
GRANTS="GRANTS"
GROUP="GROUP"
GROUPING="GROUPING"
GROUPS="GROUPS"
GROUP_REPLICATION="GROUP_REPLICATION"
HANDLER="HANDLER"
HASH="HASH"
HAVING="HAVING"
HELP="HELP"
HIGH_PRIORITY="HIGH_PRIORITY"
HISTOGRAM="HISTOGRAM"
HISTORY="HISTORY"
HOST="HOST"
HOSTS="HOSTS"
HOUR="HOUR"
HOUR_MICROSECOND="HOUR_MICROSECOND"
HOUR_MINUTE="HOUR_MINUTE"
HOUR_SECOND="HOUR_SECOND"
IDENTIFIED="IDENTIFIED"
IF="IF"
IGNORE="IGNORE"
IGNORE_SERVER_IDS="IGNORE_SERVER_IDS"
IMPORT="IMPORT"
IN="IN"
INACTIVE="INACTIVE"
INDEX="INDEX"
INDEXES="INDEXES"
INFILE="INFILE"
INITIAL_SIZE="INITIAL_SIZE"
INNER="INNER"
INOUT="INOUT"
INSENSITIVE="INSENSITIVE"
INSERT="INSERT"
INSERT_METHOD="INSERT_METHOD"
INSTALL="INSTALL"
INSTANCE="INSTANCE"
INT="INT"
INT1="INT1"
INT2="INT2"
INT3="INT3"
INT4="INT4"
INT8="INT8"
INTEGER="INTEGER"
INTERVAL="INTERVAL"
INTO="INTO"
INVISIBLE="INVISIBLE"
INVOKER="INVOKER"
IO="IO"
IO_AFTER_GTIDS="IO_AFTER_GTIDS"
IO_BEFORE_GTIDS="IO_BEFORE_GTIDS"
IO_THREAD="IO_THREAD"
IPC="IPC"
IS="IS"
ISOLATION="ISOLATION"
ISSUER="ISSUER"
ITERATE="ITERATE"
JOIN="JOIN"
JSON="JSON"
JSON_TABLE="JSON_TABLE"
KEY="KEY"
KEYS="KEYS"
KEY_BLOCK_SIZE="KEY_BLOCK_SIZE"
KILL="KILL"
LAG="LAG"
LANGUAGE="LANGUAGE"
LAST="LAST"
LAST_VALUE="LAST_VALUE"
LATERAL="LATERAL"
LEAD="LEAD"
LEADING="LEADING"
LEAVE="LEAVE"
LEAVES="LEAVES"
LEFT="LEFT"
LESS="LESS"
LEVEL="LEVEL"
LIKE="LIKE"
LIMIT="LIMIT"
LINEAR="LINEAR"
LINES="LINES"
LINESTRING="LINESTRING"
LIST="LIST"
LOAD="LOAD"
LOCAL="LOCAL"
LOCALTIME="LOCALTIME"
LOCALTIMESTAMP="LOCALTIMESTAMP"
LOCK="LOCK"
LOCKED="LOCKED"
LOCKS="LOCKS"
LOGFILE="LOGFILE"
LOGS="LOGS"
LONG="LONG"
LONGBLOB="LONGBLOB"
LONGTEXT="LONGTEXT"
LOOP="LOOP"
LOW_PRIORITY="LOW_PRIORITY"
MASTER="MASTER"
MASTER_AUTO_POSITION="MASTER_AUTO_POSITION"
MASTER_BIND="MASTER_BIND"
MASTER_CONNECT_RETRY="MASTER_CONNECT_RETRY"
MASTER_DELAY="MASTER_DELAY"
MASTER_HEARTBEAT_PERIOD="MASTER_HEARTBEAT_PERIOD"
MASTER_HOST="MASTER_HOST"
MASTER_LOG_FILE="MASTER_LOG_FILE"
MASTER_LOG_POS="MASTER_LOG_POS"
MASTER_PASSWORD="MASTER_PASSWORD"
MASTER_PORT="MASTER_PORT"
MASTER_PUBLIC_KEY_PATH="MASTER_PUBLIC_KEY_PATH"
MASTER_RETRY_COUNT="MASTER_RETRY_COUNT"
MASTER_SERVER_ID="MASTER_SERVER_ID"
MASTER_SSL="MASTER_SSL"
MASTER_SSL_CA="MASTER_SSL_CA"
MASTER_SSL_CAPATH="MASTER_SSL_CAPATH"
MASTER_SSL_CERT="MASTER_SSL_CERT"
MASTER_SSL_CIPHER="MASTER_SSL_CIPHER"
MASTER_SSL_CRL="MASTER_SSL_CRL"
MASTER_SSL_CRLPATH="MASTER_SSL_CRLPATH"
MASTER_SSL_KEY="MASTER_SSL_KEY"
MASTER_SSL_VERIFY_SERVER_CERT="MASTER_SSL_VERIFY_SERVER_CERT"
MASTER_TLS_VERSION="MASTER_TLS_VERSION"
MASTER_USER="MASTER_USER"
MATCH="MATCH"
MAXVALUE="MAXVALUE"
MAX_CONNECTIONS_PER_HOUR="MAX_CONNECTIONS_PER_HOUR"
MAX_QUERIES_PER_HOUR="MAX_QUERIES_PER_HOUR"
MAX_ROWS="MAX_ROWS"
MAX_SIZE="MAX_SIZE"
MAX_UPDATES_PER_HOUR="MAX_UPDATES_PER_HOUR"
MAX_USER_CONNECTIONS="MAX_USER_CONNECTIONS"
MEDIUM="MEDIUM"
MEDIUMBLOB="MEDIUMBLOB"
MEDIUMINT="MEDIUMINT"
MEDIUMTEXT="MEDIUMTEXT"
MEMORY="MEMORY"
MERGE="MERGE"
MESSAGE_TEXT="MESSAGE_TEXT"
MICROSECOND="MICROSECOND"
MIDDLEINT="MIDDLEINT"
MIGRATE="MIGRATE"
MINUTE="MINUTE"
MINUTE_MICROSECOND="MINUTE_MICROSECOND"
MINUTE_SECOND="MINUTE_SECOND"
MIN_ROWS="MIN_ROWS"
MOD="MOD"
MODE="MODE"
MODIFIES="MODIFIES"
MODIFY="MODIFY"
MONTH="MONTH"
MULTILINESTRING="MULTILINESTRING"
MULTIPOINT="MULTIPOINT"
MULTIPOLYGON="MULTIPOLYGON"
MUTEX="MUTEX"
MYSQL_ERRNO="MYSQL_ERRNO"
NAME="NAME"
NAMES="NAMES"
NATIONAL="NATIONAL"
NATURAL="NATURAL"
NCHAR="NCHAR"
NDB="NDB"
NDBCLUSTER="NDBCLUSTER"
NESTED="NESTED"
NETWORK_NAMESPACE="NETWORK_NAMESPACE"
NEVER="NEVER"
NEW="NEW"
NEXT="NEXT"
NO="NO"
NODEGROUP="NODEGROUP"
NONE="NONE"
NOT="NOT"
NOWAIT="NOWAIT"
NO_WAIT="NO_WAIT"
NO_WRITE_TO_BINLOG="NO_WRITE_TO_BINLOG"
NTH_VALUE="NTH_VALUE"
NTILE="NTILE"
NULL="NULL"
NULLS="NULLS"
NUMBER="NUMBER"
NUMERIC="NUMERIC"
NVARCHAR="NVARCHAR"
OF="OF"
OFFSET="OFFSET"
OJ="OJ"
OLD="OLD"
ON="ON"
ONE="ONE"
ONLY="ONLY"
OPEN="OPEN"
OPTIMIZE="OPTIMIZE"
OPTIMIZER_COSTS="OPTIMIZER_COSTS"
OPTION="OPTION"
OPTIONAL="OPTIONAL"
OPTIONALLY="OPTIONALLY"
OPTIONS="OPTIONS"
OR="OR"
ORDER="ORDER"
ORDINALITY="ORDINALITY"
ORGANIZATION="ORGANIZATION"
OTHERS="OTHERS"
OUT="OUT"
OUTER="OUTER"
OUTFILE="OUTFILE"
OVER="OVER"
OWNER="OWNER"
PACK_KEYS="PACK_KEYS"
PAGE="PAGE"
PARSER="PARSER"
PARTIAL="PARTIAL"
PARTITION="PARTITION"
PARTITIONING="PARTITIONING"
PARTITIONS="PARTITIONS"
PASSWORD="PASSWORD"
PATH="PATH"
PERCENT_RANK="PERCENT_RANK"
PERSIST="PERSIST"
PERSIST_ONLY="PERSIST_ONLY"
PHASE="PHASE"
PLUGIN="PLUGIN"
PLUGINS="PLUGINS"
PLUGIN_DIR="PLUGIN_DIR"
POINT="POINT"
POLYGON="POLYGON"
PORT="PORT"
PRECEDES="PRECEDES"
PRECEDING="PRECEDING"
PRECISION="PRECISION"
PREPARE="PREPARE"
PRESERVE="PRESERVE"
PREV="PREV"
PRIMARY="PRIMARY"
PRIVILEGES="PRIVILEGES"
PROCEDURE="PROCEDURE"
PROCESS="PROCESS"
PROCESSLIST="PROCESSLIST"
PROFILE="PROFILE"
PROFILES="PROFILES"
PROXY="PROXY"
PURGE="PURGE"
QUARTER="QUARTER"
QUERY="QUERY"
QUICK="QUICK"
RANGE="RANGE"
RANK="RANK"
READ="READ"
READS="READS"
READ_ONLY="READ_ONLY"
READ_WRITE="READ_WRITE"
REAL="REAL"
REBUILD="REBUILD"
RECOVER="RECOVER"
RECURSIVE="RECURSIVE"
REDO_BUFFER_SIZE="REDO_BUFFER_SIZE"
REDUNDANT="REDUNDANT"
REFERENCE="REFERENCE"
REFERENCES="REFERENCES"
REGEXP="REGEXP"
RELAY="RELAY"
RELAYLOG="RELAYLOG"
RELAY_LOG_FILE="RELAY_LOG_FILE"
RELAY_LOG_POS="RELAY_LOG_POS"
RELAY_THREAD="RELAY_THREAD"
RELEASE="RELEASE"
RELOAD="RELOAD"
REMOVE="REMOVE"
RENAME="RENAME"
REORGANIZE="REORGANIZE"
REPAIR="REPAIR"
REPEAT="REPEAT"
REPEATABLE="REPEATABLE"
REPLACE="REPLACE"
REPLICATE_DO_DB="REPLICATE_DO_DB"
REPLICATE_DO_TABLE="REPLICATE_DO_TABLE"
REPLICATE_IGNORE_DB="REPLICATE_IGNORE_DB"
REPLICATE_IGNORE_TABLE="REPLICATE_IGNORE_TABLE"
REPLICATE_REWRITE_DB="REPLICATE_REWRITE_DB"
REPLICATE_WILD_DO_TABLE="REPLICATE_WILD_DO_TABLE"
REPLICATE_WILD_IGNORE_TABLE="REPLICATE_WILD_IGNORE_TABLE"
REPLICATION="REPLICATION"
REQUIRE="REQUIRE"
RESET="RESET"
RESIGNAL="RESIGNAL"
RESOURCE="RESOURCE"
RESPECT="RESPECT"
RESTART="RESTART"
RESTORE="RESTORE"
RESTRICT="RESTRICT"
RESUME="RESUME"
RETAIN="RETAIN"
RETURN="RETURN"
RETURNED_SQLSTATE="RETURNED_SQLSTATE"
RETURNS="RETURNS"
REUSE="REUSE"
REVERSE="REVERSE"
REVOKE="REVOKE"
RIGHT="RIGHT"
RLIKE="RLIKE"
ROLE="ROLE"
ROLLBACK="ROLLBACK"
ROLLUP="ROLLUP"
ROTATE="ROTATE"
ROUTINE="ROUTINE"
ROW="ROW"
ROWS="ROWS"
ROW_COUNT="ROW_COUNT"
ROW_FORMAT="ROW_FORMAT"
ROW_NUMBER="ROW_NUMBER"
RTREE="RTREE"
SAVEPOINT="SAVEPOINT"
SCHEDULE="SCHEDULE"
SCHEMA="SCHEMA"
SCHEMAS="SCHEMAS"
SCHEMA_NAME="SCHEMA_NAME"
SECOND="SECOND"
SECONDARY="SECONDARY"
SECONDARY_ENGINE="SECONDARY_ENGINE"
SECONDARY_LOAD="SECONDARY_LOAD"
SECONDARY_UNLOAD="SECONDARY_UNLOAD"
SECOND_MICROSECOND="SECOND_MICROSECOND"
SECURITY="SECURITY"
SELECT="SELECT"
SENSITIVE="SENSITIVE"
SEPARATOR="SEPARATOR"
SERIAL="SERIAL"
SERIALIZABLE="SERIALIZABLE"
SERVER="SERVER"
SESSION="SESSION"
SET="SET"
SHARE="SHARE"
SHOW="SHOW"
SHUTDOWN="SHUTDOWN"
SIGNAL="SIGNAL"
SIGNED="SIGNED"
SIMPLE="SIMPLE"
SKIP="SKIP"
SLAVE="SLAVE"
SLOW="SLOW"
SMALLINT="SMALLINT"
SNAPSHOT="SNAPSHOT"
SOCKET="SOCKET"
SOME="SOME"
SONAME="SONAME"
SOUNDS="SOUNDS"
SOURCE="SOURCE"
SPATIAL="SPATIAL"
SPECIFIC="SPECIFIC"
SQL="SQL"
SQLEXCEPTION="SQLEXCEPTION"
SQLSTATE="SQLSTATE"
SQLWARNING="SQLWARNING"
SQL_AFTER_GTIDS="SQL_AFTER_GTIDS"
SQL_AFTER_MTS_GAPS="SQL_AFTER_MTS_GAPS"
SQL_BEFORE_GTIDS="SQL_BEFORE_GTIDS"
SQL_BIG_RESULT="SQL_BIG_RESULT"
SQL_BUFFER_RESULT="SQL_BUFFER_RESULT"
SQL_CALC_FOUND_ROWS="SQL_CALC_FOUND_ROWS"
SQL_NO_CACHE="SQL_NO_CACHE"
SQL_SMALL_RESULT="SQL_SMALL_RESULT"
SQL_THREAD="SQL_THREAD"
SQL_TSI_DAY="SQL_TSI_DAY"
SQL_TSI_HOUR="SQL_TSI_HOUR"
SQL_TSI_MINUTE="SQL_TSI_MINUTE"
SQL_TSI_MONTH="SQL_TSI_MONTH"
SQL_TSI_QUARTER="SQL_TSI_QUARTER"
SQL_TSI_SECOND="SQL_TSI_SECOND"
SQL_TSI_WEEK="SQL_TSI_WEEK"
SQL_TSI_YEAR="SQL_TSI_YEAR"
SRID="SRID"
SSL="SSL"
STACKED="STACKED"
START="START"
STARTING="STARTING"
STARTS="STARTS"
STATS_AUTO_RECALC="STATS_AUTO_RECALC"
STATS_PERSISTENT="STATS_PERSISTENT"
STATS_SAMPLE_PAGES="STATS_SAMPLE_PAGES"
STATUS="STATUS"
STOP="STOP"
STORAGE="STORAGE"
STORED="STORED"
STRAIGHT_JOIN="STRAIGHT_JOIN"
STRING="STRING"
SUBCLASS_ORIGIN="SUBCLASS_ORIGIN"
SUBJECT="SUBJECT"
SUBPARTITION="SUBPARTITION"
SUBPARTITIONS="SUBPARTITIONS"
SUPER="SUPER"
SUSPEND="SUSPEND"
SWAPS="SWAPS"
SWITCHES="SWITCHES"
SYSTEM="SYSTEM"
TABLE="TABLE"
TABLES="TABLES"
TABLESPACE="TABLESPACE"
TABLE_CHECKSUM="TABLE_CHECKSUM"
TABLE_NAME="TABLE_NAME"
TEMPORARY="TEMPORARY"
TEMPTABLE="TEMPTABLE"
TERMINATED="TERMINATED"
TEXT="TEXT"
THAN="THAN"
THEN="THEN"
THREAD_PRIORITY="THREAD_PRIORITY"
TIES="TIES"
TIME="TIME"
TIMESTAMP="TIMESTAMP"
TIMESTAMPADD="TIMESTAMPADD"
TIMESTAMPDIFF="TIMESTAMPDIFF"
TINYBLOB="TINYBLOB"
TINYINT="TINYINT"
TINYTEXT="TINYTEXT"
TO="TO"
TRAILING="TRAILING"
TRANSACTION="TRANSACTION"
TRIGGER="TRIGGER"
TRIGGERS="TRIGGERS"
TRUE="TRUE"
TRUNCATE="TRUNCATE"
TYPE="TYPE"
TYPES="TYPES"
UNBOUNDED="UNBOUNDED"
UNCOMMITTED="UNCOMMITTED"
UNDEFINED="UNDEFINED"
UNDO="UNDO"
UNDOFILE="UNDOFILE"
UNDO_BUFFER_SIZE="UNDO_BUFFER_SIZE"
UNICODE="UNICODE"
UNINSTALL="UNINSTALL"
UNION="UNION"
UNIQUE="UNIQUE"
UNKNOWN="UNKNOWN"
UNLOCK="UNLOCK"
UNSIGNED="UNSIGNED"
UNTIL="UNTIL"
UPDATE="UPDATE"
UPGRADE="UPGRADE"
USAGE="USAGE"
USE="USE"
USER="USER"
USER_RESOURCES="USER_RESOURCES"
USE_FRM="USE_FRM"
USING="USING"
UTC_DATE="UTC_DATE"
UTC_TIME="UTC_TIME"
UTC_TIMESTAMP="UTC_TIMESTAMP"
VALIDATION="VALIDATION"
VALUE="VALUE"
VALUES="VALUES"
VARBINARY="VARBINARY"
VARCHAR="VARCHAR"
VARCHARACTER="VARCHARACTER"
VARIABLES="VARIABLES"
VARYING="VARYING"
VCPU="VCPU"
VIEW="VIEW"
VIRTUAL="VIRTUAL"
VISIBLE="VISIBLE"
WAIT="WAIT"
WARNINGS="WARNINGS"
WEEK="WEEK"
WEIGHT_STRING="WEIGHT_STRING"
WHEN="WHEN"
WHERE="WHERE"
WHILE="WHILE"
WINDOW="WINDOW"
WITH="WITH"
WITHOUT="WITHOUT"
WORK="WORK"
WRAPPER="WRAPPER"
WRITE="WRITE"
X509="X509"
XA="XA"
XID="XID"
XML="XML"
XOR="XOR"
YEAR="YEAR"
YEAR_MONTH="YEAR_MONTH"
ZEROFILL="ZEROFILL"

98
dictionaries/jbig2.dict Normal file
View File

@ -0,0 +1,98 @@
# AFL dictionary for jbig2 images
# by Sebastian Rasmussen <sebras@gmail.com>
id_string="\x97\x4a\x42\x32\x0d\x0a\x1a\x0a"
# segments
noretain_allpages_symbol_dictionary="\x00"
noretain_allpages_intermediate_text_region="\x04"
noretain_allpages_immediate_text_region="\x06"
noretain_allpages_immediate_lossless_text_region="\x07"
noretain_allpages_pattern_dictionary="\x10"
noretain_allpages_intermediate_halftone_region="\x14"
noretain_allpages_immediate_halftone_region="\x16"
noretain_allpages_immediate_lossless_halftone_region="\x17"
noretain_allpages_intermediate_generic_region="\x24"
noretain_allpages_immediate_generic_region="\x26"
noretain_allpages_immediate_lossless_generic_region="\x27"
noretain_allpages_intermediate_generic_refinement_region="\x28"
noretain_allpages_immediate_generic_refinement_region="\x2a"
noretain_allpages_immediate_lossless_generic_refinement_region="\x2b"
noretain_allpages_page_information="\x30"
noretain_allpages_end_of_page="\x31"
noretain_allpages_end_of_stripe="\x32"
noretain_allpages_end_of_file="\x33"
noretain_allpages_profiles="\x34"
noretain_allpages_tables="\x35"
noretain_allpages_color_palette="\x36"
noretain_allpages_extension="\x3e"
noretain_specificpage_symbol_dictionary="\x40"
noretain_specificpage_intermediate_text_region="\x44"
noretain_specificpage_immediate_text_region="\x46"
noretain_specificpage_immediate_lossless_text_region="\x47"
noretain_specificpage_pattern_dictionary="\x50"
noretain_specificpage_intermediate_halftone_region="\x54"
noretain_specificpage_immediate_halftone_region="\x56"
noretain_specificpage_immediate_lossless_halftone_region="\x57"
noretain_specificpage_intermediate_generic_region="\x64"
noretain_specificpage_immediate_generic_region="\x66"
noretain_specificpage_immediate_lossless_generic_region="\x67"
noretain_specificpage_intermediate_generic_refinement_region="\x68"
noretain_specificpage_immediate_generic_refinement_region="\x6a"
noretain_specificpage_immediate_lossless_generic_refinement_regio6="\x6b"
noretain_specificpage_page_information="\x70"
noretain_specificpage_end_of_page="\x71"
noretain_specificpage_end_of_stripe="\x72"
noretain_specificpage_end_of_file="\x73"
noretain_specificpage_profiles="\x74"
noretain_specificpage_tables="\x75"
noretain_specificpage_color_palette="\x76"
noretain_specificpage_extension="\x7e"
retain_allpages_symbol_dictionary="\x80"
retain_allpages_intermediate_text_region="\x84"
retain_allpages_immediate_text_region="\x86"
retain_allpages_immediate_lossless_text_region="\x87"
retain_allpages_pattern_dictionary="\x90"
retain_allpages_intermediate_halftone_region="\x94"
retain_allpages_immediate_halftone_region="\x96"
retain_allpages_immediate_lossless_halftone_region="\x97"
retain_allpages_intermediate_generic_region="\xa4"
retain_allpages_immediate_generic_region="\xa6"
retain_allpages_immediate_lossless_generic_region="\xa7"
retain_allpages_intermediate_generic_refinement_region="\xa8"
retain_allpages_immediate_generic_refinement_region="\xaa"
retain_allpages_immediate_lossless_generic_refinement_regio6="\xab"
retain_allpages_page_information="\xb0"
retain_allpages_end_of_page="\xb1"
retain_allpages_end_of_stripe="\xb2"
retain_allpages_end_of_file="\xb3"
retain_allpages_profiles="\xb4"
retain_allpages_tables="\xb5"
retain_allpages_color_palette="\xb6"
retain_allpages_extension="\xbe"
retain_specificpage_symbol_dictionary="\xc0"
retain_specificpage_intermediate_text_region="\xc4"
retain_specificpage_immediate_text_region="\xc6"
retain_specificpage_immediate_lossless_text_region="\xc7"
retain_specificpage_pattern_dictionary="\xd0"
retain_specificpage_intermediate_halftone_region="\xd4"
retain_specificpage_immediate_halftone_region="\xd6"
retain_specificpage_immediate_lossless_halftone_region="\xd7"
retain_specificpage_intermediate_generic_region="\xe4"
retain_specificpage_immediate_generic_region="\xe6"
retain_specificpage_immediate_lossless_generic_region="\xe7"
retain_specificpage_intermediate_generic_refinement_region="\xe8"
retain_specificpage_immediate_generic_refinement_region="\xea"
retain_specificpage_immediate_lossless_generic_refinement_regio6="\xeb"
retain_specificpage_page_information="\xf0"
retain_specificpage_end_of_page="\xf1"
retain_specificpage_end_of_stripe="\xf2"
retain_specificpage_end_of_file="\xf3"
retain_specificpage_profiles="\xf4"
retain_specificpage_tables="\xf5"
retain_specificpage_color_palette="\xf6"
retain_specificpage_extension="\xfe"

View File

@ -0,0 +1,22 @@
type="jP "
ftyp="ftyp"
subtype1="jp2 "
subtype2="jp20"
subtype3="jpm "
subtype4="jpx "
subtype5="jp2h"
subtype6="jpxb"
subtype7="mjp2"
subtype8="mj2s"
subtype9="jp2c"
subtype10="jpch"
subtype11="jplh"
codestream="\xFF\x4F\xFF\x51"
signature="\x0d\x0a\x87\x0a"
tag1="hdr"
tag2="colr"
tag3="url"
tag4="req"
tag5="res"
tag6="page"
tag7="obj"

View File

@ -50,3 +50,12 @@
"\"\":0"
"//"
"/**/"
"$ref"
"type"
"coordinates"
"@context"
"@id"
","
":"

60
dictionaries/jsonnet.dict Normal file
View File

@ -0,0 +1,60 @@
# https://jsonnet.org/ref/spec.html
# Keywords
"assert"
"else"
"error"
"false"
"for"
"function"
"if"
"import"
"importstr"
"in"
"local"
"null"
"self"
"super"
"tailstrict"
"then"
"true"
"super"
"local"
# operators
"|||"
"@\""
"@'"
"!="
"=="
"[::]"
"+:::"
# functions
"std.acos("
"std.asin("
"std.atan("
"std.ceil("
"std.char("
"std.codepoint("
"std.cos("
"std.equals("
"std.exp("
"std.exponent("
"std.floor("
"std.join("
"std.length("
"std.log("
"std.makeArray("
"std.mantissa("
"std.mod"
"std.modulo("
"std.objectFiledsEx("
"std.objectsHasEx("
"std.pow("
"std.primitiveEquals("
"std.sin("
"std.slice("
"std.sqrt("
"std.tan("
"std.type("

View File

@ -0,0 +1,28 @@
strike="~~"
list="2."
link="[a]("
link_without_ref="[a]["
image="![b]("
bold="**"
separator="---"
title="# "
fence="```"
link_bottom="[a]:"
link_inline="<http://"
link_bottom_title="[1]: http://a.com"
checklist="- [x"
toc="[TOC]"
highlight_rst=":::python"
# GFM - https://github.github.com/gfm/
"| ---"
leaf1="***"
leaf2="___"
code_hl="```html"
task="- [ ]"
# Extended syntax: https://www.markdownguide.org/extended-syntax/
footnote="[^a]"
title_id="#a {#b}"

20
dictionaries/math.dict Normal file
View File

@ -0,0 +1,20 @@
"{"
"}"
","
"["
"]"
","
":"
"e"
"e+"
"e-"
"E"
"E+"
"E-"
"\""
"\\"
" "
"null"
"1"
"1.234"
"3e4"

279
dictionaries/mathml.dict Normal file
View File

@ -0,0 +1,279 @@
#https://developer.mozilla.org/en-US/docs/Web/MathML/Element
# https://www.w3.org/TR/MathML3/chapter4.html
header="<math xmlns='http://www.w3.org/1998/Math/MathML'>"
# presentation mathml
"<annotation-xml>"
"<annotation>"
"<apply>"
"<maction>"
"<maligngroup>"
"<malignmark>"
"<math>"
"<menclose>"
"<merror>"
"<mfenced> "
"<mfrac>"
"<mglyph>"
"<mi>"
"<mlabeledtr>"
"<mlongdiv>"
"<mmultiscripts>"
"<mn>"
"<mo>"
"<mover>"
"<mpadded>"
"<mphantom>"
"<mprescripts>"
"<mroot>"
"<mrow>"
"<ms>"
"<mscarries>"
"<mscarry>"
"<msgroup>"
"<msline>"
"<mspace>"
"<msqrt>"
"<msrow>"
"<mstack>"
"<mstyle>"
"<msub>"
"<msubsup>"
"<msup>"
"<mtable>"
"<mtd>"
"<mtext>"
"<mtr>"
"<munder>"
"<munderover>"
"<none>"
"<semantics>"
# attributes
"accent"
"accentunder"
"actiontype"
"align"
"alignmentscope"
"altimg"
"altimg-height"
"alttext"
"bevelled"
"charalign"
"close"
"columnalign"
"columnlines"
"columnspacing"
"columnspan"
"columnwidth"
"crossout"
"decimalpoint"
"denomalign"
"depth"
"dir"
"display"
"displaystyle"
"edge"
"equalcolumns"
"equalrows"
"fence"
"form"
"frame"
"framespacing"
"groupalign"
"height"
"href"
"id"
"indentalign"
"indentalignfirst"
"indentalignlast"
"indentshift"
"indentshiftfirst"
"indentshiftlast"
"indenttarget"
"infixlinebreakstyle"
"largeop"
"length"
"linebreak"
"linebreakmultchar"
"linebreakstyle"
"lineleading"
"linethickness"
"location"
"longdivstyle"
"lquote"
"lspace"
"mathbackground"
"mathcolor"
"mathsize"
"mathvariant"
"maxsize"
"minlabelspacing"
"minsize"
"movablelimits"
"notation"
"numalign"
"open"
"overflow"
"position"
"rowalign"
"rowlines"
"rowspacing"
"rowspan"
"rquote"
"rspace"
"scriptlevel"
"scriptminsize"
"scriptsizemultiplier"
"selection"
"separator"
"separators"
"shift"
"side"
"src"
"stackalign"
"stretchy"
"subscriptshift"
"supscriptshift"
"symmetric"
"voffset"
"width"
"xlink:href"
"xmlns"
# content mathml
"<interval>"
"<inverse>"
"<lambda>"
"<compose/>"
"<ident/>"
"<domain/>"
"<codomain/>"
"<image/>"
"<piecewise>"
"<piece>"
"<otherwise>"
"<quotient/>"
"<factorial/>"
"<divide/>"
"<max/>"
"<min/>"
"<minus/>"
"<plus/>"
"<power/>"
"<rem/>"
"<times/>"
"<root/>"
"<gcd/>"
"<and/>"
"<or/>"
"<xor/>"
"<not/>"
"<implies/>"
"<forall/>"
"<exists/>"
"<abs/>"
"<conjugate/>"
"<arg/>"
"<real/>"
"<imaginary/>"
"<lcm/>"
"<floor/>"
"<ceiling/>"
"Relations"
"<eq/>"
"<neq/>"
"<gt/>"
"<lt/>"
"<geq/>"
"<leq/>"
"<equivalent/>"
"<approx/>"
"<factorof/>"
"<int/>"
"<diff/>"
"<partialdiff/>"
"<divergence/>"
"<grad/>"
"<curl/>"
"<laplacian/>"
"<set>"
"<list>"
"<union/>"
"<intersect/>"
"<in/>"
"<notin/>"
"<subset/>"
"<prsubset/>"
"<notsubset/>"
"<notprsubset/>"
"<setdiff/>"
"<card/>"
"<cartesianproduct/>"
"<sum/>"
"<product/>"
"<limit/>"
"<tendsto/>"
"<sin/>"
"<cos/>"
"<tan/>"
"<sec/>"
"<csc/>"
"<cot/>"
"<arcsin/>"
"<arccos/>"
"<arctan/>"
"<arcsec/>"
"<arccsc/>"
"<arccot/>"
"<sinh/>"
"<cosh/>"
"<tanh/>"
"<sech/>"
"<csch/>"
"<coth/>"
"<arcsinh/>"
"<arccosh/>"
"<arctanh/>"
"<arcsech/>"
"<arccsch/>"
"<arccoth/>"
"<exp/>"
"<ln/>"
"<log/>"
"<logbase>"
"<mean/>"
"<sdev/>"
"<variance/>"
"<median/>"
"<mode/>"
"<moment/>"
"<momentabout>"
"<vector>"
"<matrix>"
"<matrixrow>"
"<determinant/>"
"<transpose/>"
"<selector/>"
"<vectorproduct/>"
"<scalarproduct/>"
"<outerproduct/>"
"<integers/>"
"<reals/>"
"<rationals/>"
"<naturalnumbers/>"
"<complexes/>"
"<primes/>"
"<exponentiale/>"
"<imaginaryi/>"
"<notanumber/>"
"<true/>"
"<false/>"
"<emptyset/>"
"<pi/>"
"<eulergamma/>"
"<infinity/>"
"<declare>"
"<reln>"
"<fn>"

82
dictionaries/mp4.dict Normal file
View File

@ -0,0 +1,82 @@
# Taken from https://chromium.googlesource.com/chromium/src/+/master/media/test/mp4.dict
FOURCC_NULL="\x00\x00\x00\x00"
FOURCC_AC3 ="\x61\x63\x2d\x33"
FOURCC_EAC3="\x65\x63\x2d\x33"
FOURCC_AVC1="\x61\x76\x63\x31"
FOURCC_AVC3="\x61\x76\x63\x33"
FOURCC_AVCC="\x61\x76\x63\x43"
FOURCC_BLOC="\x62\x6C\x6F\x63"
FOURCC_CENC="\x63\x65\x6e\x63"
FOURCC_CO64="\x63\x6f\x36\x34"
FOURCC_CTTS="\x63\x74\x74\x73"
FOURCC_DINF="\x64\x69\x6e\x66"
FOURCC_EDTS="\x65\x64\x74\x73"
FOURCC_EMSG="\x65\x6d\x73\x67"
FOURCC_ELST="\x65\x6c\x73\x74"
FOURCC_ENCA="\x65\x6e\x63\x61"
FOURCC_ENCV="\x65\x6e\x63\x76"
FOURCC_ESDS="\x65\x73\x64\x73"
FOURCC_FREE="\x66\x72\x65\x65"
FOURCC_FRMA="\x66\x72\x6d\x61"
FOURCC_FTYP="\x66\x74\x79\x70"
FOURCC_HDLR="\x68\x64\x6c\x72"
FOURCC_HINT="\x68\x69\x6e\x74"
FOURCC_HVC1="\x68\x76\x63\x31"
FOURCC_HVCC="\x68\x76\x63\x43"
FOURCC_IODS="\x69\x6f\x64\x73"
FOURCC_MDAT="\x6d\x64\x61\x74"
FOURCC_MDHD="\x6d\x64\x68\x64"
FOURCC_MDIA="\x6d\x64\x69\x61"
FOURCC_MECO="\x6d\x65\x63\x6f"
FOURCC_MEHD="\x6d\x65\x68\x64"
FOURCC_META="\x6d\x65\x74\x61"
FOURCC_MFHD="\x6d\x66\x68\x64"
FOURCC_MFRA="\x6d\x66\x72\x61"
FOURCC_MINF="\x6d\x69\x6e\x66"
FOURCC_MOOF="\x6d\x6f\x6f\x66"
FOURCC_MOOV="\x6d\x6f\x6f\x76"
FOURCC_MP4A="\x6d\x70\x34\x61"
FOURCC_MP4V="\x6d\x70\x34\x76"
FOURCC_MVEX="\x6d\x76\x65\x78"
FOURCC_MVHD="\x6d\x76\x68\x64"
FOURCC_PASP="\x70\x61\x73\x70"
FOURCC_PDIN="\x70\x64\x69\x6e"
FOURCC_PRFT="\x70\x72\x66\x74"
FOURCC_PSSH="\x70\x73\x73\x68"
FOURCC_SAIO="\x73\x61\x69\x6f"
FOURCC_SAIZ="\x73\x61\x69\x7a"
FOURCC_SBGP="\x73\x62\x67\x70"
FOURCC_SCHI="\x73\x63\x68\x69"
FOURCC_SCHM="\x73\x63\x68\x6d"
FOURCC_SDTP="\x73\x64\x74\x70"
FOURCC_SEIG="\x73\x65\x69\x67"
FOURCC_SENC="\x73\x65\x6e\x63"
FOURCC_SGPD="\x73\x67\x70\x64"
FOURCC_SIDX="\x73\x69\x64\x78"
FOURCC_SINF="\x73\x69\x6e\x66"
FOURCC_SKIP="\x73\x6b\x69\x70"
FOURCC_SMHD="\x73\x6d\x68\x64"
FOURCC_SOUN="\x73\x6f\x75\x6e"
FOURCC_SSIX="\x73\x73\x69\x78"
FOURCC_STBL="\x73\x74\x62\x6c"
FOURCC_STCO="\x73\x74\x63\x6f"
FOURCC_STSC="\x73\x74\x73\x63"
FOURCC_STSD="\x73\x74\x73\x64"
FOURCC_STSS="\x73\x74\x73\x73"
FOURCC_STSZ="\x73\x74\x73\x7a"
FOURCC_STTS="\x73\x74\x74\x73"
FOURCC_STYP="\x73\x74\x79\x70"
FOURCC_TENC="\x74\x65\x6e\x63"
FOURCC_TFDT="\x74\x66\x64\x74"
FOURCC_TFHD="\x74\x66\x68\x64"
FOURCC_TKHD="\x74\x6b\x68\x64"
FOURCC_TRAF="\x74\x72\x61\x66"
FOURCC_TRAK="\x74\x72\x61\x6b"
FOURCC_TREX="\x74\x72\x65\x78"
FOURCC_TRUN="\x74\x72\x75\x6e"
FOURCC_UDTA="\x75\x64\x74\x61"
FOURCC_UUID="\x75\x75\x69\x64"
FOURCC_VIDE="\x76\x69\x64\x65"
FOURCC_VMHD="\x76\x6d\x68\x64"
FOURCC_WIDE="\x77\x69\x64\x65"

1
dictionaries/mysqld.dict Normal file
View File

@ -0,0 +1 @@
user="root"

36
dictionaries/ogg.dict Normal file
View File

@ -0,0 +1,36 @@
# https://xiph.org/vorbis/doc/Vorbis_I_spec.html
header="OggS"
# Codecs
"BBCD\x00"
"\x7fFLAC"
"\x80theora"
"\x01vorbis"
"CELT "
"CMML\x00\x00\x00\x00"
"\x8bJNG\x0d\x0a\x1a\x0a"
"\x80kate\x00\x00\x00"
"OggMIDI\x00"
"\x8aMNG\x0d\x0a\x1a\x0a"
"PCM "
"\x89PNG\x0d\x0a\x1a\x0a"
"Speex "
"YUV4MPEG"
# Metadata
"TITLE="
"VERSION="
"ALBUM="
"TRACKNUMBER="
"ARTIST="
"PERFORMER="
"COPYRIGHT="
"LICENSE="
"ORGANIZATION="
"DESCRIPTION="
"GENRE="
"DATE="
"LOCATION="
"CONTACT="
"ISRC="

57
dictionaries/openexr.dict Normal file
View File

@ -0,0 +1,57 @@
# specs:
# - https://www.openexr.com/documentation/openexrfilelayout.pdf
# - https://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/OpenEXR.html
lay="_lay"
ver="_ver"
adoptNeutral="AdoptNeutral"
altitude="altitude"
aperture="aperture"
box2f="box2f"
box2i="box2i"
capdate="capDate"
channels="channels"
chlist="chlist"
chromaticities="chromaticities"
comments="comments"
compression="compression"
dataWindow="dataWindow"
displayWindow="displayWindow"
double="double"
envmap="envmap"
expTime="expTime"
focus="focus"
framesPerSecond="framesPerSecond"
float="float"
header="\x76\x2F\x31\x01"
int="int"
isoSpeed="isoSpeed"
keycode="keyCode"
latitude="latitude"
lineOrder="lineOrder"
longitude="longitude"
lookModTransform="lookModTransform"
m33f="m33f"
m44f="m44f"
owner="owner"
pixelAspectRatio="pixelAspectRatio"
preview="preview"
renderingTransform="renderingTransform"
rational="rational"
screenWindowCenter="screenWindowCenter"
screenWindowWidth="screenWindowWidth"
string="string"
stringvector="stringvector"
tiles="tiles"
tiledesc="tileDesc"
timecode="timeCode"
utcOffset="itcOffset"
whiteLuminance="whiteLuminance"
worldToCamera="worldToCamera"
worldToNDC="worldToNDC"
v2f="v2f"
v2i="v2i"
v3f="v3f"
v3i="v3i"
wrapmodes="wrapmodes"
xDensity="xDensity"

963
dictionaries/otf.dict Normal file
View File

@ -0,0 +1,963 @@
# https://docs.microsoft.com/en-us/typography/opentype/spec/
# magic
"ttcf"
# feature tags
"aalt"
"abvf"
"abvm"
"abvs"
"afrc"
"akhn"
"blwf"
"blwm"
"blws"
"calt"
"case"
"ccmp"
"cfar"
"cjct"
"clig"
"cpct"
"cpsp"
"cswh"
"curs"
"cv01"
"c2pc"
"c2sc"
"dist"
"dlig"
"dnom"
"dtls"
"expt"
"falt"
"fin2"
"fin3"
"fina"
"flac"
"frac"
"fwid"
"half"
"haln"
"halt"
"hist"
"hkna"
"hlig"
"hngl"
"hojo"
"hwid"
"init"
"isol"
"ital"
"jalt"
"jp78"
"jp83"
"jp90"
"jp04"
"kern"
"lfbd"
"liga"
"ljmo"
"lnum"
"locl"
"ltra"
"ltrm"
"mark"
"med2"
"medi"
"mgrk"
"mkmk"
"mset"
"nalt"
"nlck"
"nukt"
"numr"
"onum"
"opbd"
"ordn"
"ornm"
"palt"
"pcap"
"pkna"
"pnum"
"pref"
"pres"
"pstf"
"psts"
"pwid"
"qwid"
"rand"
"rclt"
"rlig"
"rkrf"
"rphf"
"rtbd"
"rtla"
"rtlm"
"ruby"
"rvrn"
"salt"
"sinf"
"size"
"smcp"
"smpl"
"ss01"
"ssty"
"stch"
"subs"
"sups"
"swsh"
"titl"
"tjmo"
"tnam"
"tnum"
"trad"
"twid"
"unic"
"valt"
"vatu"
"vert"
"vhal"
"vjmo"
"vkna"
"vkrn"
"vpal"
"vrt2"
"vrtr"
"zero"
# baseline tags
"hang"
"icfb"
"ictf"
"ideo"
"idtp"
"math"
"romn"
# axis tags
"ital"
"opsz"
"slnt"
"wdth"
"wght"
# tables
"BASE"
"CBDT"
"CBLC"
"CFF"
"CFF2"
"COLR"
"CPAL"
"DSIG"
"EBDT"
"EBLC"
"EBSC"
"GDEF"
"GPOS"
"GSUB"
"HVAR"
"JSTF"
"LTSH"
"MATH"
"MERG"
"MVAR"
"OTTO"
"PCLT"
"STAT"
"SVG"
"VDMX"
"VORG"
"VVAR"
"avar"
"cmap"
"cmat"
"cvar"
"cvt"
"fpgm"
"fvar"
"gasp"
"glyf"
"gvar"
"hdmx"
"head"
"hhea"
"hmtx"
"kern"
"loca"
"maxp"
"meta"
"name"
"post"
"prep"
"sbix"
"vhea"
"vmtx"
# script tags
"adlm"
"ahom"
"hluw"
"arab"
"armn"
"avst"
"bali"
"bamu"
"bass"
"batk"
"beng"
"bng2"
"bhks"
"bopo"
"brah"
"brai"
"bugi"
"buhd"
"byzm"
"cans"
"cari"
"aghb"
"cakm"
"cham"
"cher"
"hani"
"copt"
"cprt"
"cyrl"
"dsrt"
"deva"
"dev2"
"dogr"
"dupl"
"egyp"
"elba"
"ethi"
"geor"
"glag"
"goth"
"gran"
"grek"
"gujr"
"gjr2"
"gong"
"guru"
"gur2"
"hang"
"jamo"
"rohg"
"hano"
"hatr"
"hebr"
"kana"
"armi"
"phli"
"prti"
"java"
"kthi"
"knda"
"knd2"
"kana"
"kali"
"khar"
"khmr"
"khoj"
"sind"
"lao "
"latn"
"lepc"
"limb"
"lina"
"linb"
"lisu"
"lyci"
"lydi"
"mahj"
"maka"
"mlym"
"mlm2"
"mand"
"mani"
"marc"
"gonm"
"math"
"medf"
"mtei"
"mend"
"merc"
"mero"
"plrd"
"modi"
"mong"
"mroo"
"mult"
"musc"
"mymr"
"mym2"
"nbat"
"newa"
"talu"
"nko "
"nshu"
"orya"
"ory2"
"ogam"
"olck"
"ital"
"hung"
"narb"
"perm"
"xpeo"
"sogo"
"sarb"
"orkh"
"osge"
"osma"
"hmng"
"palm"
"pauc"
"phag"
"phnx"
"phlp"
"rjng"
"runr"
"samr"
"saur"
"shrd"
"shaw"
"sidd"
"sgnw"
"sinh"
"sogd"
"sora"
"soyo"
"xsux"
"sund"
"sylo"
"syrc"
"tglg"
"tagb"
"tale"
"lana"
"tavt"
"takr"
"taml"
"tml2"
"tang"
"telu"
"tel2"
"thaa"
"thai"
"tibt"
"tfng"
"tirh"
"ugar"
"vai "
"wara"
"yi "
"zanb"
# language tags
"ABA "
"ABK "
"ACH "
"ACR "
"ADY "
"AFK "
"AFR "
"AGW "
"AIO "
"AKA "
"ALS "
"ALT "
"AMH "
"ANG "
"APPH"
"ARA "
"ARG "
"ARI "
"ARK "
"ASM "
"AST "
"ATH "
"AVR "
"AWA "
"AYM "
"AZB "
"AZE "
"BAD "
"BAD0"
"BAG "
"BAL "
"BAN "
"BAR "
"BAU "
"BBC "
"BBR "
"BCH "
"BCR "
"BDY "
"BEL "
"BEM "
"BEN "
"BGC "
"BGQ "
"BGR "
"BHI "
"BHO "
"BIK "
"BIL "
"BIS "
"BJJ "
"BKF "
"BLI "
"BLK "
"BLN "
"BLT "
"BMB "
"BML "
"BOS "
"BPY "
"BRE "
"BRH "
"BRI "
"BRM "
"BRX "
"BSH "
"BSK "
"BTI "
"BTS "
"BUG "
"BYV "
"CAK "
"CAT "
"CBK "
"CCHN"
"CEB "
"CHE "
"CHG "
"CHH "
"CHI "
"CHK "
"CHK0"
"CHO "
"CHP "
"CHR "
"CHA "
"CHU "
"CHY "
"CGG "
"CJA "
"CJM "
"CMR "
"COP "
"COR "
"COS "
"CPP "
"CRE "
"CRR "
"CRT "
"CSB "
"CSL "
"CSY "
"CTG "
"CUK "
"DAN "
"DAR "
"DAX "
"DCR "
"DEU "
"DGO "
"DGR "
"DHG "
"DHV "
"DIQ "
"DIV "
"DJR "
"DJR0"
"DNG "
"DNJ "
"DNK "
"DRI "
"DUJ "
"DUN "
"DZN "
"EBI "
"ECR "
"EDO "
"EFI "
"ELL "
"EMK "
"ENG "
"ERZ "
"ESP "
"ESU "
"ETI "
"EUQ "
"EVK "
"EVN "
"EWE "
"FAN "
"FAN0"
"FAR "
"FAT "
"FIN "
"FJI "
"FLE "
"FMP "
"FNE "
"FON "
"FOS "
"FRA "
"FRC "
"FRI "
"FRL "
"FRP "
"FTA "
"FUL "
"FUV "
"GAD "
"GAE "
"GAG "
"GAL "
"GAR "
"GAW "
"GEZ "
"GIH "
"GIL "
"GIL0"
"GKP "
"GLK "
"GMZ "
"GNN "
"GOG "
"GON "
"GRN "
"GRO "
"GUA "
"GUC "
"GUF "
"GUJ "
"GUZ "
"HAI "
"HAL "
"HAR "
"HAU "
"HAW "
"HAY "
"HAZ "
"HBN "
"HER "
"HIL "
"HIN "
"HMA "
"HMN "
"HMO "
"HND "
"HO "
"HRI "
"HRV "
"HUN "
"HYE "
"HYE0"
"IBA "
"IBB "
"IBO "
"IJO "
"IDO "
"ILE "
"ILO "
"INA "
"IND "
"ING "
"INU "
"IPK "
"IPPH"
"IRT "
"ISL "
"ISM "
"ITA "
"IWR "
"JAM "
"JAN "
"JAV "
"JBO "
"JCT "
"JII "
"JUD "
"JUL "
"KAB "
"KAB0"
"KAC "
"KAL "
"KAN "
"KAR "
"KAT "
"KAZ "
"KDE "
"KEA "
"KEB "
"KEK "
"KGE "
"KHA "
"KHK "
"KHM "
"KHS "
"KHT "
"KHV "
"KHW "
"KIK "
"KIR "
"KIS "
"KIU "
"KJD "
"KJP "
"KJZ "
"KKN "
"KLM "
"KMB "
"KMN "
"KMO "
"KMS "
"KMZ "
"KNR "
"KOD "
"KOH "
"KOK "
"KON "
"KOM "
"KON0"
"KOP "
"KOR "
"KOS "
"KOZ "
"KPL "
"KRI "
"KRK "
"KRL "
"KRM "
"KRN "
"KRT "
"KSH "
"KSH0"
"KSI "
"KSM "
"KSW "
"KUA "
"KUI "
"KUL "
"KUM "
"KUR "
"KUU "
"KUY "
"KYK "
"KYU "
"LAD "
"LAH "
"LAK "
"LAM "
"LAO "
"LAT "
"LAZ "
"LCR "
"LDK "
"LEZ "
"LIJ "
"LIM "
"LIN "
"LIS "
"LJP "
"LKI "
"LMA "
"LMB "
"LMO "
"LMW "
"LOM "
"LRC "
"LSB "
"LSM "
"LTH "
"LTZ "
"LUA "
"LUB "
"LUG "
"LUH "
"LUO "
"LVI "
"MAD "
"MAG "
"MAH "
"MAJ "
"MAK "
"MAL "
"MAM "
"MAN "
"MAP "
"MAR "
"MAW "
"MBN "
"MBO "
"MCH "
"MCR "
"MDE "
"MDR "
"MEN "
"MER "
"MFA "
"MFE "
"MIN "
"MIZ "
"MKD "
"MKR "
"MKW "
"MLE "
"MLG "
"MLN "
"MLR "
"MLY "
"MND "
"MNG "
"MNI "
"MNK "
"MNX "
"MOH "
"MOK "
"MOL "
"MON "
"MOR "
"MOS "
"MRI "
"MTH "
"MTS "
"MUN "
"MUS "
"MWL "
"MWW "
"MYN "
"MZN "
"NAG "
"NAH "
"NAN "
"NAP "
"NAS "
"NAU "
"NAV "
"NCR "
"NDB "
"NDC "
"NDG "
"NDS "
"NEP "
"NEW "
"NGA "
"NGR "
"NHC "
"NIS "
"NIU "
"NKL "
"NKO "
"NLD "
"NOE "
"NOG "
"NOR "
"NOV "
"NSM "
"NSO "
"NTA "
"NTO "
"NYM "
"NYN "
"NZA "
"OCI "
"OCR "
"OJB "
"ORI "
"ORO "
"OSS "
"PAA "
"PAG "
"PAL "
"PAM "
"PAN "
"PAP "
"PAP0"
"PAS "
"PAU "
"PCC "
"PCD "
"PDC "
"PGR "
"PHK "
"PIH "
"PIL "
"PLG "
"PLK "
"PMS "
"PNB "
"POH "
"PON "
"PRO "
"PTG "
"PWO "
"QIN "
"QUC "
"QUH "
"QUZ "
"QVI "
"QWH "
"RAJ "
"RAR "
"RBU "
"RCR "
"REJ "
"RIA "
"RIF "
"RIT "
"RKW "
"RMS "
"RMY "
"ROM "
"ROY "
"RSY "
"RTM "
"RUA "
"RUN "
"RUP "
"RUS "
"SAD "
"SAN "
"SAS "
"SAT "
"SAY "
"SCN "
"SCO "
"SEK "
"SEL "
"SGA "
"SGO "
"SGS "
"SHI "
"SHN "
"SIB "
"SID "
"SIG "
"SKS "
"SKY "
"SCS "
"SLA "
"SLV "
"SML "
"SMO "
"SNA "
"SNA0"
"SND "
"SNH "
"SNK "
"SOG "
"SOP "
"SOT "
"SQI "
"SRB "
"SRD "
"SRK "
"SRR "
"SSL "
"SSM "
"STQ "
"SUK "
"SUN "
"SUR "
"SVA "
"SVE "
"SWA "
"SWK "
"SWZ "
"SXT "
"SXU "
"SYL "
"SYR "
"SYRE"
"SYRJ"
"SYRN"
"SZL "
"TAB "
"TAJ "
"TAM "
"TAT "
"TCR "
"TDD "
"TEL "
"TET "
"TGL "
"TGN "
"TGR "
"TGY "
"THA "
"THT "
"TIB "
"TIV "
"TKM "
"TMH "
"TMN "
"TNA "
"TNE "
"TNG "
"TOD "
"TOD0"
"TPI "
"TRK "
"TSG "
"TSJ "
"TUA "
"TUM "
"TUL "
"TUV "
"TVL "
"TWI "
"TYZ "
"TZM "
"TZO "
"UDM "
"UKR "
"UMB "
"URD "
"USB "
"UYG "
"UZB "
"VEC "
"VEN "
"VIT "
"VOL "
"VRO "
"WA "
"WAG "
"WAR "
"WCR "
"WEL "
"WLN "
"WLF "
"WTM "
"XBD "
"XKF "
"XHS "
"XJB "
"XOG "
"XPE "
"YAK "
"YAO "
"YAP "
"YBA "
"YCR "
"YIC "
"YIM "
"ZEA "
"ZGH "
"ZHA "
"ZHH "
"ZHP "
"ZHS "
"ZHT "
"ZND "
"ZUL "
"ZZA "

29
dictionaries/pbm.dict Normal file
View File

@ -0,0 +1,29 @@
# https://en.wikipedia.org/wiki/Netpbm_format
header1="P1"
header2="P2"
header3="P3"
header4="P4"
header5="P5"
header6="P6"
zero="0"
one="1"
comment="#"
max="255"
overflow="256"
# PAM - https://en.wikipedia.org/wiki/Netpbm#PAM_graphics_format
header7="P7"
width="WIDTH"
height="HEIGHT"
depth="DEPTH"
maxval="MAXVAL"
enhdr="ENDHDR"
tupltype="TUPLTYPE"
tupltype1="RGB_ALPHA"
tupltype2="RGB"
typltype3="BLACKANDWHITE"
typltype4="BLACKANDWHITE_ALPHA"
typltype5="GRAYSCALE"
typltype6="GRAYSCALE_ALPHA"
maxval_num="65535"
maxval_overlfow="65536"

10
dictionaries/pcap.dict Normal file
View File

@ -0,0 +1,10 @@
# https://www.tcpdump.org/pcap/pcap.html
# Headers
"\xa1\xb2\xc3\xd4"
"\xd4\xc3\xb2\xa1"
"\xa1\xb2\x3c\x4d"
"\x4d\x3c\xb2\xa1"
current_version="\x02\x00\x04\x00"

16
dictionaries/perl.dict Normal file
View File

@ -0,0 +1,16 @@
#
# AFL dictionary for fuzzing Perl
# --------------------------------
#
# Created by @RandomDhiraj
#
"<:crlf"
"fwrite()"
"fread()"
":raw:utf8"
":raw:eol(LF)"
"Perl_invert()"
":raw:eol(CRLF)"
"Perl_PerlIO_eof()"

249
dictionaries/proj4.dict Normal file
View File

@ -0,0 +1,249 @@
# Dictionary developed for proj4 standard_fuzzer.cpp
# valid proj types (lines 1,2), generated from seeds
# $ grep -hoe 'proj=\w*' -o seeds/* | sort -u
"+proj=aea"
"+proj=aeqd"
"+proj=calcofi"
"+proj=cass"
"+proj=cea"
"+proj=comill"
"+proj=eck4"
"+proj=eck6"
"+proj=eqc"
"+proj=eqdc"
"+proj=etmerc"
"+proj=gall"
"+proj=geocent"
"+proj=geos"
"+proj=gstmerc"
"+proj=hammer"
"+proj=healpix"
"+proj=helmert"
"+proj=kav5"
"+proj=krovak"
"+proj=labrd"
"+proj=laea"
"+proj=latlong"
"+proj=lcc"
"+proj=longlat"
"+proj=merc"
"+proj=mill"
"+proj=misrsom"
"+proj=moll"
"+proj=natearth"
"+proj=natearth2"
"+proj=nzmg"
"+proj=ob_tran"
"+proj=omerc"
"+proj=omerc"
"+proj=patterson"
"+proj=pconic"
"+proj=poly"
"+proj=qsc"
"+proj=rhealpix"
"+proj=robin"
"+proj=sch"
"+proj=sinu"
"+proj=somerc"
"+proj=stere"
"+proj=sterea"
"+proj=tmerc"
"+proj=utm"
"+proj=vandg"
# valid datum types (lines 1,2), generated from seeds
# $ grep -hoe 'datum=\w*' -o seeds/* | sort -u
"+datum=GGRS87"
"+datum=NAD27"
"+datum=NAD83"
"+datum=OSGB36"
"+datum=WGS84"
"+datum=carthage"
"+datum=hermannskogel"
"+datum=ire65"
"+datum=nzgd49"
"+datum=potsdam"
# valid ellps types
# $ grep -hoe 'elps=\w*' -o seeds/* | sort -u
"+ellps=GRS67"
"+ellps=GRS80"
"+ellps=WGS66"
"+ellps=WGS72"
"+ellps=WGS84"
"+ellps=airy"
"+ellps=aust_SA"
"+ellps=bess_nam"
"+ellps=bessel"
"+ellps=clrk66"
"+ellps=clrk80"
"+ellps=everest"
"+ellps=evrstSS"
"+ellps=fschr60m"
"+ellps=helmert"
"+ellps=intl"
"+ellps=krass"
"+ellps=mod_airy"
"+ellps=sphere"
# other various valid types
"+epoch=1988"
"+gamma=53d7"
"+geoidgrids=egm08_25"
"+geoidgrids=g2012a_conus"
"+lastupdate=1993"
"+lat_0=44d00"
"+lat_0=46"
"+lat_1=18d49"
"+lat_2=40d43"
"+lat_ts=33"
"+llps=bessel"
"+llps=clrk66"
"+lon_0=7"
"+lon_1=62"
"+lon_2=53"
"+lonc=78d00"
"+lpha=55d40"
"+nadgrids=MD"
"+nadgrids=chenyx06etrs"
"+nadgrids=conus"
"+nadgrids=ntf_r93"
"+nadgrids=ntv1_can"
"+nadgrids=ntv2_0"
"+nadgrids=null"
"+north=0"
"+north_square=0"
"+o_lat_p=LAT_POLE"
"+o_lon_p=LON_POLE"
"+o_proj=moll"
"+origin=EPSG"
"+origin=Esri"
"+origin=IGNF"
"+origin=Swisstopo"
"+origin=ftp"
"+origin=http"
"+pm=jakarta"
"+pm=lisbon"
"+pm=madrid"
"+pm=oslo"
"+pm=paris"
"+pm=rome"
"+pm=stockholm"
"+title=Amsterdam"
"+towgs84=103"
"+units=ft"
"+units=km"
"+units=link"
"+units=m"
"+units=us"
"+vunits=m"
"+vunits=us"
# binary prefix for line 3
"BINARY2D:"
"BINARY3D:"
# floating point numbers
"-0.100000 "
"0.000000 "
"0.100000 "
"1.100000 "
"4294967295.000000 "
"9007199254740992.000000 "
"\x9a\x99\x99\x99\x99\x99\xf1\xbf"
"\x9a\x99\x99\x99\x99\x99\xb9\xbf"
"\x00\x00\x00\x00\x00\x00\x00\x00"
"\x9a\x99\x99\x99\x99\x99\xb9\x3f"
"\x9a\x99\x99\x99\x99\x99\xf1\x3f"
"\x00\x00\xe0\xff\xff\xff\xef\x41"
"\x00\x00\x00\x00\x00\x00\x40\x43"
# valid prefixes
"+R="
"+RES="
"+W="
"+a="
"+alpha="
"+axis="
"+azi="
"+b="
"+bs="
"+d="
"+datum="
"+depmode="
"+dest="
"+dir="
"+drx="
"+dry="
"+drz="
"+ds="
"+dx="
"+dy="
"+dz="
"+e="
"+ellps="
"+epoch="
"+es="
"+f="
"+files="
"+flg="
"+gamma="
"+geoidgrids="
"+h="
"+has_opt="
"+init="
"+k="
"+k_0="
"+lastupdate="
"+lat_0="
"+lat_1="
"+lat_2="
"+lat_ts="
"+lib="
"+list="
"+lon_0="
"+lon_1="
"+lon_2="
"+lon_wrap="
"+lonc="
"+nadgrids="
"+north="
"+north_square="
"+o_lat_p="
"+o_lon_p="
"+o_proj="
"+origin="
"+path="
"+phdg_0="
"+plat_0="
"+plon_0="
"+pm="
"+prefix="
"+proj="
"+r_a="
"+rf="
"+rx="
"+ry="
"+rz="
"+s="
"+skip_next="
"+south="
"+south_square="
"+srcdirstrip="
"+sweep="
"+target_option="
"+title="
"+to_meter="
"+topsrcdirstrip="
"+towgs84="
"+units="
"+version="
"+vunits="
"+x="
"+x_0="
"+y="
"+y_0="
"+z="
"+zone="

View File

@ -0,0 +1,40 @@
# Keywords taken from https://developers.google.com/protocol-buffers/docs/reference/proto2-spec
bool="bool"
bytes="bytes"
double="double"
enum="enum"
extend="extend"
extension="extension"
false="false"
fixed32="fixed32"
fixed64="fixed64"
float="float"
group="group"
import="import"
inner="inner"
int32="int32"
int64="int64"
map="map<"
message="message"
option="option"
optional="optional"
package="package"
public="public"
repeated="repeated"
required="required"
reserved="reserved"
returns="returns"
rpc="rpc"
service="service"
sfixed32="sfixed32"
sfixed64="sfixed64"
sint32="sint32"
sint64="sint64"
stream="stream"
string="string"
syntax="syntax"
true="true"
uint32="uint32"
uint64="uint64"
weak="weak"

433
dictionaries/ps.dict Normal file
View File

@ -0,0 +1,433 @@
# https://web.archive.org/web/20170218093716/https://www.adobe.com/products/postscript/pdfs/PLRM.pdf
# TODO(jvoisin) Add more, starting from page 318
header="%!PS"
#types
"array"
"packedarray"
"dict"
"string"
"userdict"
"$error"
"statusdict"
"FontDirectory"
"globaldict"
"systemdict"
"GlobalFontDirectory"
"Order"
"DateSource"
"BitsPerSample"
"Encode"
"Decode"
"Size"
# Stack operators
"dup"
"exch"
"pop"
"copy"
"roll"
"index"
"mark"
"clear"
"count"
"counttomark"
"cleartomark"
# maths
"add"
"sub"
"mul"
"div"
"idiv"
"mod"
"abs"
"neg"
"ceiling"
"floor"
"round"
"truncate"
"sqrt"
"exp"
"ln"
"log"
"rand"
"srang"
"rrand"
# arrays
"get"
"put"
"copy"
"length"
"forall"
"getinterval"
"putinterval"
"aload"
"astore"
"mark"
"setpacking"
"currentpacking"
"begin"
"end"
"def"
"store"
"load"
"where"
"countdictstack"
"cleardictstack"
"dictstack"
"known"
"maxlength"
"undef"
"<<"
">>"
"search"
"anchorsearch"
"token"
# relational operators
"eq"
"ne"
"gt"
"ge"
"lt"
"le"
"and"
"or"
"xor"
"true"
"false"
"bitshift"
#control operators
"if"
"else"
"ifelse"
"exec"
"for"
"repeat"
"loop"
"forall"
"pathforall"
"kshow"
"exit"
"countexecstack"
"execstack"
"stop"
"errordict"
"stopped"
# type
"type"
"xcheck"
"rcheck"
"wcheck"
"cvlit"
"cvx"
"readonly"
"executeonly"
"noacces"
"cvi"
"cvr"
"cns"
"cvs"
"cvrs"
#misc
"print"
"invalidaccess"
"gcheck"
"showpage"
"currentgstate"
"currentfile"
"status"
"byteavailable"
"setdevparams"
"currentdevparams"
"Predictor"
"Columns"
"Colors"
"BitsPerComponent"
"Uncompressed"
"EndOfLine"
"EncodedByteAlign"
"EndOfBlock"
"Blackls1"
"DamagedRowsBeforeError"
"CloseTarget"
"HuffTables"
"ColorTransform"
# vm
"load"
"save"
"restore"
"setglobal"
"grestoreall"
"invalidrestore"
"startjob"
"exitserver"
# User objects
"defineuserobject"
"undefineuserobject"
"execuserobject"
"UserObjects"
#i/o
"read"
"write"
"readstring"
"readline"
"writestring"
"readhexstring"
"writehexstring"
"token"
"flush"
"flushfile"
# files
"file"
"deletefile"
"renamefile"
"status"
"filenameforall"
"setfileposition"
"fileposition"
"%stdin"
"%stdout"
"%stderr"
"%statementedit"
"%lineedit"
# Filters
"ASCII85Decode"
"ASCII85Encode"
"ASCIIHexDecode"
"ASCIIHexEncode"
"Decode"
"Encode"
"RunLengthEncode"
"RunLengthDecode"
"CCITTFaxEncode"
"CCITTFaxDecode"
"DCTEncode"
"DCTDecode"
"ReusableStreamDecode"
"NullEncode"
"SubFileDecode"
"filter"
"LWZEncode"
"LWZDecode"
"FlateEncode"
"FlateDecode"
"EODCount"
"EODString"
"CloseSource"
# Resources
"findresource"
"resourcestatus"
"resourceforall"
"definerresource"
"undefineresource"
"findfont"
"definefont"
"resourcestatsu"
"Font"
"CIDFont"
"CMap"
"FontSet"
"Encoding"
"Form"
"Pattern"
"ProcSet"
"ColorSpace"
"Halftone"
"ColorRendering"
"IdiomSet"
"Inkparam"
"TrapParams"
"OutputDevice"
"Controllangue"
"Localization"
"PDL"
"HWOptions"
"Filter"
"ColorSpaceFamily"
"Emulator"
"IODevice"
"ColorRenderingType"
"FMapType"
"FontType"
"FormType"
"HalftoneType"
"ImageType"
"PatternType"
"FunctionType"
"ShadingType"
"TrappingType"
"Category"
"Generic"
"BitMapFontInit"
"CIDInit"
"ColorRendering"
"FontSetInit"
"Trapping"
"ColorSpace"
"ColorSpaceFamily"
"sethalftone"
"DefineResource"
"UndefineResource"
"FindResource"
"ResourceStatus"
"ResourceForAll"
"Category"
"InstaceType"
"ResourceFileName"
"Intent"
"AsyncRead"
"Times-Roman"
# Error handling
"errorname"
"errorinfo"
"command"
"newerror"
"ostack"
"estack"
"dstack"
"recordstacks"
"binary"
"bind"
"average"
# Image models
"CTM"
"DeviceGray"
"arc"
"arcn"
"artct"
"clip"
"cliprestore"
"clipsave"
"closepath"
"currentlinewidth"
"curveto"
"fill"
"grestone"
"gsave"
"image"
"ineofill"
"infill"
"instroke"
"inueofill"
"inustroke"
"lineto"
"moveto"
"newpath"
"nocurrentpoint"
"path"
"position"
"rcurveto"
"rlineto"
"setbox"
"setlinewidth"
"show"
"stroke"
"ucache"
"ufill"
"ustroke"
"cvlit"
"ufill"
"ueofill"
"rectfill"
"rectstoke"
"rectclip"
"execform"
"FormType"
"XIUD"
"BBox"
"Matrix"
"PaintProc"
"Implementation"
# Colorspace
"setcolorspace"
"setgray"
"setrgbcolor"
"setcmykcolor"
"image"
"colorimage"
"sethsbcolor"
"CIEBasedABC"
"CIEBasedA"
"CIEBaseDEF"
"CIEBaseDEFG"
"Pattern"
"Indexed"
"Separation"
"DeviceN"
"setpattern"
"currentgray"
"currentrgbcolor"
"currentcmykcolor"
"setcachedevice"
"setcachedevice2"
"BuildGlyph"
"BuildChar"
"CharString"
"shfill"
"setundercolorremoval"
"settransfer"
"setscreen"
"sethalftone"
"setcolortransfer"
"DeviceRGB"
"DeviceCMYK"
"DeviceGray"
"RangeABC"
"DecodeABC"
"MatrixABC"
"RangeLMN"
"DecodeLMN"
"MatrixLMN"
"WhitePoint"
"BlackPoint"
# Patterns
"PatternType"
"XUID"
"PaintProc"
"BBox"
"XStep"
"YStep"
"PaintType"
"TilingType"
"Implementation"
"Shading"
"ShadingType"
"AntiAlias"
"Coords"
"BitsPerFlag"
"BitsPerCoordinate"
"MultipleDataSources"
# Misc things
"[-1, 1, -1, 1]"
"[-1 1]"
"1337"
"<</"

180
dictionaries/psd.dict Normal file
View File

@ -0,0 +1,180 @@
# https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/
"8BPS"
"8BIM"
"8B64"
# blend mode keys
"pass"
"norm"
"diss"
"dark"
"mul "
"idiv"
"lbrn"
"dkCl"
"lite"
"scrn"
"deiv"
"lddg"
"lgCl"
"over"
"sLit"
"hLit"
"vLit"
"lLit"
"pLit"
"hMix"
"diff"
"smud"
"fsub"
"fdiv"
"hue "
"sat "
"colr"
"lum "
# adjustment layers
"SoCo"
"GdFl"
"PtFl"
"brit"
"levl"
"curv"
"expA"
"vibA"
"hue "
"hue2"
"blnc"
"blwh"
"phfl"
"mixr"
"clrL"
"nvrt"
"post"
"thrs"
"grdm"
"selc"
# effect signatures
"cmnS"
"dsdw"
"isdw"
"oglw"
"iglw"
"bevl"
"sofi"
# keys
"Layr"
"Lr16"
"Lr32"
"TySh"
"tySt"
"lrFX"
"luni"
"lyid"
"lfx2"
"Patt"
"Pat2"
"Pat3"
"Anno"
"clbl"
"infx"
"knko"
"lspf"
"lclr"
"fxrp"
"grdm"
"lsct"
"brst"
"SoCo"
"PtFl"
"GdFl"
"vmsk"
"vsms"
"vscg"
"ffxi"
"lnsr"
"shpa"
"shmd"
"lyvr"
"tsly"
"lmgm"
"vmgm"
"brit"
"mixr"
"clrL"
"plLd"
"lnkD"
"lnk2"
"lnk3"
"phfl"
"blwh"
"CgEd"
"Txt2"
"vibA"
"pths"
"anFX"
"FMsk"
"SoLd"
"vstk"
"vscg"
"sn2P"
"vogk"
"PxSc"
"cinf"
"PxSD"
"artb"
"artd"
"abdd"
"SoLE"
"Mtrn"
"Mt16"
"Mt32"
"LMsk"
"expA"
"FXid"
"FEid"
# color handling
"conv"
"avod"
"lumi"
# descriptor structure
"obj "
"Objc"
"VlLs"
"doub"
"UntF"
"TEXT"
"enum"
"long"
"comp"
"bool"
"GlbO"
"type"
"GlbC"
"alis"
"tdta"
# reference structure
"prop"
"Clss"
"Enmr"
"rele"
"Idnt"
"indx"
"name"
# misc
"txtA"
"sndA"
"txtC"
"sndM"
"plcL"
"liFD"
"liFE"
"lifA"
"soLD"

View File

@ -8,596 +8,237 @@
#
# Contributed by Dhiraj Mishra <dhiraj@inputzero.io>
#
"?"
"abc"
"()"
"(?<!)"
"(?<=)"
"(?=)"
"?"
"[\\[\\]\\{\\}\\(\\)\\%\\^\\#\\ ]"
"[]"
"abc|def"
"abc|def|ghi"
"^xxx$"
"ab\\b\\d\\bcd"
"\\w|\\d"
"\\[\\]\\{\\}\\(\\)\\%\\^\\#\\ "
"]"
"{"
"{,}"
"{}"
"}"
"[\\0]"
"[\\00011]"
"[\\011]"
"\\011"
"?:\\1"
"[\\11]"
"\\11"
"[\\111]"
"\\111"
"[\\1111]"
"\\1111"
"\\1112"
"[\\118]"
"\\118"
"[\\11a]"
"\\11a"
"{12,"
"[-123]"
"[^123]"
"{12,3b"
"\\1\\2(a(?:\\1\\2))\\2)\\1"
"\\1\\2(a(?:\\1(b\\1\\2))\\2)\\1"
"\\1\\2(b\\1\\2))\\2)\\1"
"\\1(a)"
"(\\1a)"
"(?!\\1(a\\1)\\1)\\1"
"\\1(b\\1\\2))\\2)\\1"
"{1z}"
"(\\2)(\\1)"
"\\8"
"\\9"
"{93}"
"(?:a*)*"
"(?:a*)+"
"(?:a+)*"
"(?:a+)+"
"(?:a+)?"
"(?:a?)*"
"(?:a?)+"
"(?:a?)?"
"(?:a?)??"
"(?<!a)"
"(?<=a)"
"(?<a>)"
"(?<a>.)"
"(a)"
"a"
"a*?"
"a+"
"a+?"
"a."
"a?"
"a??"
"a{"
"a{,}"
"a{}"
"a$"
"a{0}"
"(?:a+){0,0}"
"a{0,1}?"
"(?=a){0,10}a"
"(?!(a))\\1"
"(a)\\1"
"(a\\1)"
"(?=a){1,10}a"
"a{1,2}?"
"a{12,"
"a{12,3b"
"a{12z}"
"a{12za?)?"
"(?:a{5,1000000}){3,1000000}"
"(?=a){9,10}a"
"(?!a)?a"
"a[^a]"
"a[a]"
"(?!a)?a\\1"
"(?:(?=a))a\\1"
"a[a-z]"
"(?:ab)"
"(?:ab)+"
"(?:ab)?"
"(ab)"
"a(?!b)"
"a(?:b)"
"a(?=b)"
"a*b"
"a+b"
"a\\b!"
"a|b"
"a*b\\+\\|[0-9]\\|\\d{1,9}"
"(ab)\\1"
"(?:ab){4,7}"
"a\\Bb"
"a(?!bbb|bb)c"
"a(?=bbb|bb)c"
"ab\\b\\d\\bcd"
"[a-b-c]"
"a(?=b)c"
"a*b|c"
"a+b|c"
"a\\bc"
"a||bc"
"a|bc"
"ab|c"
"abc"
"abc+"
"abc+?"
"a[bc]d"
"(?:ab)|cde"
"(?:ab|cde)"
"(ab|cde)"
"(ab|cde)\\1"
"abc|def"
"abc|def|ghi"
"a\\D"
"a\\fb\\nc\\rd\\te\\vf"
"(?<a>.)\\k<a>"
"a\\n"
"a\\nb\\bc"
"a\\q"
"a\\s"
"a\\S"
"a\\sc"
"a\\Sc"
"a\\w"
"a\\W"
"a?)"xyz{93}"
"a{z}"
"[a-zA-Z0-9]"
"[\\c!]"
"[\\c_]"
"[\\c~]"
"\\c!"
"\\c"
"\\c_"
"\\c~"
"[\\c1]"
"[\\ca]"
"[\\cA]"
"\\cA"
"\\cj\\cJ\\ci\\cI\\ck\\cK"
"[\\cz]"
"[\\cZ]"
"/^\\d*\\./"
"/\\d{1,2}\\/\\d{1,2}\\/\\d{4}/"
"\\[DataMember\\((.+?)\\)\\]"
"[\\d-\\d]"
"[\\d-z]"
"(?: foo )"
"(?:foo)"
"foo(?=bar)bar)az"
"foo(?=bar)bar)baz"
"foo(?!bar)baz"
"foo(?<!bar)baz"
"foo(?<=bar)baz"
"foo(?=bar)baz"
"foo|(bar|baz)|quux"
"fo(?o(?o(?o(?=bar)baz"
"foo[z]*"
"\\P{Any}"
"\\p{Changes_When_NFKC_Casefolded}"
"\\P{Decimal_Number}"
"\\P{gc=Decimal_Number}"
"\\p{gc=Nd}"
"\\p{General_Category=Decimal_Number}"
"\\p{Nd}"
"\\P{sc=Greek}"
"\\p{Script_Extensions=Greek}"
"\\p{Script=Greek}"
"\\P{scx=Greek}"
"\\q"
"\\u0034"
"\\u003z"
"\\u0060"
"\\u{12345}"
"\\u{12345}*"
"\\u{12345}{3}"
"\\u{12345}\\u{23456}"
"\\ud808\\udf45*"
"[\\ud808\\udf45-\\ud809\\udccc]"
"\\w|\\d"
"[x]"
"\x01"
"\x0f"
"\\x3z"
"\\x60"
"[\x8f]"
"[\x92\xa9-\xf4\x8f\xbf\xbf]"
"[x\\dz]"
"[\xe2\x81\xa3]"
"\xe2\x81\xa3"
"\xed\xa0\x80"
"((\xed\xa0\x80))\x02"
"\xed\xb0\x80"
"(\xed\xb0\x80)\x01"
"[-\xf0\x9f\x92\xa9]+"
"\xf0\x9f\x92\xa9"
"[\xf0\x9f\x92\xa9-\xf4\x8f\xbf\x92\xa9-\xf4\x8f\xbf\xbf]"
"[\xf0\x9f\x92\xa9-\xf4\x8f\xbf\xbf]"
"^xxx$"
"(x)(x)(x)\\1"
"(x)(x)(x)\\1*"
"(x)(x)(x)\\2"
"(x)(x)(x)\\3"
"(x)(x)(x)\\3*"
"(x)(x)(x)\\4"
"(x)(x)(x)\\4*"
"(x)(x)(x)(x)(x)(x)(x)(x)(x)(x)\\10"
"(x)(x)(x)(x)(x)(x)(x)(x)(x)(x)\\11"
"[xyz]"
"xyz?"
"xyz??"
"xyz{0,1}"
"xyz{0,1}?"
"xyz{93}"
"xyz{1,32}"
"xyz{1,32}?"
"xyz{1,}"
"xyz{1,}?"
"a\\fb\\nc\\rd\\te\\vf"
"a\\nb\\bc"
"(?:foo)"
"(?: foo )"
"foo|(bar|baz)|quux"
"foo(?=bar)baz"
"foo(?!bar)baz"
"foo(?<=bar)baz"
"foo(?<!bar)baz"
"()"
"(?=)"
"[]"
"[x]"
"[xyz]"
"[a-zA-Z0-9]"
"[-123]"
"[^123]"
"]"
"}"
"[a-b-c]"
"[x\\dz]"
"[\\d-z]"
"[\\d-\\d]"
"[z-\\d]"
"\\cj\\cJ\\ci\\cI\\ck\\cK"
"\\c!"
"\\c_"
"\\c~"
"[\\c!]"
"[\\c_]"
"[\\c~]"
"[\\ca]"
"[\\cz]"
"[\\cA]"
"[\\cZ]"
"[\\c1]"
"\\[\\]\\{\\}\\(\\)\\%\\^\\#\\ "
"[\\[\\]\\{\\}\\(\\)\\%\\^\\#\\ ]"
"\\8"
"\\9"
"\\11"
"\\11a"
"\\011"
"\\118"
"\\111"
"\\1111"
"(x)(x)(x)\\1"
"(x)(x)(x)\\2"
"(x)(x)(x)\\3"
"(x)(x)(x)\\4"
"(x)(x)(x)\\1*"
"(x)(x)(x)\\3*"
"(x)(x)(x)\\4*"
"(x)(x)(x)(x)(x)(x)(x)(x)(x)(x)\\10"
"(x)(x)(x)(x)(x)(x)(x)(x)(x)(x)\\11"
"(a)\\1"
"(a\\1)"
"(\\1a)"
"(\\2)(\\1)"
"(?=a){0,10}a"
"(?=a){1,10}a"
"(?=a){9,10}a"
"(?!a)?a"
"\\1(a)"
"(?!(a))\\1"
"(?!\\1(a\\1)\\1)\\1"
"\\1\\2(a(?:\\1(b\\1\\2))\\2)\\1"
"[\\0]"
"[\\11]"
"[\\11a]"
"[\\011]"
"[\\00011]"
"[\\118]"
"[\\111]"
"[\\1111]"
"\\x60"
"\\x3z"
"\\c"
"\\u0034"
"\\u003z"
"foo[z]*"
"\\u{12345}"
"\\u{12345}\\u{23456}"
"\\u{12345}{3}"
"\\u{12345}*"
"\\ud808\\udf45*"
"[\\ud808\\udf45-\\ud809\\udccc]"
"a"
"a|b"
"a\\n"
"a$"
"a\\b!"
"a\\Bb"
"a*?"
"a?"
"a??"
"a{0,1}?"
"a{1,2}?"
"a+?"
"(a)"
"(a)\\1"
"(\\1a)"
"\\1(a)"
"a\\s"
"a\\S"
"a\\D"
"a\\w"
"a\\W"
"a."
"a\\q"
"a[a]"
"a[^a]"
"a[a-z]"
"a(?:b)"
"a(?=b)"
"a(?!b)"
"\\x60"
"\\u0060"
"\\cA"
"\\q"
"\\1112"
"(a)\\1"
"(?!a)?a\\1"
"(?:(?=a))a\\1"
"a{}"
"a{,}"
"a{"
"a{z}"
"a{12z}"
"a{12,"
"a{12,3b"
"{}"
"{,}"
"{"
"xyz{1,32}"
"xyz{1,32}?"
"xyz{93}"
"{z}"
"{1z}"
"{12,"
"{12,3b"
"a"
"abc"
"a[bc]d"
"a|bc"
"ab|c"
"a||bc"
"(?:ab)"
"(?:ab|cde)"
"(?:ab)|cde"
"(ab)"
"(ab|cde)"
"(ab)\\1"
"(ab|cde)\\1"
"(?:ab)?"
"(?:ab)+"
"a?"
"a+"
"a??"
"a*?"
"a+?"
"(?:a?)?"
"(?:a+)?"
"(?:a?)+"
"(?:a*)+"
"(?:a+)+"
"(?:a?)*"
"(?:a*)*"
"(?:a+)*"
"a{0}"
"(?:a+){0,0}"
"a*b"
"a+b"
"a*b|c"
"a+b|c"
"(?:a{5,1000000}){3,1000000}"
"(?:ab){4,7}"
"a\\bc"
"a\\sc"
"a\\Sc"
"a(?=b)c"
"a(?=bbb|bb)c"
"a(?!bbb|bb)c"
"\xe2\x81\xa3"
"[\xe2\x81\xa3]"
"\xed\xb0\x80"
"\xed\xa0\x80"
"(\xed\xb0\x80)\x01"
"((\xed\xa0\x80))\x02"
"\xf0\x9f\x92\xa9"
"\x01"
"\x0f"
"[-\xf0\x9f\x92\xa9]+"
"[\xf0\x9f\x92\xa9-\xf4\x8f\xbf\xbf]"
"(?<=)"
"(?<=a)"
"(?<!)"
"(?<!a)"
"(?<a>)"
"(?<a>.)"
"(?<a>.)\\k<a>"
"\\p{Script=Greek}"
"\\P{sc=Greek}"
"\\p{Script_Extensions=Greek}"
"\\P{scx=Greek}"
"\\p{General_Category=Decimal_Number}"
"\\P{gc=Decimal_Number}"
"\\p{gc=Nd}"
"\\P{Decimal_Number}"
"\\p{Nd}"
"\\P{Any}"
"\\p{Changes_When_NFKC_Casefolded}"
"L~"
"P{scx=Greek}??"
"Q~"
"R??"
"R!??oo(E=?ar)baz-"
"Sc?Sc{?{?"
"U~"
"V~"
"W~"
"Xdtc"
"X~"
"X?"
"[-123],}"
"[-????]+,}"
"[00011],}"
"[011],}"
"[0],}"
"[1111],}"
"[111],}"
"[118],}"
"[11],}"
"[11a],}"
"[[]{}()%^# ],}"
"[]"
"[],}"
"[]{}()%^# ,}"
"[^123],}"
"[a-b-c],}"
"[a-zA-Z0-9],}"
"[b"
"[bfoo(?!bar)baz"
"[c!],}"
"[c1],}"
"[cA],}"
"[cZ],}"
"[c_],}"
"[ca],}"
"[cz],}"
"[c~],}"
"[c~]w"
"[d-d],}"
"[d-z],}"
"[u???[11<([c?]?:u??<a>)dccc]"
"[ud808udf45-ud809udccc],}"
"[x"
"[x],}"
"[xdz],}"
"[xyz],}"
"[x?"
"[x?n4n4"
"[x??19?"
"[z-d],}"
"[~?"
"[?????"
"[?"
"[???],}"
"[????-????],}"
"[????"
"]"
"],}"
"]QrC[w~]Qr"
"]}"
"]~"
"^?000???????????????????????????x60?"
"^12(a(?:1(b12))2)1dyb?9"
"^xi!q"
"^xxx$,}"
"abc"
"abc60,0}?{?"
"aic"
"b~"
"c"
"c!,}"
"c,}"
"cA,}"
"c_,}"
"cjcJcicIckcK,}"
"c~"
"c~,}"
"d"
"d?"
"d??"
"d(?:ab[]?9}"
"dpN?(?<a>.)?"
"duu{123a?"
"d{1,9"
"d~"
"e"
"e~"
"e?}"
"f~"
"g~"
"h~"
"i~"
"j~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xx?~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxb~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxc~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxd~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxe~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxf~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxg~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxh~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxi~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxj~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxk~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxl~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxm~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxn~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxo~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxp~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxq~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxr~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxs~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxt~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxu~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxv~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxw~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxx~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxy~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxz~"
"k?@a??=bbC?:!k?x!k0}??@??@a(P=b@??s@xx?~"
"k?@a??=bbC?:!k?x!k0}??@??@a(P=b@??s@xxn~"
"k?@a??=bbC?:!k?x!k0}??@??@a(P=b@??s@xxo~"
"k?@a??=bbC?:!k?x!k0}??@??@a(P=b@??s@xxp~"
"k?@a??=bbC?:!k?x!k0}??@??@a(P=b@??s@xxq~"
"k?@a??=bbC?:!k?x!k0}??@??@a(P=b@??s@xxr~"
"k?@a??=bbC?:!k?x!k0}??@??@a(P=b@??s@xxs~"
"k?@a??=bbC?:!k?x!k0}??@??@a(P=b@??s@xxt~"
"k?@a??=bbC?:!k?x!k0}??@??@a(P=b@??s@xxu~"
"k?@a??=bbC?:!k?x!k0}??@??@a(P=b@??s@xxv~"
"k?@a??=bbC?:!k?x!k0}??@??@a(P=b@??s@xxw~"
"k?@a??=bbC?:!k?x!k0}??@??@a(P=b@??s@xxx~"
"k?@a??=bbC?:!k?x!k0}??@??@a(P=b@??s@xxy~"
"k?@a??=bbC?:!k?x!k0}??@??@a(P=b@??s@xxz~"
"k?@a(?=bbb.~"
"k?@a(?=bbbb~"
"k?@a(?=bbbc~"
"k?@a(?=bbbd~"
"k?@a(?=bbbe~"
"k?@a(?=bbbf~"
"k?@a(?=bbbg~"
"k?@a(?=bbbh~"
"k?@a(?=bbbi~"
"k?@a(?=bbbj~"
"k?@a(?=bbbk~"
"k?@a(?=bbbl~"
"k?@a(?=bbbm~"
"k?@a(?=bbbn~"
"k?@a(?=bbbo~"
"k?@a(?=bbbp~"
"k?@a(?=bbbq~"
"k?@a(?=bbbr~"
"k?@a(?=bbbs~"
"k?@a(?=bbbt~"
"k?@a(?=bbbu~"
"k?@a(?=bbbv~"
"k?@a(?=bbbw~"
"k?@a(?=bbbx~"
"k?@a(?=bbby~"
"k?@a(?=bbbz~"
"k?@a(?=by?bC?:!k??????????????b~"
"k?@a(?=by?bC?:!k??????????????c~"
"k?@a(?=by?bC?:!k??????????????d~"
"k?@a(?=by?bC?:!k??????????????e~"
"k?@a(?=by?bC?:!k??????????????f~"
"k?@a(?=by?bC?:!k??????????????g~"
"k?@a(?=by?bC?:!k??????????????h~"
"k?@a(?=by?bC?:!k??????????????i~"
"k?@a(?=by?bC?:!k??????????????j~"
"k?@a(?=by?bC?:!k??????????????k~"
"k?@a(?=by?bC?:!k??????????????l~"
"k?@a(?=by?bC?:!k??????????????m~"
"k?@a(?=by?bC?:!k??????????????n~"
"k?@a(?=by?bC?:!k??????????????o~"
"k?@a(?=by?bC?:!k??????????????p~"
"k?@a(?=by?bC?:!k??????????????q~"
"k?@a(?=by?bC?:!k??????????????r~"
"k?@a(?=by?bC?:!k??????????????s~"
"k?@a(?=by?bC?:!k??????????????t~"
"k?@a(?=by?bC?:!k??????????????u~"
"k?@a(?=by?bC?:!k??????????????v~"
"k?@a(?=by?bC?:!k??????????????w~"
"k?@a(?=by?bC?:!k??????????????x~"
"k?@a(?=by?bC?:!k??????????????y~"
"k?@a(?=by?bC?:!k??????????????z~"
"k?@a(?=by?bC?:!k???????????????~"
"k?@a(?~"
"k?@a(b~"
"k?@a(c~"
"k?@a(d~"
"k?@a(e~"
"k?@a(f~"
"k?@a(g~"
"k?@a(h~"
"k?@a(i~"
"k?@a(j~"
"k?@a(k~"
"k?@a(l~"
"k?@a(m~"
"k?@a(n~"
"k?@a(o~"
"k?@a(p~"
"k?@a(q~"
"k?@a(r~"
"k?@a(s~"
"k?@a(t~"
"k?@a(u~"
"k?@a(v~"
"k?@a(w~"
"k?@a(x~"
"k?@a(y~"
"k?@a(z~"
"k0X@ab~"
"k0X@ac~"
"k0X@ad~"
"k0X@ae~"
"k0X@af~"
"k0X@ag~"
"k0X@ah~"
"k0X@ai~"
"k0X@aj~"
"k0X@ak~"
"k0X@al~"
"k0X@am~"
"k0X@an~"
"k0X@ao~"
"k0X@ap~"
"k0X@aq~"
"k0X@ar~"
"k0X@as~"
"k0X@at~"
"k0X@au~"
"k0X@av~"
"k0X@aw~"
"k0X@ax~"
"k0X@ay~"
"k0X@az~"
"k0X@a?~"
"k~"
"l~"
"m~"
"n~"
"o~"
"p~"
"q,}"
"q~"
"r~"
"r?[c~]"
"s~"
"t~"
"u0034,}"
"u003z,}"
"u0060,}"
"ud808udf45*,}"
"u~"
"v~"
"w"
"w~"
"x3z,}"
"x60,}"
"xyz?9"
"x~"
"y~"
"z~"
"{"
"{??"
"{ ,,?"
"{-"
"{0,d?????!"
"{12345}pu{234:P}?"
"{1?5"
"{@"
"{M,??"
"{M,P{scx=Greek}???sn"
"{M,??"
"{M,??"
"{M,?M,??"
"{O"
"{r~"
"{s~"
"{t~"
"{u~"
"{v~"
"{w~"
"{x~"
"{y~"
"{z~"
"{}"
"{}~"
"{??@"
"{?~"
"},}"
"}}"
"}}}}}?}!}}}}}}}}}}}}}}}}}?},}"
"}~"
"}?w~???"
"~~"
"?!~"
"?$"
"?*?9?nnRnnn?"
"?.~"
"?123222222??"
"?:??"
"?R"
"?b~"
"?c~"
"?d~"
"?d???"
"?e~"
"?f~"
"?g~"
"?h~"
"?i~"
"?j~"
"?k~"
"?l~"
"?m~"
"?n~"
"?o~"
"?p~"
"?q~"
"?r~"
"?s~"
"?t~"
"?u~"
"?v~"
"?v~?v"
"?w~"
"?x~"
"?y~"
"?z~"
"?}"
"??~"
"?????????dadi(?!bbb"
"??~"
"k?@a??=bbC?:!k?x!k0}??@???@a(P=b@??s@xxq~>>>>>>>>>>>>>>>>>>"
"?f??123222222??"
"?fP{gc=Decimal_Number}"
"?f2jq?oo@ooooh??"
"?[???],}f?"
"?[???],}nbbc2jocom"
"?[]"
"?[],}?"
"?[],}f?"
"?[]f?"
"?[]{}()%^#"
"?[^123],}f?"
"?[^123]nbbc2jocom"
"?[a-b-c],}f?"
"?[a-b-c]nbbc2jocom"
"?[a-zA-Z0-9],}f?"
"?[a-zA-Z0-9],}jocom"
"?[a-zA-Z0-9]c2jocom"
"?[bfoo(?!bar)bazcom"
"?[bfoo(?!bar)bazf?"
"(?:a?)??"
"a?)"xyz{93}"
"{93}"
"a{12za?)?"
"[\x8f]"
"[\xf0\x9f\x92\xa9-\xf4\x8f\xbf\x92\xa9-\xf4\x8f\xbf\xbf]"
"[\x92\xa9-\xf4\x8f\xbf\xbf]"
"[z-\\d]"

17
dictionaries/riff.dict Normal file
View File

@ -0,0 +1,17 @@
# https://developers.google.com/speed/webp/docs/riff_container
# FourCC
"ALPH"
"ANIM"
"ANMF"
"EXIF"
"ICCP"
"RIFF"
"VP8 "
"VP8L"
"VP8X"
"WEBP"
"XMP "
# VP8 signature
"\x9D\x01\x2A"

31
dictionaries/rss.dict Normal file
View File

@ -0,0 +1,31 @@
# https://en.wikipedia.org/wiki/RSS
"<?xml version='1.0' encoding='UTF-8' ?>"
"<rss version='2.0'>"
"<author>"
"<category>"
"<channel>"
"<cloud>"
"<comments>"
"<copyright>"
"<description>"
"<docs>"
"<enclosure>"
"<generator>"
"<guid>"
"<image>"
"<item>"
"<language>"
"<lastBuildDate>"
"<link>"
"<managingEditor>"
"<pubDate>"
"<rating>"
"<skipDays>"
"<skipHours>"
"<source>"
"<textInput>"
"<title>"
"<ttl>"
"<url>"
"<webMaster>"

21
dictionaries/rst.dict Normal file
View File

@ -0,0 +1,21 @@
# https://docutils.readthedocs.io/en/sphinx-docs/ref/rst/restructuredtext.html
bold="**"
list1="1. "
list2="(1) "
list3="1) "
list4="I. "
list5="i. "
list6="* "
list7="- "
list8="+ "
end_of_paragraph="::"
title="====="
image=".. image:: "
image_attr=" :a: 1"
doctest=">>>"
table1="+--+""
table2="+==+""
footnote_and_citation=".. [a] "
hyperlink=".. _a: http://a "
macro=".. |b| a"

419
dictionaries/rtf.dict Normal file
View File

@ -0,0 +1,419 @@
# http://latex2rtf.sourceforge.net/RTF-Spec-1.0.txt
# charset
"\\ansi"
"\\mac"
"\\pca"
# font table
"\\fnil"
"\\fswiss"
"\\fmodern"
"\\fscript"
"\\fdecor"
"\\ftech"
# stylesheet
"\\sbasedon"
"\\snext"
"\\keycode"
# colors
"\\red"
"\\green"
"\\blue"
"\\cf"
"\\cb"
# pictures
"\\macpict"
"\\pmmetafile"
"\\wmetafile"
"\\dibitmap"
"\\wbitmap"
"\\wbmbitspixel"
"\\wbmplanes"
"\\wbmwidthbytes"
"\\picw"
"\\pich"
"\\picwgoal"
"\\pichgoal"
"\\picscaley"
"\\picscaled"
"\\piccropt"
"\\piccropb"
"\\piccropl"
"\\piccropr"
"\\brdrs"
"\\brdrdb"
"\\brdrth"
"\\brdrsh"
"\\brdrdot"
"\\brdrhair"
"\\brdrw"
"\\brdrcf"
"\\shading"
"\\bghoriz"
"\\bgvert"
"\\bgfdiag"
"\\bgbdiag"
"\\bgcross"
"\\bgdcross"
"\\bgdkhoriz"
"\\bgdkvert"
"\\bgdkfdiag"
"\\bgdkbdiag"
"\\bgdkcross"
"\\bgdkdcross"
"\\cfpat"
"\\cbpat"
"\\bin"
"MM_TEXT"
"MM_LOMETRIC"
"MM_HIMETRIC"
"MM_LOENGLISH"
"MM_HIENGLISH"
"MM_TWIPS"
"MM_ISOTROPIC"
"MM_ANISOTROPIC"
"PU_ARBITRARY"
"PU_PELS"
"PU_LOMETRIC"
"PU_HIMETRIC"
"PU_LOENGLISH"
"PU_HIENGLISH"
"PU_TWIPS"
# headers and gooters
"\headerr"
"\headerf"
"\footerl"
"\footerr"
"\footerf"
# misc
"\\chftn"
"\\*\\footnote"
"\\*\\annotation"
"\\bxe"
"\\ixe"
"\\tcf"
"\\tcl"
"\\*\\bkmkstart"
"\\*\\bkmkend"
# metadata
"\\title"
"\\subject"
"\\author"
"\\operator"
"\\keywords"
"\\comment"
"\\version"
"\\doccomm"
"\\vern"
"\\creatim"
"\\revtim"
"\\printim"
"\\buptim"
"\\edmins"
"\\yr"
"\\mo"
"\\dy"
"\\hr"
"\\min"
"\\nofpages"
"\\nofwords"
"\\nofchars"
"\\id"
"\\flddirty"
"\\fldedit"
"\\fldlock"
"\\fldpriv"
# objects
"\\objemb"
"\\objlink"
"\\objautlink"
"\\objsub"
"\\objicemb"
"\\linkself"
"\\objlock"
"\\objclass"
"\\objname"
"\\objh"
"\\objw"
"\\objsetsize"
"\\objtransy"
"\\objcropt"
"\\objcropb"
"\\objcropl"
"\\objcropr"
"\\objscalex"
"\\objscaley"
"\\objdata"
"\\objalias"
"\\objsect"
"\\rsltrtf"
"\\rsltpict"
"\\rsltbmp"
"\\rslttxt"
"\\rsltmerge"
"\\result"
# macintosh editor
"\\bkmkpub"
"\\pubauto"
"\\objalias"
"\\objsect"
# formating
"\\deftab"
"\\hyphhotz"
"\\linestart"
"\\fracwidth"
"\\*\nextfile"
"\\*\template"
"\\makebackup"
"\\defformat"
"\\psover"
"\\deflang"
"\\ftnsep"
"\\ftnsepc"
"\\ftncn"
"\\endnotes"
"\\enddoc"
"\\ftntj"
"\\ftnbj"
"\\ftnstart"
"\\ftnrestart"
"\\paperw"
"\\paperh"
"\\margl"
"\\margr"
"\\margt"
"\\margb"
"\\facingp"
"\\gutter"
"\\margmirror"
"\\landscape"
"\\pgnstart"
"\\widowctrl"
"\\revisions"
"\\revprop"
"\\revbar"
"\\sectd"
"\\endnhere"
"\\binfsxn"
"\\binsxn"
"\\sbknone"
"\\sbkcol"
"\\sbkpage"
"\\sbkeven"
"\\sbkodd"
"\\cols"
"\\colsx"
"\\linebetcol"
"\\linemod"
"\\linex"
"\\linestarts"
"\\linerestart"
"\\lineppage"
"\\linecont"
"\\pgwsxn"
"\\pghsxn"
"\\marglsxn"
"\\margrsxn"
"\\margtsxn"
"\\margbsxn"
"\\guttersxn"
"\\lndscpsxn"
"\\titlepg"
"\\headery"
"\\footery"
"\\pgnstarts"
"\\pgncont"
"\\pgnrestart"
"\\pgnx"
"\\pgny"
"\\pgndec"
"\\pgnucrm"
"\\pgnlcrm"
"\\pgnucltr"
"\\pgnlcltr"
"\\vertalt"
"\\vertal"
"\\vertalc"
"\\vertalj"
"\\pard"
"\\s"
"\\intbl"
"\\keep"
"\\keepn"
"\\noline"
"\\pagebb"
"\\sbys"
"\\ql"
"\\qr"
"\\qj"
"\\qc"
"\\fi"
"\\li"
"\\ri"
"\\sb"
"\\sa"
"\\sl"
"\\tx"
"\\tqr"
"\\tqc"
"\\tqdec"
"\\tb"
"\\tldot"
"\\tlhyph"
"\\tlul"
"\\tlth"
"\\tleq"
"\\brdrt"
"\\brdrb"
"\\brdrl"
"\\brdrr"
"\\brdrbtw"
"\\brdrbar"
"\\box"
"\\brdrs"
"\\brdrth"
"\\brdrsh"
"\\brdrdb"
"\\brdrdot"
"\\brdrhair"
"\\brdrw"
"\\brdrcf"
"\\brsp"
"\\shading"
"\\bghoriz"
"\\bgvert"
"\\bgfdiag"
"\\bgbdiag"
"\\bgcross"
"\\bgdcross"
"\\bgdkhoriz"
"\\bgdkvert"
"\\bgdkfdiag"
"\\bgdkbdiag"
"\\bgdkcross"
"\\bgdkdcross"
"\\cfpat"
"\\cbpat"
"\\absw"
"\\absh"
"\\phmrg"
"\\phpg"
"\\phcol"
"\\posx"
"\\posxc"
"\\posxi"
"\\posxo"
"\\posxr"
"\\posxl"
"\\pvmrg"
"\\pvpg"
"\\pvpara"
"\\posy"
"\\posyil"
"\\posyt"
"\\posyc"
"\\posyb"
"\\dxfrtext"
"\\dyfrtext"
#tables
"\\trowd"
"\\trgaph"
"\\cellx"
"\\clmgf"
"\\clmrg"
"\\clbrdrt"
"\\clbrdrl"
"\\clbrdrr"
"\\trql"
"\\trqr"
"\\trqc"
"\\trleft"
"\\trrh"
"\\clshdng"
"\\clbghoriz"
"\\clbgvert"
"\\clbgfdiag"
"\\clbgbdiag"
"\\clbgcross"
"\\clbgdcross"
"\\clbgdkhor"
"\\clbgdkvert"
"\\clbgdkfdiag"
"\\clbgdkbdiag"
"\\clbgdkcross"
"\\clbgdkdcross"
"\\clcfpat"
"\\clcbpat"
# char format
"\\plain"
"\\b"
"\\caps"
"\\deleted"
"\\dn"
"\\expnd"
"\\f"
"\\fs"
"\\i"
"\\outl"
"\\revised"
"\\scaps"
"\\shad"
"\\strike"
"\\ul"
"\\uld"
"\\uldb"
"\\ulnone"
"\\ulw"
"\\up"
"\\v"
"\\lang"
# special chars
"\\chdate"
"\\chdpl"
"\\chdpa"
"\\chtime"
"\\chpgn"
"\\chftn"
"\\chatn"
"\\chftnsep"
"\\chftnsepc"
"\\cell"
"\\row"
"\\par"
"\\sect"
"\\page"
"\\column"
"\\line"
"\\tab"
"\\emdash"
"\\endash"
"\\bullet"
"\\lquote"
"\\rquote"
"\\ldblquote"
"\\rdblquote"
"\\|"
"\\~"
"\\-"
"\\_"
"\\:"
"\\*"
"\\'hh"
"\\alt"
"\\shift"
"\\ctrl"

37
dictionaries/sas.dict Normal file
View File

@ -0,0 +1,37 @@
" "
"#"
"$"
"$CHAR"
"%LET"
"("
")"
"*/"
"/*"
";"
"@"
"ATTRIB"
"CLEAR"
"CONTENTS"
"DATA"
"DATE"
"FILENAME"
"FOOTNOTE"
"FORMAT"
"IF"
"INFILE"
"INPUT"
"INVALUE"
"LABEL"
"LENGTH"
"LIBNAME"
"LIST"
"MISSING"
"OPTIONS"
"OTHER"
"PRINT"
"PROC"
"RUN"
"VALUE"
"_ALL_"
"dlm"
"firstobs"

46
dictionaries/spss.dict Normal file
View File

@ -0,0 +1,46 @@
"("
"(NOMINAL)"
"(ORDINAL)"
"(SCALE)"
")"
"."
"/"
"/VARIABLES"
"="
" "
"A"
"ADATE"
"COMMENT"
"DATA"
"DATASET"
"DATE"
"DELIMITERS"
"DICTIONARY"
"DISPLAY"
"END"
"EXECUTE"
"F"
"FILE"
"FIRSTCASE"
"FIXED"
"FORMATS"
"HANDLE"
"IF"
"INPUT"
"LABEL"
"LABELS"
"LEVEL"
"LIST"
"NAME"
"OUTFILE"
"PROGRAM"
"RECODE"
"RECORD"
"SAVE"
"SELECT"
"SET"
"SYSMIS"
"TABLE"
"VALUE"
"VARIABLE"
"WINDOW"

22
dictionaries/stata.dict Normal file
View File

@ -0,0 +1,22 @@
" "
")"
"*/"
"/*"
"_column("
"_firstlineoffile("
"_line("
"_lines("
"_lrecl("
"_newline"
"_skip("
"byte"
"dictionary"
"double"
"float"
"infile"
"int"
"long"
"str"
"using"
"{"
"}"

170
dictionaries/svg.dict Normal file
View File

@ -0,0 +1,170 @@
# Keywords taken from
# - https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Introduction
# - https://css-tricks.com/svg-properties-and-css/
"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
"standalone="
"version="
"encoding="
"<?xml"
"?>"
"/>"
"<![CDATA["
# tags
"<svg"
"xmlns=\"http://www.w3.org/2000/svg\""
"<a"
"<animate"
"<animateMotion"
"<animateTransform"
"<circle"
"<clipPath"
"<color-profile"
"<defs"
"<desc"
"<discard"
"<ellipse"
"<feBlend"
"<feColorMatrix"
"<feComponentTransfer"
"<feComposite"
"<feConvolveMatrix"
"<feDiffuseLighting"
"<feDisplacementMap"
"<feDistantLight"
"<feDropShadow"
"<feFlood"
"<feFuncA"
"<feFuncB"
"<feFuncG"
"<feFuncR"
"<feGaussianBlur"
"<feImage"
"<feMerge"
"<feMergeNode"
"<feMorphology"
"<feOffset"
"<fePointLight"
"<feSpecularLighting"
"<feSpotLight"
"<feTile"
"<feTurbulence"
"<filter"
"<foreignObject"
"<g"
"<hatch"
"<hatchpath"
"<image"
"<line"
"<linearGradient"
"<marker"
"<mask"
"<mesh"
"<meshgradient"
"<meshpatch"
"<meshrow"
"<metadata"
"<mpath"
"<path"
"<pattern"
"<polygon"
"<polyline"
"<radialGradient"
"<rect"
"<rect"
"<script"
"<script>"
"<set"
"<solidcolor"
"<stop"
"<style"
"<svg"
"<switch"
"<symbol"
"<text"
"<textArea"
"<textPath"
"<title"
"<title>"
"<tspan"
"<unknown"
"<use"
"<view"
# attributes
"alignment-baseline"
"baseline-shift"
"class"
"color"
"cursor"
"cx"
"cy"
"direction"
"display"
"dominant-baseline"
"editable"
"fill"
"fill-opacity"
"font-family"
"font-size"
"font-size-adjust"
"font-stretch"
"font-style"
"font-variant"
"font-weight"
"glyph-orientation-horizontal"
"glyph-orientation-vertical"
"gradientUnits"
"height"
"kerning""
"letter-spacing"
"offset"
"overflow"
"patternContentUnits"
"pointer-events"
"points"
"rotate"
"rx"
"ry"
"spreadMethod"
"stop-color"
"stop-opacity"
"stroke"
"stroke-dasharray"
"stroke-linecap"
"stroke-linejoin"
"stroke-opacity"
"stroke-width"
"style"
"text-anchor"
"text-decoration"
"textlength"
"transform"
"unicode-bidi"
"visibility"
"width"
"word-spacing"
"writing-mode"
"x1"
"x2"
"y1"
"y2"
# attributes' values
"bounding-Box"
"repeat"
"display"
"transparent"
"orange"
"round"
"butt"
"userSpaceOnUse"
"objectBoundingBox"
"square"
"miter"
"bevel"
"translate("
"rotate("
"matrix("

122
dictionaries/tex.dict Normal file
View File

@ -0,0 +1,122 @@
# main keywords
"@article{"
"@conference{"
"@misc{"
"\\@."
"\\Huge"
"\\LARGE"
"\\LaTeX\\"
"\\Large"
"\\author{"
"\\begin{"
"\\caption"
"\\centering"
"\\chapter{"
"\\citeA{"
"\\citeNP"
"\\citeN{"
"\\citeyear{"
"\\cite{"
"\\cline{"
"\\date{"
"\\documentclass{"
"\\emph{"
"\\end{"
"\\footnotesize"
"\\footnote{"
"\\frac{"
"\\hline"
"\\hspace{"
"\\huge"
"\\includegraphics"
"\\item{"
"\\kill"
"\\label{"
"\\large"
"\\ldots"
"\\leq"
"\\linespread"
"\\maketitle{}"
"\\multicolumn{"
"\\newcommand{"
"\\noindent"
"\\normalfont{"
"\\normalsize"
"\\pagebreak"
"\\pageref{"
"\\pagestyle{"
"\\part{"
"\\prod_{"
"\\raggedleft"
"\\raggedright"
"\\ref{"
"\\rule{"
"\\scriptsize"
"\\section{"
"\\setcounter{"
"\\shortciteA{"
"\\shortciteNP"
"\\shortciteN{"
"\\shortcite{"
"\\small"
"\\sqrt{"
"\\subsection{"
"\\sum_{"
"\\tableofcontents"
"\\textbackslash"
"\\textbar"
"\\textbf{"
"\\textgreater"
"\\textit{"
"\\textless"
"\\textmd{"
"\\textnormal{"
"\\textrm{"
"\\textsc{"
"\\textsf{"
"\\textsl{"
"\\texttt{"
"\\textup{"
"\\tiny"
"\\title{"
"\\today"
"\\underline{"
"\\usepackage"
"\\vspace{"
# misc
"abbrv"
"addres"
"article"
"book"
"center"
"description"
"document"
"draft"
"em"
"enumerate"
"equation"
"figure"
"flushleft"
"flushright"
"hyperref"
"itemize"
"landscape"
"letter"
"letterpaper"
"plain"
"publisher"
"quotation"
"quote"
"report"
"slides"
"tabular*"
"twocolumn"
"twoside"
"unsrt"
"verbatim*"
"verse"
"year"

View File

@ -0,0 +1,9 @@
"{"
"}"
"\""
";"
"="
"formats"
"replaces"
"abstracts"
"timestamp"

View File

@ -0,0 +1,18 @@
"{"
"}"
","
"["
"]"
","
":"
"e"
"e+"
"e-"
"E"
"E+"
"E-"
"\""
"null"
"1"
"1.234"
"3e4"

22
dictionaries/toml.dict Normal file
View File

@ -0,0 +1,22 @@
# https://github.com/toml-lang/toml
key_value="a.b=\"c\""
unicode="\\u1234"
unicode_long="\\u12345678"
true="true"
false="false"
multiline_literal="'''"
multiline="\"\"\""
integer="+1_2_3_4"
negative_integer="-1"
hex="0xde_ad"
oct="0o6"
bin="0b1"
float="-6_3.6e-05"
nan="nan"
inf="inf"
time="1979-05-27T07:32:00Z"
array="[1,2]"
table="[a]"
inline_table="a={1=2,3=4}"
array_table="[[a]]"

25
dictionaries/type42.dict Normal file
View File

@ -0,0 +1,25 @@
# https://www.adobe.com/content/dam/acom/en/devnet/font/pdfs/5012.Type42_Spec.pdf
# This format is a super-set of postscript, so don't forget to use ps.dict as well
magic="%!PS-TrueTypeFont"
"%%VMUsage:"
"/FontType"
"/FontMatrix"
"/FontName"
"/FontInfo"
"/Encoding"
"/FontBBox"
"/UniqueID"
"/XUID"
"/PaintType"
"/StrokeWidth"
"/Metrics"
"/Metrics2"
"/CDevProc"
"/CharStrings"
"/sfnts"
"/CIDMap"
"/GDBytes"
"/GlyphDirectory"
"/MetricsCount"
"/WMode"

62
dictionaries/url.dict Normal file
View File

@ -0,0 +1,62 @@
# https://en.wikipedia.org/wiki/Uniform_Resource_Identifier
# scheme
"aim"
"callto"
"cvs"
"data"
"facetime"
"feed"
"file"
"ftp"
"git"
"gopher"
"gtalk"
"h323"
"hdl"
"http"
"https"
"imap"
"irc"
"irc6"
"ircs"
"itms"
"javascript"
"magnet"
"mailto"
"mms"
"msnim"
"news"
"nntp"
"prospero"
"rsync"
"rtsp"
"rtspu"
"sftp"
"shttp"
"sip"
"sips"
"skype"
"smb"
"snews"
"ssh"
"svn"
"svn"
"svn+ssh"
"telnet"
"tel"
"wais"
"ymsg"
# encoded characters
"%2f"
"%40"
"%26"
# misc
"://"
"//"
"\\"
"../"
";type=a"
"xn--"

73
dictionaries/utf8.dict Normal file
View File

@ -0,0 +1,73 @@
# https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt
# Defines byteorder and endianess
byte_order="\xFE\xFF"
# Reorder the display of text for RTL reading
right_to_left="\x20\x2E"
# Mongolian Vowel Separator: invisible and has the whitespace property
invisible_separator="\x18\x03"
# Invisible zero-width character.
word_join="\x20\x60"
# Reserved code point
reserved="\xfe\xfe"
# Invalid code point
invalid1="\xff\xff"
invalid2="\x01\xff\xff"
invalid3="\xfdd0"
# unassigned code point
unassigned="\x0f\xed"
# illegal low half-surrogate
illegal_low="\xde\xad"
# illegal high half-surrogate
illegal_high="\xda\xad"
# private use area code usbed by apple for its logo
apple="\xf8\xff"
# hostname normalization
fullwidth_solidus="\xff\x0f"
# numerical mapping and a value
bold_eight="\x01\xd7\xd6"
# # U+00DF normalizes to "ss" during IDNA2003's mapping phase,
# different from its IDNA2008 mapping. See http://www.unicode.org/reports/tr46/
weird="\x00\xdf"
# U+FDFD expands by 11x (UTF-8) and 18x (UTF-16) under NFKC/NFKC
expansion="\xfd\xfd"
# U+0390 expands by 3x (UTF-8) under NFD
expansion2="\x03\x90"
# U+1F82 expands by 4x (UTF-16) under NFD
expansion3= "\x1F\x82"
# U+FB2C expands by 3x (UTF-16) under NFC
expansion4="\xFB\x2C"
# Lowecaser expansion: https://twitter.com/jifa/status/625776454479970304
low_exp1="\x02\x3a"
low_exp2="\x02\x3e"
low_exp3="\x00\xdf"
low_exp4="\x1e\x9e"
# Null byte
null="\x00\x00"
"\xfc\x80\x80\x80\x80\x80"
"fc\x80\x80\x80\x80\xaf"
# Confusing new lines
"\x00\x1b"
"\x00\x85"
"\x20\x28"
"\x20\x29"

119
dictionaries/vcf.dict Normal file
View File

@ -0,0 +1,119 @@
# https://en.wikipedia.org/wiki/VCard
# Properties
"ADR;"
"AGENT:"
"ANNIVERSARY:"
"BDAY:"
"BEGIN:VCARD"
"BIRTHPLACE;"
"CALADRURI:"
"CALURI:"
"CATEGORIES:"
"CLASS:"
"CLIENTPIDMAP:"
"DEATHDATE:"
"DEATHPLACE;"
"EMAIL:"
"END:VCARD"
"EXPERTISE;"
"FBURL:"
"FN:"
"GENDER:"
"GEO:"
"HOBBY;"
"IMPP:"
"INTEREST;"
"KEY"
"KIND"
"LABEL;"
"LANG"
"LOGO"
"MAILER"
"N:"
"NAME:"
"NICKNAME:"
"NOTE:"
"ORG:"
"ORG-DIRECTORY:"
"PHOTO;"
"PRODID:"
"PROFILE:VCARD"
"RELATED;"
"REV:"
"ROLE:"
"SHORT-STRING:"
"SOUND;"
"SOURCES:"
"TEL;"
"TITLE:"
"TZ:"
"UID:"
"URL:"
"VERSION:3.0"
"XML:"
# Extensions
"X-ABUID"
"X-AIM"
"X-ANNIVERSARY"
"X-ASSISTANT"
"X-EVOLUTION-ANNIVERSARY"
"X-EVOLUTION-ASSISTANT"
"X-EVOLUTION-BLOG-URL"
"X-EVOLUTION-CALLBACK"
"X-EVOLUTION-FILE-AS"
"X-EVOLUTION-LIST"
"X-EVOLUTION-LIST-SHOW_ADDRESSES"
"X-EVOLUTION-MANAGER"
"X-EVOLUTION-RADIO"
"X-EVOLUTION-SPOUSE"
"X-EVOLUTION-TELEX"
"X-EVOLUTION-TTYTDD"
"X-EVOLUTION-VIDEO-URL"
"X-GADUGADU"
"X-GENDER"
"X-GOOGLE-TALK,"
"X-GROUPWISE"
"X-ICQ"
"X-JABBER"
"X-KADDRESSBOOK-BlogFeed"
"X-KADDRESSBOOK-OPENPGPFP"
"X-KADDRESSBOOK-X-Anniversary"
"X-KADDRESSBOOK-X-AssistantsName"
"X-KADDRESSBOOK-X-IMAddress"
"X-KADDRESSBOOK-X-ManagersName"
"X-KADDRESSBOOK-X-Office"
"X-KADDRESSBOOK-X-Profession"
"X-KADDRESSBOOK-X-SpouseName"
"X-MANAGER"
"X-MOZILLA-HTML"
"X-MOZILLA-PROPERTY"
"X-MS-CARDPICTURE"
"X-MS-IMADDRESS"
"X-MS-OL-DESIGN"
"X-MSN"
"X-PHONETIC-FIRST-NAME,"
"X-SKYPE,"
"X-SPOUSE"
"X-TWITTER"
"X-WAB-GENDER"
"X-WEBMONEY-ID"
"X-YAHOO"
# Misc
"MEDIATYPE="
"uri:tel"
"TYPE=HOME,PREF:"
"TYPE=PNG;"
"TYPE=WORK,VOICE:"
"x-qq:"
"ENCODING=b:"
"ENCODING=BASE64:"
"MEDIATYPE="
"data:"
"application/gpg-keys;"
"image/png;"
"base64,"
"audio/ogg"
"LEVEL=expert:"

10
dictionaries/vhd.dict Normal file
View File

@ -0,0 +1,10 @@
# https://winprotocoldoc.blob.core.windows.net/productionwindowsarchives/MS-VHDX/%5bMS-VHDX%5d.pdf
magic="\x65\x6C\x69\x66\x78\x64\x68\x76"
head="\x64\x61\x65\x68"
regi="\x69\x67\x65\x72"
loge="\x65\x67\x6F\x6C"
zero="\x6F\x72\x65\x7A"
desc="\x63\x73\x65\x64"
data="\x61\x74\x61\x64"
metadata="\x61\x74\x61\x64\x61\x74\x65\x6D"

View File

@ -0,0 +1,8 @@
# IVF Signature + version (bytes 0-5)
kw1="DKIF\x00\x00"
# VP9 codec fourCC (bytes 8-11)
kw2="VP90"
# VP8 codec fourCC (bytes 8-11)
kw3="VP80"

25
dictionaries/wav.dict Normal file
View File

@ -0,0 +1,25 @@
header="RIFF"
header_id="WAVE"
fmt_chunk="fmt "
fact_chunk="fact"
data_chunk="data"
cue_chunk="cue "
playlist_chunk="plst"
list_chunk="list"
label_chunk="labl"
note_chunk="note"
labeled_text_chunk="ltxt"
sampler_chunk="smpl"
instrument_chunk="inst"
# IFF extension: https://web.archive.org/web/20080114200405/http://www.borg.com/~jglatt/tech/aboutiff.htm
"FORM"
"LIST"
"CAT "
"ILBM"
"AIFF"
"ANIM"
"CMAP"
"MIDI"
"MThd"

152
dictionaries/webm.dict Normal file
View File

@ -0,0 +1,152 @@
# Element IDs.
IdEbml = "\x1A\x45\xDF\xA3"
IdEbmlVersion = "\x42\x86"
IdEbmlReadVersion = "\x42\xF7"
IdEbmlMaxIdLength = "\x42\xF2"
IdEbmlMaxSizeLength = "\x42\xF3"
IdDocType = "\x42\x82"
IdDocTypeVersion = "\x42\x87"
IdDocTypeReadVersion = "\x42\x85"
IdVoid = "\xEC"
IdSegment = "\x18\x53\x80\x67"
IdSeekHead = "\x11\x4D\x9B\x74"
IdSeek = "\x4D\xBB"
IdSeekId = "\x53\xAB"
IdSeekPosition = "\x53\xAC"
IdInfo = "\x15\x49\xA9\x66"
IdTimecodeScale = "\x2A\xD7\xB1"
IdDuration = "\x44\x89"
IdDateUtc = "\x44\x61"
IdTitle = "\x7B\xA9"
IdMuxingApp = "\x4D\x80"
IdWritingApp = "\x57\x41"
IdCluster = "\x1F\x43\xB6\x75"
IdTimecode = "\xE7"
IdPrevSize = "\xAB"
IdSimpleBlock = "\xA3"
IdBlockGroup = "\xA0"
IdBlock = "\xA1"
IdBlockVirtual = "\xA2"
IdBlockAdditions = "\x75\xA1"
IdBlockMore = "\xA6"
IdBlockAddId = "\xEE"
IdBlockAdditional = "\xA5"
IdBlockDuration = "\x9B"
IdReferenceBlock = "\xFB"
IdDiscardPadding = "\x75\xA2"
IdSlices = "\x8E"
IdTimeSlice = "\xE8"
IdLaceNumber = "\xCC"
IdTracks = "\x16\x54\xAE\x6B"
IdTrackEntry = "\xAE"
IdTrackNumber = "\xD7"
IdTrackUid = "\x73\xC5"
IdTrackType = "\x83"
IdFlagEnabled = "\xB9"
IdFlagDefault = "\x88"
IdFlagForced = "\x55\xAA"
IdFlagLacing = "\x9C"
IdDefaultDuration = "\x23\xE3\x83"
IdName = "\x53\x6E"
IdLanguage = "\x22\xB5\x9C"
IdCodecId = "\x86"
IdCodecPrivate = "\x63\xA2"
IdCodecName = "\x25\x86\x88"
IdCodecDelay = "\x56\xAA"
IdSeekPreRoll = "\x56\xBB"
IdVideo = "\xE0"
IdFlagInterlaced = "\x9A"
IdStereoMode = "\x53\xB8"
IdAlphaMode = "\x53\xC0"
IdPixelWidth = "\xB0"
IdPixelHeight = "\xBA"
IdPixelCropBottom = "\x54\xAA"
IdPixelCropTop = "\x54\xBB"
IdPixelCropLeft = "\x54\xCC"
IdPixelCropRight = "\x54\xDD"
IdDisplayWidth = "\x54\xB0"
IdDisplayHeight = "\x54\xBA"
IdDisplayUnit = "\x54\xB2"
IdAspectRatioType = "\x54\xB3"
IdFrameRate = "\x23\x83\xE3"
IdColour = "\x55\xB0"
IdMatrixCoefficients = "\x55\xB1"
IdBitsPerChannel = "\x55\xB2"
IdChromaSubsamplingHorz = "\x55\xB3"
IdChromaSubsamplingVert = "\x55\xB4"
IdCbSubsamplingHorz = "\x55\xB5"
IdCbSubsamplingVert = "\x55\xB6"
IdChromaSitingHorz = "\x55\xB7"
IdChromaSitingVert = "\x55\xB8"
IdRange = "\x55\xB9"
IdTransferCharacteristics = "\x55\xBA"
IdPrimaries = "\x55\xBB"
IdMaxCll = "\x55\xBC"
IdMaxFall = "\x55\xBD"
IdMasteringMetadata = "\x55\xD0"
IdPrimaryRChromaticityX = "\x55\xD1"
IdPrimaryRChromaticityY = "\x55\xD2"
IdPrimaryGChromaticityX = "\x55\xD3"
IdPrimaryGChromaticityY = "\x55\xD4"
IdPrimaryBChromaticityX = "\x55\xD5"
IdPrimaryBChromaticityY = "\x55\xD6"
IdWhitePointChromaticityX = "\x55\xD7"
IdWhitePointChromaticityY = "\x55\xD8"
IdLuminanceMax = "\x55\xD9"
IdLuminanceMin = "\x55\xDA"
IdProjection = "\x76\x70"
IdProjectionType = "\x76\x71"
IdProjectionPrivate = "\x76\x72"
IdProjectionPoseYaw = "\x76\x73"
IdProjectionPosePitch = "\x76\x74"
IdProjectionPoseRoll = "\x76\x75"
IdAudio = "\xE1"
IdSamplingFrequency = "\xB5"
IdOutputSamplingFrequency = "\x78\xB5"
IdChannels = "\x9F"
IdBitDepth = "\x62\x64"
IdContentEncodings = "\x6D\x80"
IdContentEncoding = "\x62\x40"
IdContentEncodingOrder = "\x50\x31"
IdContentEncodingScope = "\x50\x32"
IdContentEncodingType = "\x50\x33"
IdContentEncryption = "\x50\x35"
IdContentEncAlgo = "\x47\xE1"
IdContentEncKeyId = "\x47\xE2"
IdContentEncAesSettings = "\x47\xE7"
IdAesSettingsCipherMode = "\x47\xE8"
IdCues = "\x1C\x53\xBB\x6B"
IdCuePoint = "\xBB"
IdCueTime = "\xB3"
IdCueTrackPositions = "\xB7"
IdCueTrack = "\xF7"
IdCueClusterPosition = "\xF1"
IdCueRelativePosition = "\xF0"
IdCueDuration = "\xB2"
IdCueBlockNumber = "\x53\x78"
IdChapters = "\x10\x43\xA7\x70"
IdEditionEntry = "\x45\xB9"
IdChapterAtom = "\xB6"
IdChapterUid = "\x73\xC4"
IdChapterStringUid = "\x56\x54"
IdChapterTimeStart = "\x91"
IdChapterTimeEnd = "\x92"
IdChapterDisplay = "\x80"
IdChapString = "\x85"
IdChapLanguage = "\x43\x7C"
IdChapCountry = "\x43\x7E"
IdTags = "\x12\x54\xC3\x67"
IdTag = "\x73\x73"
IdTargets = "\x63\xC0"
IdTargetTypeValue = "\x68\xCA"
IdTargetType = "\x63\xCA"
IdTagTrackUid = "\x63\xC5"
IdSimpleTag = "\x67\xC8"
IdTagName = "\x45\xA3"
IdTagLanguage = "\x44\x7A"
IdTagDefault = "\x44\x84"
IdTagString = "\x44\x87"
IdTagBinary = "\x44\x85"
# Interesting sizes.
SizeUnknown = "\xFF"

35
dictionaries/wkt.dict Normal file
View File

@ -0,0 +1,35 @@
# https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry
"AFFINEPLACEMENT"
"BREPSOLID"
"CIRCLE"
"CIRCULARSTRING"
"CLOTHOID"
"COMPOUNDCURVE"
"CURVE"
"CURVEPOLYGON"
"ELLIPTICALCURVE"
"EMPTY"
"GEODESICSTRING"
"GEOMETRY"
"GEOMETRYCOLLECTION"
"LINESTRING"
"MULTICURVE"
"MULTILINESTRING"
"MULTIPOINT"
"MULTIPOLYGON"
"MULTISURFACE"
"NURBSCURVE"
"POINT"
"PATCHES"
"POLYGON"
"POLYHEDRALSURFACE"
"SPIRALCURVE"
"SRID"
"SURFACE"
"TIN"
"TRIANGLE"
"ZM"
# misc
"(1,2)"

1885
dictionaries/x86.dict Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,103 @@
# xml.dict converted to UTF-16 encoding.
"\xff\xfe \x00e\x00n\x00c\x00o\x00d\x00i\x00n\x00g\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
"\xff\xfe \x00a\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
"\xff\xfe \x00h\x00r\x00e\x00f\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
"\xff\xfe \x00s\x00t\x00a\x00n\x00d\x00a\x00l\x00o\x00n\x00e\x00=\x00\\\x00"\x00n\x00o\x00\\\x00"\x00"
"\xff\xfe \x00v\x00e\x00r\x00s\x00i\x00o\x00n\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
"\xff\xfe \x00x\x00m\x00l\x00:\x00b\x00a\x00s\x00e\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
"\xff\xfe \x00x\x00m\x00l\x00:\x00i\x00d\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
"\xff\xfe \x00x\x00m\x00l\x00:\x00l\x00a\x00n\x00g\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
"\xff\xfe \x00x\x00m\x00l\x00:\x00s\x00p\x00a\x00c\x00e\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
"\xff\xfe \x00x\x00m\x00l\x00n\x00s\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
"\xff\xfe&\x00l\x00t\x00;\x00"
"\xff\xfe&\x00#\x001\x00;\x00"
"\xff\xfe&\x00a\x00;\x00"
"\xff\xfe&\x00#\x00x\x001\x00;\x00"
"\xff\xfeA\x00N\x00Y\x00"
"\xff\xfeA\x00T\x00T\x00L\x00I\x00S\x00T\x00"
"\xff\xfeC\x00D\x00A\x00T\x00A\x00"
"\xff\xfeD\x00O\x00C\x00T\x00Y\x00P\x00E\x00"
"\xff\xfeE\x00L\x00E\x00M\x00E\x00N\x00T\x00"
"\xff\xfeE\x00M\x00P\x00T\x00Y\x00"
"\xff\xfeE\x00N\x00T\x00I\x00T\x00I\x00E\x00S\x00"
"\xff\xfeE\x00N\x00T\x00I\x00T\x00Y\x00"
"\xff\xfeF\x00I\x00X\x00E\x00D\x00"
"\xff\xfeI\x00D\x00"
"\xff\xfeI\x00D\x00R\x00E\x00F\x00"
"\xff\xfeI\x00D\x00R\x00E\x00F\x00S\x00"
"\xff\xfeI\x00G\x00N\x00O\x00R\x00E\x00"
"\xff\xfeI\x00M\x00P\x00L\x00I\x00E\x00D\x00"
"\xff\xfeI\x00N\x00C\x00L\x00U\x00D\x00E\x00"
"\xff\xfeN\x00D\x00A\x00T\x00A\x00"
"\xff\xfeN\x00M\x00T\x00O\x00K\x00E\x00N\x00"
"\xff\xfeN\x00M\x00T\x00O\x00K\x00E\x00N\x00S\x00"
"\xff\xfeN\x00O\x00T\x00A\x00T\x00I\x00O\x00N\x00"
"\xff\xfeP\x00C\x00D\x00A\x00T\x00A\x00"
"\xff\xfeP\x00U\x00B\x00L\x00I\x00C\x00"
"\xff\xfeR\x00E\x00Q\x00U\x00I\x00R\x00E\x00D\x00"
"\xff\xfeS\x00Y\x00S\x00T\x00E\x00M\x00"
"\xff\xfe<\x00"
"\xff\xfe>\x00"
"\xff\xfe/\x00>\x00"
"\xff\xfe<\x00/\x00"
"\xff\xfe<\x00?\x00"
"\xff\xfe?\x00>\x00"
"\xff\xfe<\x00!\x00"
"\xff\xfe!\x00>\x00"
"\xff\xfe[\x00]\x00"
"\xff\xfe]\x00]\x00"
"\xff\xfe<\x00!\x00[\x00C\x00D\x00A\x00T\x00A\x00[\x00"
"\xff\xfe<\x00!\x00[\x00C\x00D\x00A\x00T\x00A\x00[\x00]\x00]\x00>\x00"
"\xff\xfe\\\x00"\x00\\\x00"\x00"
"\xff\xfe'\x00'\x00"
"\xff\xfe=\x00\\\x00"\x00\\\x00"\x00"
"\xff\xfe=\x00'\x00'\x00"
"\xff\xfe<\x00!\x00A\x00T\x00T\x00L\x00I\x00S\x00T\x00"
"\xff\xfe<\x00!\x00D\x00O\x00C\x00T\x00Y\x00P\x00E\x00"
"\xff\xfe<\x00!\x00E\x00L\x00E\x00M\x00E\x00N\x00T\x00"
"\xff\xfe<\x00!\x00E\x00N\x00T\x00I\x00T\x00Y\x00"
"\xff\xfe<\x00!\x00[\x00I\x00G\x00N\x00O\x00R\x00E\x00[\x00"
"\xff\xfe<\x00!\x00[\x00I\x00N\x00C\x00L\x00U\x00D\x00E\x00[\x00"
"\xff\xfe<\x00!\x00N\x00O\x00T\x00A\x00T\x00I\x00O\x00N\x00"
"\xff\xfe#\x00C\x00D\x00A\x00T\x00A\x00"
"\xff\xfe#\x00F\x00I\x00X\x00E\x00D\x00"
"\xff\xfe#\x00I\x00M\x00P\x00L\x00I\x00E\x00D\x00"
"\xff\xfe#\x00P\x00C\x00D\x00A\x00T\x00A\x00"
"\xff\xfe#\x00R\x00E\x00Q\x00U\x00I\x00R\x00E\x00D\x00"
"\xff\xfeI\x00S\x00O\x00-\x008\x008\x005\x009\x00-\x001\x00"
"\xff\xfeU\x00S\x00-\x00A\x00S\x00C\x00I\x00I\x00"
"\xff\xfeU\x00T\x00F\x00-\x008\x00"
"\xff\xfeU\x00T\x00F\x00-\x001\x006\x00"
"\xff\xfeU\x00T\x00F\x00-\x001\x006\x00B\x00E\x00"
"\xff\xfeU\x00T\x00F\x00-\x001\x006\x00L\x00E\x00"
"\xff\xfex\x00m\x00l\x00n\x00s\x00"
"\xff\xfex\x00m\x00l\x00n\x00s\x00:\x00"
"\xff\xfex\x00m\x00l\x00n\x00s\x00:\x00x\x00h\x00t\x00m\x00l\x00=\x00\\\x00"\x00h\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00w\x003\x00.\x00o\x00r\x00g\x00/\x001\x009\x009\x009\x00/\x00x\x00h\x00t\x00m\x00l\x00\\\x00"\x00"
"\xff\xfex\x00m\x00l\x00n\x00s\x00:\x00x\x00m\x00l\x00=\x00\\\x00"\x00h\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00w\x003\x00.\x00o\x00r\x00g\x00/\x00X\x00M\x00L\x00/\x001\x009\x009\x008\x00/\x00n\x00a\x00m\x00e\x00s\x00p\x00a\x00c\x00e\x00\\\x00"\x00"
"\xff\xfex\x00m\x00l\x00n\x00s\x00:\x00x\x00m\x00l\x00n\x00s\x00=\x00\\\x00"\x00h\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00w\x003\x00.\x00o\x00r\x00g\x00/\x002\x000\x000\x000\x00/\x00x\x00m\x00l\x00n\x00s\x00\\\x00"\x00"
"\xff\xfe:\x00f\x00a\x00l\x00l\x00b\x00a\x00c\x00k\x00"
"\xff\xfe:\x00a\x00"
"\xff\xfe:\x00i\x00n\x00c\x00l\x00u\x00d\x00e\x00"
"\xff\xfe-\x00-\x00"
"\xff\xfe(\x00)\x00"
"\xff\xfe%\x00a\x00"
"\xff\xfe:\x00s\x00c\x00h\x00e\x00m\x00a\x00"
"\xff\xfeU\x00C\x00S\x00-\x004\x00"
"\xff\xfe<\x00/\x00a\x00>\x00"
"\xff\xfe<\x00a\x00>\x00"
"\xff\xfe<\x00a\x00 \x00/\x00>\x00"
"\xff\xfe<\x00?\x00x\x00m\x00l\x00?\x00>\x00"
"\xff\xfeh\x00t\x00t\x00p\x00:\x00/\x00/\x00d\x00o\x00c\x00b\x00o\x00o\x00"
"\xff\xfeh\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00w\x00"
"\xff\xfeh\x00e\x003\x000\x00"
"\xff\xfeh\x00e\x002\x00"
"\xff\xfeI\x00E\x00T\x00"
"\xff\xfeF\x00D\x00F\x00-\x001\x000\x00"
"\xff\xfea\x00D\x00U\x00C\x00S\x00-\x004\x00O\x00P\x00v\x00e\x00b\x00:\x00"
"\xff\xfea\x00>\x00"
"\xff\xfeU\x00T\x00"
"\xff\xfex\x00M\x00l\x00"
"\xff\xfe/\x00u\x00s\x00r\x00/\x00s\x00h\x00a\x00r\x00e\x00/\x00s\x00g\x00"
"\xff\xfeh\x00a\x000\x007\x00"
"\xff\xfeh\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00o\x00a\x00"
"\xff\xfec\x00l\x00e\x00"

View File

@ -0,0 +1,103 @@
# xml.dict converted to UTF-16BE encoding.
"\x00 \x00e\x00n\x00c\x00o\x00d\x00i\x00n\x00g\x00=\x00\\\x00"\x001\x00\\\x00""
"\x00 \x00a\x00=\x00\\\x00"\x001\x00\\\x00""
"\x00 \x00h\x00r\x00e\x00f\x00=\x00\\\x00"\x001\x00\\\x00""
"\x00 \x00s\x00t\x00a\x00n\x00d\x00a\x00l\x00o\x00n\x00e\x00=\x00\\\x00"\x00n\x00o\x00\\\x00""
"\x00 \x00v\x00e\x00r\x00s\x00i\x00o\x00n\x00=\x00\\\x00"\x001\x00\\\x00""
"\x00 \x00x\x00m\x00l\x00:\x00b\x00a\x00s\x00e\x00=\x00\\\x00"\x001\x00\\\x00""
"\x00 \x00x\x00m\x00l\x00:\x00i\x00d\x00=\x00\\\x00"\x001\x00\\\x00""
"\x00 \x00x\x00m\x00l\x00:\x00l\x00a\x00n\x00g\x00=\x00\\\x00"\x001\x00\\\x00""
"\x00 \x00x\x00m\x00l\x00:\x00s\x00p\x00a\x00c\x00e\x00=\x00\\\x00"\x001\x00\\\x00""
"\x00 \x00x\x00m\x00l\x00n\x00s\x00=\x00\\\x00"\x001\x00\\\x00""
"\x00&\x00l\x00t\x00;"
"\x00&\x00#\x001\x00;"
"\x00&\x00a\x00;"
"\x00&\x00#\x00x\x001\x00;"
"\x00A\x00N\x00Y"
"\x00A\x00T\x00T\x00L\x00I\x00S\x00T"
"\x00C\x00D\x00A\x00T\x00A"
"\x00D\x00O\x00C\x00T\x00Y\x00P\x00E"
"\x00E\x00L\x00E\x00M\x00E\x00N\x00T"
"\x00E\x00M\x00P\x00T\x00Y"
"\x00E\x00N\x00T\x00I\x00T\x00I\x00E\x00S"
"\x00E\x00N\x00T\x00I\x00T\x00Y"
"\x00F\x00I\x00X\x00E\x00D"
"\x00I\x00D"
"\x00I\x00D\x00R\x00E\x00F"
"\x00I\x00D\x00R\x00E\x00F\x00S"
"\x00I\x00G\x00N\x00O\x00R\x00E"
"\x00I\x00M\x00P\x00L\x00I\x00E\x00D"
"\x00I\x00N\x00C\x00L\x00U\x00D\x00E"
"\x00N\x00D\x00A\x00T\x00A"
"\x00N\x00M\x00T\x00O\x00K\x00E\x00N"
"\x00N\x00M\x00T\x00O\x00K\x00E\x00N\x00S"
"\x00N\x00O\x00T\x00A\x00T\x00I\x00O\x00N"
"\x00P\x00C\x00D\x00A\x00T\x00A"
"\x00P\x00U\x00B\x00L\x00I\x00C"
"\x00R\x00E\x00Q\x00U\x00I\x00R\x00E\x00D"
"\x00S\x00Y\x00S\x00T\x00E\x00M"
"\x00<"
"\x00>"
"\x00/\x00>"
"\x00<\x00/"
"\x00<\x00?"
"\x00?\x00>"
"\x00<\x00!"
"\x00!\x00>"
"\x00[\x00]"
"\x00]\x00]"
"\x00<\x00!\x00[\x00C\x00D\x00A\x00T\x00A\x00["
"\x00<\x00!\x00[\x00C\x00D\x00A\x00T\x00A\x00[\x00]\x00]\x00>"
"\x00\\\x00"\x00\\\x00""
"\x00'\x00'"
"\x00=\x00\\\x00"\x00\\\x00""
"\x00=\x00'\x00'"
"\x00<\x00!\x00A\x00T\x00T\x00L\x00I\x00S\x00T"
"\x00<\x00!\x00D\x00O\x00C\x00T\x00Y\x00P\x00E"
"\x00<\x00!\x00E\x00L\x00E\x00M\x00E\x00N\x00T"
"\x00<\x00!\x00E\x00N\x00T\x00I\x00T\x00Y"
"\x00<\x00!\x00[\x00I\x00G\x00N\x00O\x00R\x00E\x00["
"\x00<\x00!\x00[\x00I\x00N\x00C\x00L\x00U\x00D\x00E\x00["
"\x00<\x00!\x00N\x00O\x00T\x00A\x00T\x00I\x00O\x00N"
"\x00#\x00C\x00D\x00A\x00T\x00A"
"\x00#\x00F\x00I\x00X\x00E\x00D"
"\x00#\x00I\x00M\x00P\x00L\x00I\x00E\x00D"
"\x00#\x00P\x00C\x00D\x00A\x00T\x00A"
"\x00#\x00R\x00E\x00Q\x00U\x00I\x00R\x00E\x00D"
"\x00I\x00S\x00O\x00-\x008\x008\x005\x009\x00-\x001"
"\x00U\x00S\x00-\x00A\x00S\x00C\x00I\x00I"
"\x00U\x00T\x00F\x00-\x008"
"\x00U\x00T\x00F\x00-\x001\x006"
"\x00U\x00T\x00F\x00-\x001\x006\x00B\x00E"
"\x00U\x00T\x00F\x00-\x001\x006\x00L\x00E"
"\x00x\x00m\x00l\x00n\x00s"
"\x00x\x00m\x00l\x00n\x00s\x00:"
"\x00x\x00m\x00l\x00n\x00s\x00:\x00x\x00h\x00t\x00m\x00l\x00=\x00\\\x00"\x00h\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00w\x003\x00.\x00o\x00r\x00g\x00/\x001\x009\x009\x009\x00/\x00x\x00h\x00t\x00m\x00l\x00\\\x00""
"\x00x\x00m\x00l\x00n\x00s\x00:\x00x\x00m\x00l\x00=\x00\\\x00"\x00h\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00w\x003\x00.\x00o\x00r\x00g\x00/\x00X\x00M\x00L\x00/\x001\x009\x009\x008\x00/\x00n\x00a\x00m\x00e\x00s\x00p\x00a\x00c\x00e\x00\\\x00""
"\x00x\x00m\x00l\x00n\x00s\x00:\x00x\x00m\x00l\x00n\x00s\x00=\x00\\\x00"\x00h\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00w\x003\x00.\x00o\x00r\x00g\x00/\x002\x000\x000\x000\x00/\x00x\x00m\x00l\x00n\x00s\x00\\\x00""
"\x00:\x00f\x00a\x00l\x00l\x00b\x00a\x00c\x00k"
"\x00:\x00a"
"\x00:\x00i\x00n\x00c\x00l\x00u\x00d\x00e"
"\x00-\x00-"
"\x00(\x00)"
"\x00%\x00a"
"\x00:\x00s\x00c\x00h\x00e\x00m\x00a"
"\x00U\x00C\x00S\x00-\x004"
"\x00<\x00/\x00a\x00>"
"\x00<\x00a\x00>"
"\x00<\x00a\x00 \x00/\x00>"
"\x00<\x00?\x00x\x00m\x00l\x00?\x00>"
"\x00h\x00t\x00t\x00p\x00:\x00/\x00/\x00d\x00o\x00c\x00b\x00o\x00o"
"\x00h\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00w"
"\x00h\x00e\x003\x000"
"\x00h\x00e\x002"
"\x00I\x00E\x00T"
"\x00F\x00D\x00F\x00-\x001\x000"
"\x00a\x00D\x00U\x00C\x00S\x00-\x004\x00O\x00P\x00v\x00e\x00b\x00:"
"\x00a\x00>"
"\x00U\x00T"
"\x00x\x00M\x00l"
"\x00/\x00u\x00s\x00r\x00/\x00s\x00h\x00a\x00r\x00e\x00/\x00s\x00g"
"\x00h\x00a\x000\x007"
"\x00h\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00o\x00a"
"\x00c\x00l\x00e"

View File

@ -0,0 +1,103 @@
# xml.dict converted to UTF-16LE encoding.
" \x00e\x00n\x00c\x00o\x00d\x00i\x00n\x00g\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
" \x00a\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
" \x00h\x00r\x00e\x00f\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
" \x00s\x00t\x00a\x00n\x00d\x00a\x00l\x00o\x00n\x00e\x00=\x00\\\x00"\x00n\x00o\x00\\\x00"\x00"
" \x00v\x00e\x00r\x00s\x00i\x00o\x00n\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
" \x00x\x00m\x00l\x00:\x00b\x00a\x00s\x00e\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
" \x00x\x00m\x00l\x00:\x00i\x00d\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
" \x00x\x00m\x00l\x00:\x00l\x00a\x00n\x00g\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
" \x00x\x00m\x00l\x00:\x00s\x00p\x00a\x00c\x00e\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
" \x00x\x00m\x00l\x00n\x00s\x00=\x00\\\x00"\x001\x00\\\x00"\x00"
"&\x00l\x00t\x00;\x00"
"&\x00#\x001\x00;\x00"
"&\x00a\x00;\x00"
"&\x00#\x00x\x001\x00;\x00"
"A\x00N\x00Y\x00"
"A\x00T\x00T\x00L\x00I\x00S\x00T\x00"
"C\x00D\x00A\x00T\x00A\x00"
"D\x00O\x00C\x00T\x00Y\x00P\x00E\x00"
"E\x00L\x00E\x00M\x00E\x00N\x00T\x00"
"E\x00M\x00P\x00T\x00Y\x00"
"E\x00N\x00T\x00I\x00T\x00I\x00E\x00S\x00"
"E\x00N\x00T\x00I\x00T\x00Y\x00"
"F\x00I\x00X\x00E\x00D\x00"
"I\x00D\x00"
"I\x00D\x00R\x00E\x00F\x00"
"I\x00D\x00R\x00E\x00F\x00S\x00"
"I\x00G\x00N\x00O\x00R\x00E\x00"
"I\x00M\x00P\x00L\x00I\x00E\x00D\x00"
"I\x00N\x00C\x00L\x00U\x00D\x00E\x00"
"N\x00D\x00A\x00T\x00A\x00"
"N\x00M\x00T\x00O\x00K\x00E\x00N\x00"
"N\x00M\x00T\x00O\x00K\x00E\x00N\x00S\x00"
"N\x00O\x00T\x00A\x00T\x00I\x00O\x00N\x00"
"P\x00C\x00D\x00A\x00T\x00A\x00"
"P\x00U\x00B\x00L\x00I\x00C\x00"
"R\x00E\x00Q\x00U\x00I\x00R\x00E\x00D\x00"
"S\x00Y\x00S\x00T\x00E\x00M\x00"
"<\x00"
">\x00"
"/\x00>\x00"
"<\x00/\x00"
"<\x00?\x00"
"?\x00>\x00"
"<\x00!\x00"
"!\x00>\x00"
"[\x00]\x00"
"]\x00]\x00"
"<\x00!\x00[\x00C\x00D\x00A\x00T\x00A\x00[\x00"
"<\x00!\x00[\x00C\x00D\x00A\x00T\x00A\x00[\x00]\x00]\x00>\x00"
"\\\x00"\x00\\\x00"\x00"
"'\x00'\x00"
"=\x00\\\x00"\x00\\\x00"\x00"
"=\x00'\x00'\x00"
"<\x00!\x00A\x00T\x00T\x00L\x00I\x00S\x00T\x00"
"<\x00!\x00D\x00O\x00C\x00T\x00Y\x00P\x00E\x00"
"<\x00!\x00E\x00L\x00E\x00M\x00E\x00N\x00T\x00"
"<\x00!\x00E\x00N\x00T\x00I\x00T\x00Y\x00"
"<\x00!\x00[\x00I\x00G\x00N\x00O\x00R\x00E\x00[\x00"
"<\x00!\x00[\x00I\x00N\x00C\x00L\x00U\x00D\x00E\x00[\x00"
"<\x00!\x00N\x00O\x00T\x00A\x00T\x00I\x00O\x00N\x00"
"#\x00C\x00D\x00A\x00T\x00A\x00"
"#\x00F\x00I\x00X\x00E\x00D\x00"
"#\x00I\x00M\x00P\x00L\x00I\x00E\x00D\x00"
"#\x00P\x00C\x00D\x00A\x00T\x00A\x00"
"#\x00R\x00E\x00Q\x00U\x00I\x00R\x00E\x00D\x00"
"I\x00S\x00O\x00-\x008\x008\x005\x009\x00-\x001\x00"
"U\x00S\x00-\x00A\x00S\x00C\x00I\x00I\x00"
"U\x00T\x00F\x00-\x008\x00"
"U\x00T\x00F\x00-\x001\x006\x00"
"U\x00T\x00F\x00-\x001\x006\x00B\x00E\x00"
"U\x00T\x00F\x00-\x001\x006\x00L\x00E\x00"
"x\x00m\x00l\x00n\x00s\x00"
"x\x00m\x00l\x00n\x00s\x00:\x00"
"x\x00m\x00l\x00n\x00s\x00:\x00x\x00h\x00t\x00m\x00l\x00=\x00\\\x00"\x00h\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00w\x003\x00.\x00o\x00r\x00g\x00/\x001\x009\x009\x009\x00/\x00x\x00h\x00t\x00m\x00l\x00\\\x00"\x00"
"x\x00m\x00l\x00n\x00s\x00:\x00x\x00m\x00l\x00=\x00\\\x00"\x00h\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00w\x003\x00.\x00o\x00r\x00g\x00/\x00X\x00M\x00L\x00/\x001\x009\x009\x008\x00/\x00n\x00a\x00m\x00e\x00s\x00p\x00a\x00c\x00e\x00\\\x00"\x00"
"x\x00m\x00l\x00n\x00s\x00:\x00x\x00m\x00l\x00n\x00s\x00=\x00\\\x00"\x00h\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00w\x003\x00.\x00o\x00r\x00g\x00/\x002\x000\x000\x000\x00/\x00x\x00m\x00l\x00n\x00s\x00\\\x00"\x00"
":\x00f\x00a\x00l\x00l\x00b\x00a\x00c\x00k\x00"
":\x00a\x00"
":\x00i\x00n\x00c\x00l\x00u\x00d\x00e\x00"
"-\x00-\x00"
"(\x00)\x00"
"%\x00a\x00"
":\x00s\x00c\x00h\x00e\x00m\x00a\x00"
"U\x00C\x00S\x00-\x004\x00"
"<\x00/\x00a\x00>\x00"
"<\x00a\x00>\x00"
"<\x00a\x00 \x00/\x00>\x00"
"<\x00?\x00x\x00m\x00l\x00?\x00>\x00"
"h\x00t\x00t\x00p\x00:\x00/\x00/\x00d\x00o\x00c\x00b\x00o\x00o\x00"
"h\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00w\x00"
"h\x00e\x003\x000\x00"
"h\x00e\x002\x00"
"I\x00E\x00T\x00"
"F\x00D\x00F\x00-\x001\x000\x00"
"a\x00D\x00U\x00C\x00S\x00-\x004\x00O\x00P\x00v\x00e\x00b\x00:\x00"
"a\x00>\x00"
"U\x00T\x00"
"x\x00M\x00l\x00"
"/\x00u\x00s\x00r\x00/\x00s\x00h\x00a\x00r\x00e\x00/\x00s\x00g\x00"
"h\x00a\x000\x007\x00"
"h\x00t\x00t\x00p\x00:\x00/\x00/\x00w\x00w\x00w\x00.\x00o\x00a\x00"
"c\x00l\x00e\x00"

66
dictionaries/xpath.dict Normal file
View File

@ -0,0 +1,66 @@
# https://developer.mozilla.org/en-US/docs/Web/XPath
# https://devhints.io/xpath
# selectors
"//"
"./"
"::"
"[*]"
# functions - https://developer.mozilla.org/en-US/docs/Web/XPath/Functions
"boolean("
"ceiling("
"choose("
"concat("
"contains("
"count("
"current()"
"document("
"element-available("
"ends-with("
"false()"
"floor("
"format-number("
"function-available("
"generate-id("
"id("
"key("
"lang("
"last()"
"local-name("
"name("
"namespace-uri("
"normalize-space("
"not("
"number("
"or"
"position("
"round("
"starts-with("
"string("
"string-length("
"substring("
"substring-after("
"substring-before("
"sum("
"system-property("
"text()"
"translate("
"true()"
"unparsed-entity-url("
# axes - https://developer.mozilla.org/en-US/docs/Web/XPath/Axes
"ancestor"
"ancestor-or-self"
"attribute"
"child"
"descendant"
"descendant-or-self"
"following"
"following-sibling"
"namespace"
"parent"
"preceding"
"preceding-sibling"
"self"

118
dictionaries/xslt.dict Normal file
View File

@ -0,0 +1,118 @@
# Tokens taken from:
# - https://www.w3.org/TR/xslt20/
# - https://en.wikipedia.org/wiki/XSLT_elements
# - https://developer.mozilla.org/en-US/docs/Web/XSLT/Element
"<?"
"<?xslt-"
"?>"
"version=\"1.0\""
"encoding=\""
"<xsl:"
"/>"
"</xsl:"
">"
"<"
"<!--"
"-->"
"@"
"apply-imports"
"apply-templates"
"attribute"
"attribute-set"
"call-template"
"character-map"
"choose"
"comment"
"copy"
"copy-of"
"decimal-format"
"default-collection"
"element"
"exclude-result-prefixes"
"extension-element-prefixes"
"fallback"
"for-each"
"function"
"if"
"import"
"import-schema"
"include"
"key"
"message"
"namespace-alias"
"number"
"otherwise"
"output"
"param"
"preserve-space"
"processing-instruction"
"sort"
"strip-space"
"stylesheet"
"template"
"text"
"transform"
"use-when"
"value-of"
"variable"
"version"
"when"
"with-param"
# attributes
" name=\""
" namespace=\""
" select=\""
" test=\""
" type=\""
" value=\""
" prefix=\""
# functions
"ceiling"
"concat"
"contains"
"count"
"floor"
"normalize_space"
"position"
"round"
"string"
"string-length"
"substring"
"substring-after"
"substring-before"
"sum"
"translate"
# math extension
"http://exslt.org/math"
"math:highest"
"math:lowest"
"math:max"
"math:min"
# regex extension
"http://exslt.org/regular-expressions"
"regexp:match"
"regexp:replace"
"regexp:test"
# set extension
"http://exslt.org/sets"
"set:difference"
"set:distinct"
"set:has-same-node"
"set:intersection"
"set:leading"
"set:trailing"
# str extension
"http://exslt.org/strings"
"str:concat"
"str:split"
"str:tokenize"

79
dictionaries/yaml.dict Normal file
View File

@ -0,0 +1,79 @@
# sources:
# - https://en.wikipedia.org/wiki/YAML
# - https://yaml.org/spec/1.1/
# - https://yaml.org/type/
directive_yaml="%YAML 1.2"
directive_tag="%TAG !yaml! tag:yaml.org,2002:"
directive_tag2="%TAG !m! !my-"
true="true"
caps_true="TRUE"
caps_false="FALSE"
literal_true="YES"
literal_false="NO"
false="false"
start="---"
comment="#"
list="- "
key="k: "
walrus="=:"
question_key="?k: "
number="\"0e5\""
expand="!!"
list="[a,b]"
dict="{k: v, x: y}"
value=": v"
exponent="e+03"
neg_inf="-.inf"
nan=".NaN"
end="..."
quoted_key="'k'"
newline="k: |"
newline2="k: >"
anchor="&a"
reference="*a"
type_binary="!!binary"
type_bool="!!bool"
type_float="!!float"
type_int="!!int"
type_map="!!map"
type_merge="!!merge"
type_null="!!null"
type_omap="!!omap"
type_pairs="!!pairs"
type_seq="!!seq"
type_set="!!set"
type_str="!!str"
type_timestamp="!!timestamp"
type_value="!!value"
type_yaml="!!yaml"
type_python="!!python"
merge = "<<"
number_separation="_"
decimal_number="+30_123"
octal_number="0123"
hex_number="0x_12_23"
bin_number="0b1001_1001"
sexa_number="123:34:75"
complex_mapping="? "
litteral_style=" |"
folded_style=" >"
timestamp="2001-12-14t21:59:43.10-05:00"
escaped_unicode="\\u2029"
"["
"]"
"{"
"}"
"-"
","
"&"
"<<"
":"
"|"
"!!"
">"
"\""
"'"
integer="123"
float="12.5"
mantissa="1.3e+9"

196
dictionaries/yara.dict Normal file
View File

@ -0,0 +1,196 @@
# https://yara.readthedocs.io/en/latest/
# Keywords
"all"
"and"
"any"
"ascii"
"at"
"condition"
"contains"
"entrypoint"
"false"
"filesize"
"for"
"fullword"
"global"
"import"
"in"
"include"
"int16"
"int16be"
"int32"
"int32be"
"int8"
"int8be"
"matches"
"meta"
"nocase"
"not"
"of"
"or"
"private"
"rule"
"strings"
"them"
"true"
"uint16"
"uint16be"
"uint32"
"uint32be"
"uint8"
"uint8be"
"wide"
"xor"
# pe module
"\"pe\""
"pe.machine"
"pe.checksum"
"pe.calculate_checksum"
"pe.subsystem"
"pe.timestamp"
"pe.pointer_to_symbol_table"
"pe.number_of_sumbols"
"pe.size_of_optional_header"
"pe.pothdr_magic"
"pe.size_of_code"
"pe.size_of_initialized_data"
"pe.size_of_unnitialized_data"
"pe.entrypoint"
"pe.base_of_code"
"pe.base_of_data"
"pe.image_base"
"pe.section_alignment"
"pe.file_alignment"
"pe.win32_version_value"
"pe.size_of_image"
"pe.size_of_headers"
"pe.characteristics"
"pe.linker_version"
"pe.os_version"
"pe.image_version"
"pe.subsystem_version"
"pe.dll_characteristics"
"pe.size_of_stack_reserve"
"pe.size_of_stack_commit"
"pe.size_of_heap_reserve"
"pe.size_of_heap_commit"
"pe.loader_flags"
"pe.number_of_rva_and_sizes"
"pe.data_directories"
"pe.number_of_sections"
"pe.sections"
"pe.overlay"
"pe.number_of_resources"
"pe.resource_timestamp"
"pe.resource_version"
"pe.resources"
"pe.version_info"
"pe.number_of_signatures"
"pe.signatures"
"pe.rich_signature"
"pe.exports"
"pe.number_of_exports"
"pe.number_of_imports"
"pe.imports"
"pe.locale"
"pe.language"
"pe.imphash"
"pe.section_index"
"pe.is_dll()"
"pe.is_32bit()"
"pe.is_64bit()"
"pe.rva_to_offset"
# elf module
"\"elf\""
"elf.type"
"elf.machine"
"elf.entry_point"
"elf.number_of_sections"
"elf.sections"
"elf.number_of_segments"
"elf.segments"
"elf.dynamic_section_entires"
"elf.dynamic"
"elf.symtab_entries"
"elf.symtab"
# cuckoo module
"\"cuckoo\""
"cuckoo.network"
"cuckoo.registry"
"cuckoo.filesystem"
"cuckoo.sync"
# magic module
"\"magic\""
"magic.type()"
"magic.mime_type()"
# hash module
"\"hash\""
"hash.md5"
"hash.sha1"
"hash.sha256"
"hash.checksum32"
"hash.crc32"
# math module
"\"math\""
"math.entropuy"
"math.monte_carlo_pi"
"math.serial_correlation"
"math.mean"
"math.deviation"
"math.in_range"
"math.max"
"max.min"
# dotnet module
"\"dotnet\""
"dotnet.version"
"dotnet.module_name"
"dotnet.number_of_streams"
"dotnet.streams"
"dotnet.number_of_guid"
"dotnet.guids"
"dotnet.number_of_resources"
"dotnet.resources"
"dotnet.assembly"
"dotnet.number_of_modulerefs"
"dotnet.modulerefs"
"dotnet.typelib"
"dotnet.assembly_refs"
"dotnet.number_of_user_strings"
"dotnet.user_strings"
"dotnet.number_of_field_offsets"
"dotnet.field_offsets"
# time module
"\"time\""
"time.now()"
# misc
"/*"
"*/"
"//"
"$a="
"{a?}"
"[0-9]"
"{(0A|??)}"
"<<"
">>"
"#a"
"$a"
".."
"@a"
# regex
"*?"
"+?"
"??"
"{1,2}?"

3
dictionaries/zip.dict Normal file
View File

@ -0,0 +1,3 @@
header1="\x50\x4B\x03\x04"
header2="\x50\x4B\x05\x06"
header2="\x50\x4B\x07\x08"

Some files were not shown because too many files have changed in this diff Show More