From 622e1cf73cea3d9baee413447d155c7dd68ebef6 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 24 Oct 2020 14:05:07 +0200 Subject: [PATCH] smbmap: add page (#4749) --- pages/linux/smbmap.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pages/linux/smbmap.md diff --git a/pages/linux/smbmap.md b/pages/linux/smbmap.md new file mode 100644 index 000000000..9e02c6a92 --- /dev/null +++ b/pages/linux/smbmap.md @@ -0,0 +1,36 @@ +# smbmap + +> SMB enumeration tool. +> More information: . + +- Display SMB shares and permissions on a host, prompting for user's password or NTLM hash: + +`smbmap -u {{username}} --prompt -H {{ip}}` + +- Display SMB shares and permissions on a host, specifying the domain and passing the password NTLM hash: + +`smbmap -u {{username}} --prompt -d {{domain}} -H {{ip}}` + +- Display SMB shares and list a single level of directories and files: + +`smbmap -u {{username}} --prompt -H {{ip}} -r` + +- Display SMB shares and recursively list a defined number of levels of directories and files: + +`smbmap -u {{username}} --prompt -H {{ip}} -R --depth {{3}}` + +- Display SMB shares and recursively list directories and files, downloading the files matching a regular expression: + +`smbmap -u {{username}} --prompt -H {{ip}} -R -A {{pattern}}` + +- Display SMB shares and recursively list directories and files, searching for file content matching a regular expression: + +`smbmap -u {{username}} --prompt -H {{ip}} -R -F {{pattern}}` + +- Execute a shell command on a remote system: + +`smbmap -u {{username}} --prompt -H {{ip}} -x {{command}}` + +- Upload a file to a remote system: + +`smbmap -u {{username}} --prompt -H {{ip}} --upload {{source}} {{destination}}`