From 7835e0c2c7be0e45262a06b5e2ec2399ae019977 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 3 Mar 2013 14:56:56 +1300 Subject: Begin some simple fuzzing with pathod. Finally doing what I started writing pathod for in the first place... --- test/fuzzing/go_proxy | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 test/fuzzing/go_proxy (limited to 'test/fuzzing/go_proxy') diff --git a/test/fuzzing/go_proxy b/test/fuzzing/go_proxy new file mode 100755 index 00000000..1e6bbaef --- /dev/null +++ b/test/fuzzing/go_proxy @@ -0,0 +1,9 @@ +#!/bin/sh +# Assuming: +# mitmproxy/mitmdump is running on port 8080 in straight proxy mode. +# pathod is running on port 9999 + +BASE="/Users/aldo/git/public/pathod/venv/bin/pathoc -eo -I 200,400,502 -p 8080 localhost " +$BASE -n 1000 "get:'http://localhost:9999':ir,@1" + + -- cgit v1.2.3 From 8216801728ea2af82614025ca309a3b5db2ad982 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 3 Mar 2013 15:14:49 +1300 Subject: Three more errors turned up with fuzzing. These are fixed in netlib, regression tests added here. --- test/fuzzing/go_proxy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/fuzzing/go_proxy') diff --git a/test/fuzzing/go_proxy b/test/fuzzing/go_proxy index 1e6bbaef..5960d081 100755 --- a/test/fuzzing/go_proxy +++ b/test/fuzzing/go_proxy @@ -3,7 +3,7 @@ # mitmproxy/mitmdump is running on port 8080 in straight proxy mode. # pathod is running on port 9999 -BASE="/Users/aldo/git/public/pathod/venv/bin/pathoc -eo -I 200,400,502 -p 8080 localhost " -$BASE -n 1000 "get:'http://localhost:9999':ir,@1" +BASE="/Users/aldo/git/public/pathod/venv/bin/pathoc -eo -I 200,400,405,502 -p 8080 localhost " +$BASE -n 10000 "get:'http://localhost:9999':ir,@1" -- cgit v1.2.3 From cde66cd58470cd68a76a9d8b1022a45e99a5cd8d Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 3 Mar 2013 22:03:27 +1300 Subject: Fuzzing, and fixes for errors found with fuzzing. --- test/fuzzing/go_proxy | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'test/fuzzing/go_proxy') diff --git a/test/fuzzing/go_proxy b/test/fuzzing/go_proxy index 5960d081..50588049 100755 --- a/test/fuzzing/go_proxy +++ b/test/fuzzing/go_proxy @@ -3,7 +3,18 @@ # mitmproxy/mitmdump is running on port 8080 in straight proxy mode. # pathod is running on port 9999 -BASE="/Users/aldo/git/public/pathod/venv/bin/pathoc -eo -I 200,400,405,502 -p 8080 localhost " -$BASE -n 10000 "get:'http://localhost:9999':ir,@1" +BASE_HTTP="/Users/aldo/git/public/pathod/pathoc -Tt 1 -eo -I 200,400,405,502 -p 8080 localhost " +#$BASE_HTTP -n 10000 "get:'http://localhost:9999':ir,@1" +#$BASE_HTTP -n 100 "get:'http://localhost:9999':dr" +#$BASE_HTTP -n 10000 "get:'http://localhost:9999/p/200:ir,@300.0 +# Assuming: +# mitmproxy/mitmdump is running on port 8080 in straight proxy mode. +# pathod with SSL enabled is running on port 9999 + +BASE_HTTPS="/Users/aldo/git/public/pathod/pathoc -sc localhost:9999 -Tt 1 -eo -I 200,400,404,405,502,800 -p 8080 localhost " +$BASE_HTTPS -en 10000 "get:/p/200:ir,@1" +#$BASE_HTTP -n 100 "get:/p/'200:dr'" +#$BASE_HTTPS -n 10000 "get:'/p/200:ir,@3000'" +#$BASE_HTTPS -n 10000 "get:'/p/200:ir,\"\ \n \"'" -- cgit v1.2.3 From 8a850dc8e608686a09b02de98dd3b664947c71f3 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 3 Mar 2013 22:39:26 +1300 Subject: Few more fuzzing commands, exclude console app from coverage. --- test/fuzzing/go_proxy | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/fuzzing/go_proxy') diff --git a/test/fuzzing/go_proxy b/test/fuzzing/go_proxy index 50588049..c9b6aef6 100755 --- a/test/fuzzing/go_proxy +++ b/test/fuzzing/go_proxy @@ -14,7 +14,9 @@ BASE_HTTP="/Users/aldo/git/public/pathod/pathoc -Tt 1 -eo -I 200,400,405,502 -p # pathod with SSL enabled is running on port 9999 BASE_HTTPS="/Users/aldo/git/public/pathod/pathoc -sc localhost:9999 -Tt 1 -eo -I 200,400,404,405,502,800 -p 8080 localhost " -$BASE_HTTPS -en 10000 "get:/p/200:ir,@1" -#$BASE_HTTP -n 100 "get:/p/'200:dr'" +$BASE_HTTPS -en 10000 "get:'/p/200:b@10:ir,@1'" +#$BASE_HTTPS -en 10000 "get:'/p/200:ir,@1'" + +#$BASE_HTTPS -n 100 "get:'/p/200:dr'" #$BASE_HTTPS -n 10000 "get:'/p/200:ir,@3000'" -#$BASE_HTTPS -n 10000 "get:'/p/200:ir,\"\ \n \"'" +#$BASE_HTTPS -n 10000 "get:'/p/200:ir,\"\\n\"'" -- cgit v1.2.3