Server Message Block
Last updated
Last updated
srvinfo
Server information.
enumdomains
Enumerate all domains that are deployed in the network.
querydominfo
Provides domain, server, and user information of deployed domains.
netshareenumall
Enumerates all available shares.
netsharegetinfo <share>
Provides information about a specific share.
enumdomusers
Enumerates all domain users.
queryuser <RID>
Provides information about a specific user.
Test for URL File attacks by creating a file called "@somename.url" with the following contents, upload, spin up smbserver to capture hash
Run Responder to capture hashes
Attempt to download and view share contents using valid credential / anonymous login / null session
Search "Groups.xml" for cpassword decryption
search lsass.zip or lsass.dmp to use to dump credentials / keys / tickets
test for alternate data streams after discovering 0 byte files
Check For users using valid credential / anonymous login / null session
check for groups using valid credential / anonymous login / null session
Interactively access the smb shares using smbclient
browseable = yes
Allow listing available shares in the current share?
read only = no
Forbid the creation and modification of files?
writable = yes
Allow users to create and modify files?
guest ok = yes
Allow connecting to the service without using a password?
enable privileges = yes
Honor privileges assigned to specific SID?
create mask = 0777
What permissions must be assigned to the newly created files?
directory mask = 0777
What permissions must be assigned to the newly created directories?
logon script = script.sh
What script needs to be executed on the user's login?
magic script = script.sh
Which script should be executed when the script gets closed?
magic output = script.out
Where the output of the magic script needs to be stored?
-U'%'
: Explicitly sends an empty username and no password. -N
: Does not send any username or password, attempting to establish a null session.smbmap
with the -r
or -R
(recursive) option, one can browse the directories