1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 08:35:31 +02:00

smbclient.py, impacket-smbclient: add page (#16580)

* smbclient.py, impacket-smbclient: add page

* Update pages/common/smbclient.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:
Machiavelli 2025-05-26 07:35:18 +03:00 committed by GitHub
parent f6e60e47c2
commit a59ead7bd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,7 @@
# impacket-smbclient
> This command is an alias of `smbclient.py`.
- View documentation for the original command:
`tldr smbclient.py`

View file

@ -0,0 +1,36 @@
# smbclient.py
> A Python-based SMB client for interacting with SMB servers.
> More information: <https://github.com/fortra/impacket>.
- Connect to an SMB server with username and password:
`smbclient.py {{domain}}/{{username}}:{{password}}@{{target}}`
- Connect using NTLM hashes for authentication:
`smbclient.py -hashes {{LM_HASH}}:{{NT_HASH}} {{domain}}/{{username}}@{{target}}`
- Connect using Kerberos authentication:
`smbclient.py -k {{domain}}/{{username}}@{{target}}`
- Connect specifying a domain controller IP:
`smbclient.py -dc-ip {{domain_controller_ip}} {{domain}}/{{username}}:{{password}}@{{target}}`
- Connect to a specific target IP instead of NetBIOS name:
`smbclient.py -target-ip {{target_ip}} {{domain}}/{{username}}:{{password}}@{{target}}`
- Connect to a non-standard SMB port:
`smbclient.py -port {{port}} {{domain}}/{{username}}:{{password}}@{{target}}`
- Execute commands from an input file in the SMB shell:
`smbclient.py -inputfile {{path/to/input_file}} {{domain}}/{{username}}:{{password}}@{{target}}`
- Log SMB client commands to an output file:
`smbclient.py -outputfile {{path/to/output_file}} {{domain}}/{{username}}:{{password}}@{{target}}`