Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Header #15

Open
CreativeWolf opened this issue Apr 5, 2017 · 1 comment
Open

Invalid Header #15

CreativeWolf opened this issue Apr 5, 2017 · 1 comment

Comments

@CreativeWolf
Copy link

Running WebXploiter throws the following error:

Error while checking user agent.Check module log for details.

Entries form module.log

2017-04-05 17:37:02,069 - module_log - ERROR - Invalid header value b"Mozilla/5.0 (X11; Ubuntu; Linuxx86_64; rv:39.0) Gecko/20100101 Firefox/39.0'\n"
Traceback (most recent call last):
  File "/home/ubuntu/WebXploiter/Modules/A1_injection/sql.py", line 29, in execute_all_func
    self.check_user_agent(target)
  File "/home/ubuntu/WebXploiter/Modules/A1_injection/sql.py", line 59, in check_user_agent
    flag = str(urllib.request.urlopen(req).read())
  File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.5/urllib/request.py", line 466, in open
    response = self._open(req, data)
  File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
    '_open', req)
  File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 1282, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open
    h.request(req.get_method(), req.selector, req.data, headers)
  File "/usr/lib/python3.5/http/client.py", line 1106, in request
    self._send_request(method, url, body, headers)
  File "/usr/lib/python3.5/http/client.py", line 1146, in _send_request
    self.putheader(hdr, value)
  File "/usr/lib/python3.5/http/client.py", line 1083, in putheader
    raise ValueError('Invalid header value %r' % (values[i],))
ValueError: Invalid header value b"Mozilla/5.0 (X11; Ubuntu; Linuxx86_64; rv:39.0) Gecko/20100101 Firefox/39.0'\n"

Any pointers please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants