No module named impacket

13.9k Views Asked by At

I have installed impacket and its requirements on windows, but when I want to execute a python file (in my case send_and_execute.py 192.168.x.x sample.exe), the message:

File ..., line 2, in <module>
 From impacket import smb, smbconnection importerror: no module named impacket

will appeared. I have tested it on two windows systems, but the problem has not been solved. What is the problem? It is necessary to mention that Initially I installed PyCrypto, then I executed these commands and the installation process was apparently successful:

py -m pip install pyasn1
py -m pip install pyasn1-modules
py -m pip install impacket
1

There are 1 best solutions below

1
On

Maybe you need to install it from there? https://github.com/SecureAuthCorp/impacket