Hard to be sure but the likely issue is you have Impacket installed in a different version of python than your script is calling.
Hey TazWake, thx for you response.
Well, I’ve copied just the import section from the following script (searched via searchsploit) to test why it does not work exactly:
Microsoft Windows - ‘NetAPI32.dll’ Code Execution (Python) (MS08-067) | windows/remote/40279.py
Any ideas how to be sure if maybe the version of impacket is wrong.
You could try python --version to see what the default runs as. If you have it installed in python3 you may need to specify that on the command line, or with python2 if you have it that way round.
Yeah python is being bonkers over the last new updates.
Lots of stuff broken. You just have to find a way to install the missing packages in a lot of them but python2 -m pip or python3 -m pip is your friend.
Tenia problemas para instalar la libreria imapcket para python2.7
no podia usar pip2 porque no estaba instalado
para instalar pip2 correctamente sigue las intruscciones aqui: