summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2016-12-12 22:55:18 +1100
committerNick Mathewson <nickm@torproject.org>2017-01-30 08:37:23 -0500
commit416e2f6b283801190f087445d295b391e08cc902 (patch)
tree32d9c08f3ba2c9f7f18f1f0efa20198440c96228 /src
parent56b61d18311998210f07c3d4b4f21a497bc04d48 (diff)
downloadtor-416e2f6b283801190f087445d295b391e08cc902.tar.gz
tor-416e2f6b283801190f087445d295b391e08cc902.zip
Guide fuzzing by adding standard tor GET and POST testcases
Diffstat (limited to 'src')
-rw-r--r--src/test/fuzz/dict/http24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/fuzz/dict/http b/src/test/fuzz/dict/http
new file mode 100644
index 0000000000..1a7b61e8d4
--- /dev/null
+++ b/src/test/fuzz/dict/http
@@ -0,0 +1,24 @@
+#
+# AFL dictionary for the Tor Directory protocol's HTTP headers
+# ------------------------------------------------------------
+#
+# Extracted from directory_handle_command() in the tor source code
+#
+# Copyright (c) 2016, The Tor Project, Inc.
+# See LICENSE for licensing information
+#
+# Usage:
+# Select the dictionaries relevant to the part of the directory protocol you
+# are fuzzing, and feed them to your fuzzer (if it supports dictionaries).
+
+http_header_body_delimiter = "\x0d\x0a\x0d\x0a"
+http_header_header_delimiter = "\x0d\x0a"
+# multi-character tokens only
+#http_header_value_delimiter = " "
+
+content_length_header = "Content-Length:"
+forwarded_for_header = "Forwarded-For:"
+x_forwarded_for_header = "X-Forwarded-For:"
+
+get_command = "GET"
+post_command = "POST"