Samba (smb)

smbclient

Remember to escape the double \ before the target IP/Domain. Usually looks like \\\\10.10.10.10

The rest of the path also need escaping: \\\\10.10.10.10\\users

Flag
Description

-L

retrieve a list of available shares

-N

suppresses the password prompt (null session)

-U

Specify user (can be put after address)

circle-info

Order matters, for example: -L -N will ask for the password still while -N -L will work fine

rpcclient

The Remote Procedure Callarrow-up-right (RPC) is a concept and, therefore, also a central tool to realize operational and work-sharing structures in networks and client-server architectures.

man pagearrow-up-right

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.

$ rpcclient -U "" 10.129.14.128

Enter WORKGROUP\'s password:
rpcclient $> srvinfo
rpcclient $> enumdomains
rpcclient $> querydominfo
rpcclient $> netshareenumall
rpcclient $> netsharegetinfo <share-name>

rpcclient $> enumdomusers
rpcclient $> queryuser <rid>
rpcclient $> querygroup <group-rid>

Example of Bash command to enumerate every user based on rid

circle-info

Other tools that automate this: Samrdumparrow-up-right, SMBMaparrow-up-right or CrackMapExecarrow-up-right

Worth mentioning but more verbose: enum4linux-ngarrow-up-right

Last updated