ly4k / BlueGate

PoC (DoS + scanner) for CVE-2020-0609 & CVE-2020-0610 - RD Gateway RCE
251 stars 77 forks source link

How to use bluegate ? #3

Open galactghost opened 11 months ago

galactghost commented 11 months ago

I copied bluegate.exe from github and tried to run it by ./bluegate.exe IP address --mode check but the code is giving me three following errors and line number of the error code .

  1. connection = connection(args.host, args.port) line 130
  2. self.connection = SSL.Connection(SSL.Context(0), self.socket) line 65
  3. method_func, version = self._methods[method] line 710
jjguz17 commented 11 months ago

I got the same error in Kali:

└─$ python3 BlueGate.py -M check -P 3389 <IP> Traceback (most recent call last): File "/home/kali/Desktop/BlueGate/BlueGate.py", line 130, in <module> connection = Connection(args.host, args.port) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/kali/Desktop/BlueGate/BlueGate.py", line 65, in __init__ self.connection = SSL.Connection(SSL.Context(0), self.socket) ^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/OpenSSL/SSL.py", line 710, in __init__ method_func, version = self._methods[method] ^^^^^^^^^^^^^^^^^^^^ TypeError: cannot unpack non-iterable builtin_function_or_method object

I'm using Python 3.11.5 and I have installed pyOpenSSL

jjguz17 commented 11 months ago

I was able to run the script by downgrading pyopenssl and cryptography libraries, upgrading them didn't work.

pip uninstall pyopenssl

pip install pyopenssl==22.0.0`

pip uninstall cryptography

pip install cryptography==37.0.0

galactghost commented 11 months ago

IMG_20231112_231954_884.jpg

I am getting this error after uninstalling and reinstalling and pyopenssl and cryptography

galactghost commented 11 months ago

What command did you run to test the code ?

galactghost commented 11 months ago

IMG_20231112_233349_975.jpg

I tried to run by updating the cryptography and pyopenssl but it give me this error .