Leoid / CVE-2019-0708

Only Hitting PoC [Tested on Windows Server 2008 r2]
127 stars 43 forks source link

ImportError: No module named impacket #2

Closed theleecher closed 5 years ago

theleecher commented 5 years ago

Traceback (most recent call last): File "0708.py", line 34, in from impacket.structure import Structure ModuleNotFoundError: No module named 'impacket'

Leoid commented 5 years ago

Install https://github.com/SecureAuthCorp/impacket 👍

demiscuzz commented 4 years ago

I am having the same issue, I have impacket?

Rooskii commented 4 years ago

This worked for me, just make sure you are in your target directory.

sudo git clone https://github.com/SecureAuthCorp/impacket.git cd impacket/ sudo pip3 install . sudo python3 setup.py install

SnoozUlooz commented 3 years ago

if the solution does not work for any one, check your python version and make sure the default is set to pythong3.9

this video works https://www.youtube.com/watch?v=J4DDdOc4_Vg

vijay2040raj commented 2 years ago

not working this video @SnoozUlooz and i also try to change source code but failed. i will try and i will try my best , may be i can fix this problem

vijay2040raj commented 2 years ago

error in mssqlclient.py

This worked for me, just make sure you are in your target directory.

sudo git clone https://github.com/SecureAuthCorp/impacket.git cd impacket/ sudo pip3 install . sudo python3 setup.py install

its working but i got error

sudo python3 mssqlclient.py ARCHETYPE/sql_svc@{ip} -windows-auth 1 ⨯ Impacket v0.9.25.dev1+20211027.123255.1dad8f7f - Copyright 2021 SecureAuth Corporation

Password: Traceback (most recent call last): File "/home/vijay/Desktop/ctf/tools/impacket/examples/mssqlclient.py", line 169, in ms_sql.connect() File "/usr/local/lib/python3.9/dist-packages/impacket-0.9.25.dev1+20211027.123255.1dad8f7f-py3.9.egg/impacket/tds.py", line 531, in connect af, socktype, proto, canonname, sa = socket.getaddrinfo(self.server, self.port, 0, socket.SOCK_STREAM)[0] File "/usr/lib/python3.9/socket.py", line 954, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -2] Name or service not known

:) fix this problem

sebastianEriksson87 commented 2 years ago

this video solved my problem https://www.youtube.com/watch?v=GgHYEH8OfEs