the_open_door
coffee
ESEN
← Tools

smbmap

Enumerates SMB shares and their permissions.

Enumerates SMB shares showing read/write permissions on each at a glance, and can walk them recursively. It complements smbclient when you want to know quickly where you can write.

Family SMB, NetBIOS & RPC

Flags -H -u -p -R

Concepts Credential reuse

Cheatsheet SMB · 139 / 445

Installation

pipx install smbmap

Useful commands5 commands

When it fails

  • Access denied on 10.10.10.182, no fun for you...smbmap says the same thing with and without a session. In its own output you can see 1 authenticated session(s) in one attempt and 0 in the other, and the message does not change: the login may well be working and it is the listing that is denied. To tell them apart you read that sessions line, not the message.seen in Cascade

Appears in

Some machines where its use is documented; not an exhaustive list.