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

error #7

Open
gitbotezok opened this issue May 28, 2022 · 17 comments
Open

error #7

gitbotezok opened this issue May 28, 2022 · 17 comments

Comments

@gitbotezok
Copy link

Hello!
I've got this error when i try to do reverse shell from my windows vps to linux vps

[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)
[SSL] internal error (_ssl.c:1124)

how to fix it ?

@locus2k
Copy link

locus2k commented Jun 2, 2022

The issue is TLSv1 is deprecated and no longer used. You need to switch it to TLS_SERVER

In ReverseSocksProxyHandler.py change line 16 to be ssl.PROTOCOL_TLS_SERVER

@gitbotezok
Copy link
Author

The issue is TLSv1 is deprecated and no longer used. You need to switch it to TLS_SERVER

In ReverseSocksProxyHandler.py change line 16 to be ssl.PROTOCOL_TLS_SERVER

i changed what you said to change,now the printout is "[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1124)

@locus2k
Copy link

locus2k commented Jun 3, 2022

What version of python are you running?

@gitbotezok
Copy link
Author

What version of python are you running?
ls /usr/bin | grep python
python3
python3.8

@locus2k
Copy link

locus2k commented Jun 3, 2022

Python SSL Docs

You can try PROTOCOL_TLS but this has been deprecated in newer versions of python

@gitbotezok
Copy link
Author

[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1124)
i've got the same issue
[SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:1124)

any ideas how to fix it, or what to replace/change?

@gitbotezok
Copy link
Author

Python SSL Docs

You can try PROTOCOL_TLS but this has been deprecated in newer versions of python

or maybe you know useful and easy to use alternative for this?

@locus2k
Copy link

locus2k commented Jun 3, 2022

Can try reverting it back to the old tls and make sure you the certFingerprint is correct

@gitbotezok
Copy link
Author

Can try reverting it back to the old tls and make sure you the certFingerprint is correct

Okay, i reverted it back. Sorry for stypid question, but i am just a beginner in it. how to check if certFingerprint is correct?

@locus2k
Copy link

locus2k commented Jun 3, 2022

First create the certs
openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout private.key -out cert.pem

Then to get the fingerprint type
openssl x509 -in cert.pem -noout -sha1 -fingerprint | cut -d "=" -f 2 | tr -d ":"

@gitbotezok
Copy link
Author

okay, i did it, got somethin like "18E82BC42325DD02121115D35961D0F5292E"
now to do same steps in faq?

First create the certs openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout private.key -out cert.pem

Then to get the fingerprint type openssl x509 -in cert.pem -noout -sha1 -fingerprint | cut -d "=" -f 2 | tr -d ":"

okay, i did it, got somethin like "18E82BC42325DD02121115D35961D0F5292E"
now to do same steps in faq?

@locus2k
Copy link

locus2k commented Jun 3, 2022

Correct

@gitbotezok
Copy link
Author

we are stuck in endless circle =)
[SSL] internal error (_ssl.c:1124)

@gitbotezok
Copy link
Author

Correct

thank you for your help anyway, god bless you

@redd1ng
Copy link

redd1ng commented Jun 28, 2022

@gitbotezok changing the line 16 to context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) should solve the problem

@crossmxn
Copy link

@gitbotezok changing the line 16 to context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) should solve the problem

I can confirm this is not working on latest kali...

I also get UNSUPPORTED_PROTOCOL or NO_CIPHERS_AVAILABLE...

Tried changing the openssl conf file without success...

Anyone can help?

Thanks!

@cr7pt0pl4gu3
Copy link

Works by using newest Kali at the time of writing + python2 + MinProtocol = TLSv1.0 in /etc/ssl/openssl.cnf.

Context is:

context = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
context.set_ciphers('DEFAULT:@SECLEVEL=1')

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

5 participants