0xeb-bp / bluekeep

Public work for CVE-2019-0708
GNU General Public License v3.0
289 stars 91 forks source link

Use module Crypto.Cipher.PKCS1_OAEP instead #10

Open PizzaPablo666 opened 3 years ago

PizzaPablo666 commented 3 years ago

└─# python3 win7_32_poc.py 130 ⨯ [+] initializing connection [+] sending basic settings exchange [+] sending erect domain and attach user [+] sending channel join requests [+] sending security exchange Traceback (most recent call last): File "win7_32_poc.py", line 175, in main() File "win7_32_poc.py", line 40, in main crypter = rdp.connect(s) File "/home/kali/bluekeep/rdp.py", line 469, in connect s.sendall(sec_exchange(pub_key, bit_len)) File "/home/kali/bluekeep/rdp.py", line 113, in sec_exchange enc_client_ran = pubkey.encrypt(b'A'*32, None)[0] File "/usr/local/lib/python3.8/dist-packages/Crypto/PublicKey/RSA.py", line 375, in encrypt raise NotImplementedError("Use module Crypto.Cipher.PKCS1_OAEP instead") NotImplementedError: Use module Crypto.Cipher.PKCS1_OAEP instead

This is what I get after running -> python3 win7_32_poc.py

ayeinls commented 3 years ago

Have you found a solution? I have the same issue. (python 3.8 windows) I tried to install cryptodome version 3.0 3.4.3 and 3.10 none of them worked for me (same error) pycrypto won't compile :(

PizzaPablo666 commented 3 years ago

I don't really remember, but Bluekeep exploit was crashing the windows and blue screen appeared every time and just crashed, so I have used eternalblue , doublepulsar and netapi instead. I found them in github working with python2 so I have manually changed them with python3 syntax. Here you go https://github.com/PizzaPablo666/Exploits-eternalblue-netapi-modified-for-python3

mrrrmeow commented 9 months ago

Hey! anyone solved this issue?