aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2014-11-02 18:04:57 +1300
committerAldo Cortesi <aldo@nullcube.com>2014-11-02 18:04:57 +1300
commitd0de490ef1ced7597471c1867d30213b162a7e89 (patch)
tree4294d3101930b9a4d5b99f2d84aa70d4c3315f99 /test
parent340d0570bfe7ceae68d7d592e3b7283480c351b0 (diff)
downloadmitmproxy-d0de490ef1ced7597471c1867d30213b162a7e89.tar.gz
mitmproxy-d0de490ef1ced7597471c1867d30213b162a7e89.tar.bz2
mitmproxy-d0de490ef1ced7597471c1867d30213b162a7e89.zip
Release prep: binaries build script, release checklist, fuzzing
Diffstat (limited to 'test')
-rw-r--r--test/fuzzing/.env2
-rw-r--r--test/fuzzing/straight_stream6
-rw-r--r--test/fuzzing/straight_stream_patterns12
-rw-r--r--test/fuzzing/straight_stream_ssl6
4 files changed, 21 insertions, 5 deletions
diff --git a/test/fuzzing/.env b/test/fuzzing/.env
index e2cf7829..82ae6a8d 100644
--- a/test/fuzzing/.env
+++ b/test/fuzzing/.env
@@ -2,5 +2,5 @@
MITMDUMP=../../mitmdump
PATHOD=../../../pathod/pathod
PATHOC=../../../pathod/pathoc
-FUZZ_SETTINGS=-remTt 1 -n 0 -I 200,400,405,502
+FUZZ_SETTINGS=-remTt 1 -n 0
diff --git a/test/fuzzing/straight_stream b/test/fuzzing/straight_stream
index 99af212f..41e2a6e1 100644
--- a/test/fuzzing/straight_stream
+++ b/test/fuzzing/straight_stream
@@ -1,6 +1,6 @@
-mitmdump: $MITMDUMP -q --stream 1
-pathod: $PATHOD -q
+mitmdump: $MITMDUMP
+pathod: $PATHOD
pathoc: sleep 2 && $PATHOC $FUZZ_SETTINGS localhost:8080 ./straight_stream_patterns
-#pathoc: sleep 2 && $PATHOC $FUZZ_SETTINGS localhost:8080 /tmp/err
+#pathoc: sleep 2 && $PATHOC localhost:8080 /tmp/err
diff --git a/test/fuzzing/straight_stream_patterns b/test/fuzzing/straight_stream_patterns
index 591bf20d..93a066e6 100644
--- a/test/fuzzing/straight_stream_patterns
+++ b/test/fuzzing/straight_stream_patterns
@@ -4,4 +4,14 @@ get:'http://localhost:9999/p/':s'200:b"foo"':ir,'9'
get:'http://localhost:9999/p/':s'200:b"foo"':ir,':'
get:'http://localhost:9999/p/':s'200:b"foo"':ir,'"'
get:'http://localhost:9999/p/':s'200:b"foo"':ir,'-'
-get:'http://localhost:9999/p/':s'200:b"foo"':dr
+
+get:'http://localhost:9999/p/':s'200:b"foo":ir,"\n"'
+get:'http://localhost:9999/p/':s'200:b"foo":ir,"a"'
+get:'http://localhost:9999/p/':s'200:b"foo":ir,"9"'
+get:'http://localhost:9999/p/':s'200:b"foo":ir,":"'
+get:'http://localhost:9999/p/':s"200:b'foo':ir,'\"'"
+get:'http://localhost:9999/p/':s'200:b"foo":ir,"-"'
+get:'http://localhost:9999/p/':s'200:b"foo":dr'
+
+get:'http://localhost:9999/p/':s'200:b"foo"':ir,@2
+get:'http://localhost:9999/p/':s'200:b"foo":ir,@2'
diff --git a/test/fuzzing/straight_stream_ssl b/test/fuzzing/straight_stream_ssl
new file mode 100644
index 00000000..708ff0b3
--- /dev/null
+++ b/test/fuzzing/straight_stream_ssl
@@ -0,0 +1,6 @@
+
+mitmdump: $MITMDUMP -q --stream 1
+pathod: $PATHOD
+pathoc: sleep 2 && $PATHOC $FUZZ_SETTINGS localhost:8080 ./straight_stream_patterns
+#pathoc: sleep 2 && $PATHOC localhost:8080 /tmp/err
+