Skip to content

Commit

Permalink
Hotfix 2.3.3 (xmendez#111)
Browse files Browse the repository at this point in the history
* bump wfuzz version
* fix empty string and acceptance test case
  • Loading branch information
xmendez authored Dec 29, 2018
1 parent 93acb87 commit 22a76cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wfuzz/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = 'wfuzz'
__version__ = "2.3.2"
__version__ = "2.3.3"
__build__ = 0x023000
__author__ = 'Xavier Mendez'
__license__ = 'GPL 2.0'
Expand Down
2 changes: 1 addition & 1 deletion src/wfuzz/fuzzobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ def update_from_options(self, options):
if options['follow']:
self.follow = options['follow']

if options['postdata']:
if options['postdata'] is not None:
self.params.post = options['postdata']

if options['method']:
Expand Down
1 change: 1 addition & 0 deletions tests/test_acceptance.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
("test_static_strquery_set", "%s:8000/FUZZ?var=1&var=2" % LOCAL_DOMAIN, [["echo"]], dict(filter="content~'query=var=1&var=2'"), [(200, '/echo')], None),
("test_static_postdata_set", "%s:8000/FUZZ" % LOCAL_DOMAIN, [["echo"]], dict(postdata="a=2", filter="content~'POST_DATA=a=2'"), [(200, '/echo')], None),
("test_static_postdata2_set", "%s:8000/FUZZ" % LOCAL_DOMAIN, [["echo"]], dict(postdata="2", filter="content~'POST_DATA=2'"), [(200, '/echo')], None),
("test_empty_postdata", "%s/FUZZ" % HTTPBIN_URL, [["anything"]], dict(postdata='', filter="content~'POST' and method='POST'"), [(200, '/anything')], None),
("test_static_method_set", "%s/FUZZ" % URL_LOCAL, [["dir"]], dict(method="OPTIONS", filter="content~'Message: Unsupported method (\\\'OPTIONS\\\')'"), [(501, '/dir/dir')], None),
("test_static_header_set", "%s:8000/FUZZ" % LOCAL_DOMAIN, [["echo"]], dict(headers=[("myheader", "isset")], filter="content~'Myheader: isset'"), [(200, '/echo')], None),
("test_static_cookie_set", "%s:8000/FUZZ" % LOCAL_DOMAIN, [["echo"]], dict(cookie=["cookie1=value1", ], filter="content~'Cookie: cookie1=value1'"), [(200, '/echo')], None),
Expand Down

0 comments on commit 22a76cd

Please sign in to comment.