← 返回命令列表

Linux command

smbmap 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List shares on host

smbmap -H [192.168.1.100]

Authenticate with credentials

smbmap -H [192.168.1.100] -u [user] -p [password]

List share contents

smbmap -H [192.168.1.100] -u [user] -p [password] -r [share]

Download file

smbmap -H [192.168.1.100] -u [user] -p [password] --download '[share/file.txt]'

Execute command

smbmap -H [192.168.1.100] -u [admin] -p [password] -x '[whoami]'

说明

smbmap enumerates SMB share permissions and contents. Security tool for authorized penetration testing and share auditing. Shows read/write access levels and enables file operations.

参数

-H _host_
Target host.
-u _user_
Username.
-p _pass_
Password.
-d _domain_
Domain.
-r _share_
Recursively list share.
--download _path_
Download file.
--upload _src_ _dst_
Upload file.
-x _cmd_
Execute command.
-L
List drives.

FAQ

What is the smbmap command used for?

smbmap enumerates SMB share permissions and contents. Security tool for authorized penetration testing and share auditing. Shows read/write access levels and enables file operations.

How do I run a basic smbmap example?

Run `smbmap -H [192.168.1.100]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -H _host_ do in smbmap?

Target host.