Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

41
linux/smbmap Normal file
View File

@@ -0,0 +1,41 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# smbmap
> SMB enumeration tool.
> More information: <https://github.com/ShawnDEvans/smbmap>.
- 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}}`