mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 06:35:23 +02:00
smbserver.py, impacket-smbserver: add page (#16582)
* smbserver.py, impacket-smbserver: add page * add long option * 0A * Update pages/common/smbserver.py.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
22162dd66f
commit
f6e60e47c2
2 changed files with 43 additions and 0 deletions
7
pages/common/impacket-smbserver.md
Normal file
7
pages/common/impacket-smbserver.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
# impacket-smbserver
|
||||
|
||||
> This command is an alias of `smbserver.py`.
|
||||
|
||||
- View documentation for the original command:
|
||||
|
||||
`tldr smbserver.py`
|
36
pages/common/smbserver.py.md
Normal file
36
pages/common/smbserver.py.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# smbserver.py
|
||||
|
||||
> A Python-based SMB server for hosting shares (requires root for port 445).
|
||||
> More information: <https://github.com/fortra/impacket>.
|
||||
|
||||
- Set up a basic SMB share:
|
||||
|
||||
`smbserver.py {{sharename}} {{path/to/share}}`
|
||||
|
||||
- Set up a share with a custom comment:
|
||||
|
||||
`smbserver.py -comment {{my_share}} {{sharename}} {{path/to/share}}`
|
||||
|
||||
- Set up a share with username and password authentication:
|
||||
|
||||
`smbserver.py -username {{username}} -password {{password}} {{sharename}} {{path/to/share}}`
|
||||
|
||||
- Set up a share with NTLM hash authentication:
|
||||
|
||||
`smbserver.py -hashes {{LMHASH}}:{{NTHASH}} {{sharename}} {{path/to/share}}`
|
||||
|
||||
- Set up a share on a specific interface:
|
||||
|
||||
`smbserver.py {{[-ip|--interface-address]}} {{interface_ip_address}} {{sharename}} {{path/to/share}}`
|
||||
|
||||
- Set up a share on a non-standard SMB port:
|
||||
|
||||
`smbserver.py -port {{port}} {{sharename}} {{path/to/share}}`
|
||||
|
||||
- Set up a share with SMB2 support:
|
||||
|
||||
`smbserver.py -smb2support {{sharename}} {{path/to/share}}`
|
||||
|
||||
- Set up a share and log commands to an output file:
|
||||
|
||||
`smbserver.py -outputfile {{path/to/output_file}} {{sharename}} {{path/to/share}}`
|
Loading…
Add table
Reference in a new issue