forked from mitmproxy/mitmproxy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin some simple fuzzing with pathod.
Finally doing what I started writing pathod for in the first place...
- Loading branch information
Showing
4 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ MANIFEST | |
/dist | ||
/tmp | ||
/doc | ||
/venv | ||
*.py[cdo] | ||
*.swp | ||
*.swo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import tservers | ||
|
||
""" | ||
A collection of errors turned up by fuzzing. | ||
""" | ||
|
||
class TestFuzzy(tservers.HTTPProxTest): | ||
def test_idna_err(self): | ||
req = r'get:"http://localhost:%s":i10,"\xc6"' | ||
p = self.pathoc() | ||
assert p.request(req%self.server.port).status_code == 400 | ||
|