mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
smbmap: merge pages (#15984)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
This commit is contained in:
parent
c66f4ae5d0
commit
112e4f8dab
2 changed files with 17 additions and 41 deletions
|
@ -1,24 +1,36 @@
|
|||
# smbmap
|
||||
|
||||
> Allow users to enumerate samba share drives across an entire domain.
|
||||
> Enumerate samba share drives across an entire domain.
|
||||
> More information: <https://github.com/ShawnDEvans/smbmap>.
|
||||
|
||||
- Enumerate hosts with NULL sessions enabled and open shares:
|
||||
|
||||
`smbmap --host-file {{path/to/file}}`
|
||||
|
||||
- Display SMB shares and permissions on a host, prompting for user's password or NTLM hash:
|
||||
|
||||
`smbmap {{[-u|--username]}} {{username}} --prompt -H {{ip}}`
|
||||
|
||||
- Execute a shell command on a remote system:
|
||||
|
||||
`smbmap {{[-u|--username]}} {{username}} --prompt -H {{ip}} -x {{command}}`
|
||||
|
||||
- Enumerate hosts and check SMB file permissions:
|
||||
|
||||
`smbmap --host-file {{path/to/file}} -u {{username}} -p {{password}} -q`
|
||||
`smbmap --host-file {{path/to/file}} {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}} -q`
|
||||
|
||||
- Connect to an ip or hostname through smb using a username and password:
|
||||
|
||||
`smbmap -u {{username}} -p {{password}} -d {{domain}} -H {{ip_or_hostname}}`
|
||||
`smbmap {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}} -d {{domain}} -H {{ip_or_hostname}}`
|
||||
|
||||
- Locate and download files [R]ecursively up to N levels depth, searching for filename pattern (regex), and excluding certain shares:
|
||||
|
||||
`smbmap --host-file {{path/to/file}} -u {{username}} -p {{password}} -q -R --depth {{number}} --exclude {{sharename}} -A {{filepattern}}`
|
||||
`smbmap --host-file {{path/to/file}} {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}} -q -R --depth {{number}} --exclude {{sharename}} -A {{filepattern}}`
|
||||
|
||||
- Upload file through smb using username and password:
|
||||
|
||||
`smbmap -u {{username}} -p {{password}} -d {{domain}} -H {{ip_or_hostname}} --upload {{path/to/file}} '{{/share_name/remote_filename}}'`
|
||||
`smbmap {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}} -d {{domain}} -H {{ip_or_hostname}} --upload {{path/to/file}} '{{/share_name/remote_filename}}'`
|
||||
|
||||
- Display SMB shares and recursively list directories and files, searching for file content matching a regular expression:
|
||||
|
||||
`smbmap {{[-u|--username]}} {{username}} --prompt -H {{ip}} -R -F {{pattern}}`
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue