python3 -m webvulnscan http://localhost:8666/
Traceback (most recent call last):
File "/usr/lib/python3.3/runpy.py", line 160, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python3.3/runpy.py", line 73, in _run_code
exec(code, run_globals)
File "./webvulnscan/__main__.py", line 18, in <module>
webvulnscan.main()
File "./webvulnscan/__init__.py", line 103, in main
messages = run(options, arguments)
File "./webvulnscan/__init__.py", line 82, in run
attack(client, log, page)
File "./webvulnscan/utils.py", line 125, in run
cls.attack(client, log, *s)
File "./webvulnscan/attacks/xss.py", line 47, in xss
globals()['attack_' + target_type](client, log, *args)
File "./webvulnscan/attacks/xss.py", line 18, in attack_post
attacked_page = form.send(client, parameters)
File "./webvulnscan/form.py", line 42, in send
return client.download_page(self.action, parameters)
File "./webvulnscan/client.py", line 87, in download_page
url_or_request, parameters, req_headers)
File "./webvulnscan/client.py", line 79, in download
return self._download(request)
File "./webvulnscan/client.py", line 38, in _download
response = self.opener.open(request)
File "/usr/lib/python3.3/urllib/request.py", line 467, in open
req = meth(req)
File "/usr/lib/python3.3/urllib/request.py", line 1179, in do_request_
raise TypeError(msg)
TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str.
Running against vulnsrv: