menkrep1337 / XSSCon

XSSCon: Simple XSS Scanner tool
MIT License
212 stars 64 forks source link

failed to parse ... #17

Open jepunband opened 4 years ago

jepunband commented 4 years ago

hi i'm getting this error no matter what url i use.

22:00:49] [INFO] Checking connection to: https://hello.com [22:00:49] [CRITICAL] Internal error: Failed to parse: https://hello.com Traceback (most recent call last): File "/usr/lib/python3/dist-packages/requests/models.py", line 379, in prepare_url scheme, auth, host, port, path, query, fragment = parse_url(url) File "/usr/lib/python3/dist-packages/urllib3/util/url.py", line 392, in parse_url return six.raise_from(LocationParseError(source_url), None) File "", line 2, in raise_from urllib3.exceptions.LocationParseError: Failed to parse: https://hello.com

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "xsscon.py", line 73, in start() File "xsscon.py", line 54, in start crawler.crawl(getopt.u,int(getopt.depth),getopt.proxy,getopt.user_agent,check(getopt),getopt.method,getopt.cookie) File "/home/bgates/gitapps/XSSCon/lib/crawler/crawler.py", line 44, in crawl urls=self.getLinks(base,proxy,headers,cookie) File "/home/bgates/gitapps/XSSCon/lib/crawler/crawler.py", line 19, in getLinks text=conn.get(base).text File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get return self.request('GET', url, *kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 519, in request prep = self.prepare_request(req) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 452, in prepare_request p.prepare( File "/usr/lib/python3/dist-packages/requests/models.py", line 313, in prepare self.prepare_url(url, params) File "/usr/lib/python3/dist-packages/requests/models.py", line 381, in prepare_url raise InvalidURL(e.args) requests.exceptions.InvalidURL: Failed to parse: https://hello.com