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

requests.exceptions.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol #4

Open
chandanjv opened this issue Oct 11, 2017 · 5 comments
Open

Comments

@chandanjv
Copy link

When I exeute, I get this error. Can you please help.

CJINGADE-M-T0HG:Downloads chandanjv$ python cve.py -u https://10.127.102.199:8001


/ \ \ / / | | \ / _ / | | / |__ \ / //_ |____ |
| | \ \ / /| |__ ______ ) | | | || | / /| | ) / /_ | | / /
| | \ / / | |
/ /| | | || | / /
| | / / ' | | / /
| |
\ / | |____ / /| || || | / / | |/ /| () | | / /
_
| / || ||___/ ||// ||_____/||//

[@intx0x80]

Traceback (most recent call last):
File "cve.py", line 170, in
createPayload(str(url)+"/",checker)
File "cve.py", line 68, in createPayload
req=requests.put(str(url)+str(f)+"/",data=evil, headers=headers)
File "/Library/Python/2.7/site-packages/requests/api.py", line 126, in put
return request('put', url, data=data, **kwargs)
File "/Library/Python/2.7/site-packages/requests/api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "/Library/Python/2.7/site-packages/requests/sessions.py", line 502, in request
resp = self.send(prep, **send_kwargs)
File "/Library/Python/2.7/site-packages/requests/sessions.py", line 612, in send
r = adapter.send(request, **kwargs)
File "/Library/Python/2.7/site-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:590)
CJINGADE-M-T0HG:Downloads chandanjv$ vi cve.py

@cyberheartmi9
Copy link
Owner

fix it

@cyberheartmi9
Copy link
Owner

check it

@4chr4f
Copy link

4chr4f commented Oct 12, 2017

it's fixed on single exploiter (-u option) but in mass (-l option) still the same ssl handshake error

@AdyRo
Copy link

AdyRo commented Oct 16, 2017

same problem,it's fixed on single exploiter please fix it

Scaning hosts in hosts2.txt
Traceback (most recent call last):
File "tomcat-cve-2017-12617.py", line 209, in
createPayload(str(i)+"/",checker)
File "tomcat-cve-2017-12617.py", line 72, in createPayload
req=requests.put(str(url)+str(f)+"/",data=evil, headers=headers,verify=False)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/requests/api.py", line 126, in put
return request('put', url, data=data, **kwargs)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/requests/api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/requests/adapters.py", line 508, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='%0d', port=80): Max retries exceeded with url: /Poc.jsp/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fa1e2b922d0>: Failed to establish a new connection: [Errno -2] Name or service not known',))

@cyberheartmi9
Copy link
Owner

it fixed but i think you try to connect to host has https and listen on different port not 443 that specify for https like 8081 in this case you try to start TLS handshake for this port will be raise error

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

4 participants