ShawnDEvans / smbmap

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

Not listing disks and permissions #97

Closed Andyloz closed 3 months ago

Andyloz commented 6 months ago

What i'm running

Two docker containers:

What happens

I run smbmap on kali and runs just fine. Detects the disks on the Samba server.

But in my main host it doesn't show the disks listing.

smbmap with kali:

┌──(root㉿227e58a5a571)-[/]
└─# smbmap -H 172.17.0.1

    ________  ___      ___  _______   ___      ___       __         _______
   /"       )|"  \    /"  ||   _  "\ |"  \    /"  |     /""\       |   __ "\
  (:   \___/  \   \  //   |(. |_)  :) \   \  //   |    /    \      (. |__) :)
   \___  \    /\  \/.    ||:     \/   /\   \/.    |   /' /\  \     |:  ____/
    __/  \   |: \.        |(|  _  \  |: \.        |  //  __'  \    (|  /
   /" \   :) |.  \    /:  ||: |_)  :)|.  \    /:  | /   /  \   \  /|__/ \
  (_______/  |___|\__/|___|(_______/ |___|\__/|___|(___/    \___)(_______)
 -----------------------------------------------------------------------------
     SMBMap - Samba Share Enumerator | Shawn Evans - ShawnDEvans@gmail.com
                     https://github.com/ShawnDEvans/smbmap

[*] Detected 1 hosts serving SMB
[*] Established 1 SMB session(s)                                

[+] IP: 172.17.0.1:445  Name: 172.17.0.1            Status: Authenticated
    Disk                                                    Permissions Comment
    ----                                                    ----------- -------
    myshare                                             READ, WRITE 
    IPC$                                                NO ACCESS   IPC Service (Samba Server Version 4.6.3)

smbmap at the host:

❯ smbmap -H 127.0.0.1

    ________  ___      ___  _______   ___      ___       __         _______
   /"       )|"  \    /"  ||   _  "\ |"  \    /"  |     /""\       |   __ "\
  (:   \___/  \   \  //   |(. |_)  :) \   \  //   |    /    \      (. |__) :)
   \___  \    /\  \/.    ||:     \/   /\   \/.    |   /' /\  \     |:  ____/
    __/  \   |: \.        |(|  _  \  |: \.        |  //  __'  \    (|  /
   /" \   :) |.  \    /:  ||: |_)  :)|.  \    /:  | /   /  \   \  /|__/ \
  (_______/  |___|\__/|___|(_______/ |___|\__/|___|(___/    \___)(_______)
 -----------------------------------------------------------------------------
 SMBMap - Samba Share Enumerator v1.10.2 | Shawn Evans - ShawnDEvans@gmail.com
                     https://github.com/ShawnDEvans/smbmap

[*] Detected 1 hosts serving SMB                                                                                                  
[*] Established 1 SMB connections(s) and 0 authentidated session(s)

What I expect

I expect the disks listing on both setups.

Additional info

When I did pipx install smbmap, it didn't work out of the box. I had to do pipx inject smbmap setuptools, i don't know if could be related.

Thanks.

ShawnDEvans commented 5 months ago

Let me do some testing against localhost and see if I can reproduce your result. Thank you for the bug report!

ShawnDEvans commented 3 months ago

I did some updates and everything seemed to be working on the domain I was scanning. I need to push the changes to pipy, so use git for the latest and greatest.