mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-09 16:53:50 +02:00
smbmap: add page (#7053)
This commit is contained in:
parent
0659e80101
commit
da2545ca54
1 changed files with 24 additions and 0 deletions
24
pages/common/smbmap.md
Normal file
24
pages/common/smbmap.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# smbmap
|
||||||
|
|
||||||
|
> Allow users to 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}}`
|
||||||
|
|
||||||
|
- Enumerate hosts and check SMB file permissions:
|
||||||
|
|
||||||
|
`smbmap --host-file {{path/to/file}} -u {{username}} -p {{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}}`
|
||||||
|
|
||||||
|
- 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}}`
|
||||||
|
|
||||||
|
- 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}}'`
|
Loading…
Add table
Reference in a new issue