Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smbmap: add page #7053

Merged
merged 14 commits into from
Nov 21, 2021
24 changes: 24 additions & 0 deletions pages/common/smbmap.md
Original file line number Diff line number Diff line change
@@ -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}}`
navarroaxel marked this conversation as resolved.
Show resolved Hide resolved

- 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}}'`