ShawnDEvans / smbmap

SMBMap is a handy SMB enumeration tool
GNU General Public License v3.0
1.76k stars 343 forks source link

ImportError: cannot import name transport #17

Closed saatomic closed 7 years ago

saatomic commented 7 years ago

I've installed impacket and tried to run smbmap.

root@kali:~/smbmap-master# python smbmap.py
Traceback (most recent call last):
  File "smbmap.py", line 17, in <module>
    from impacket.dcerpc import transport, svcctl, srvsvc
ImportError: cannot import name transport

As it seems this project is dead - but you never know.

cyian-1756 commented 7 years ago

have you tried pip install transport ?

joshcomplex commented 7 years ago

This is actually ties to the version of impacket. Try installing impacket version 0.9.13

On Jan 18, 2017 5:27 PM, "cyian-1756" notifications@github.com wrote:

have you tried pip install transport ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ShawnDEvans/smbmap/issues/17#issuecomment-273622042, or mute the thread https://github.com/notifications/unsubscribe-auth/AVXuiOLppb8TURvHQldLoVWjtQrvn0Tlks5rTpHggaJpZM4LmtNk .

stillinsecure commented 7 years ago

Installing impacket 0.9.13 fixed it for me.

ShawnDEvans commented 7 years ago

This is sorta kinda dead? I'm lazy and busy, which is a horrible combo for supporting a tool haha. In any case, I'll try to get these issues ironed out. I use this in a Kali time capsule VM to avoid doing things like fixing problems. I'll update Impacket and get the fix pushed within the next week. And because I said this on the Internet, maybe it'll actually happen.

I highly encourage anyone who uses or has used SMBMap to check out CrackMapExec. It does everything SMBMap does and 1000x more. Seriously awesome tool :)

https://github.com/byt3bl33d3r/CrackMapExec

saatomic commented 7 years ago

ohwow. I didn't expect that. Thank you for your feedback and the link!

mechgt commented 7 years ago

I'm going to get on "me too" bandwagon. This is a very cool tool. I found it as it was featured in some B2R walkthroughs. Anyway, nice tool and would love to see it updated for basic out of the box compatibility. Thanks!!

ShawnDEvans commented 7 years ago

Just to provide an update, I have a version of the tool that is working with the latest greatest Impact (.9.16 i do believe). I'm going to test it on an pen test today and tomorrow. If all goes well I'll push the changes!

mechgt commented 7 years ago

Great, thanks!!! Confirmed this is working on my version of Kali with impacket 0.9.13-0kali1