Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elddy/Nim-SMBExec
SMBExec implementation in Nim - SMBv2 using NTLM Authentication with Pass-The-Hash technique
https://github.com/elddy/Nim-SMBExec
nim nim-lang ntlm pass-the-hash pentest-tool red-teaming smb windows
Last synced: 3 months ago
JSON representation
SMBExec implementation in Nim - SMBv2 using NTLM Authentication with Pass-The-Hash technique
- Host: GitHub
- URL: https://github.com/elddy/Nim-SMBExec
- Owner: elddy
- License: gpl-3.0
- Created: 2020-08-17T06:51:26.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-19T13:31:28.000Z (over 2 years ago)
- Last Synced: 2024-05-02T18:50:33.415Z (6 months ago)
- Topics: nim, nim-lang, ntlm, pass-the-hash, pentest-tool, red-teaming, smb, windows
- Language: Nim
- Homepage:
- Size: 90.8 KB
- Stars: 86
- Watchers: 5
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - elddy/Nim-SMBExec - SMBExec implementation in Nim - SMBv2 using NTLM Authentication with Pass-The-Hash technique (Nim)
README
# Nim-SMBExec
SMBExec implementation in Nim - SMBv2 using NTLM Authentication with Pass-The-Hash technique## Install
```
nimble install SMBExec
```## Usage
```Nim
import SMBExec
```## Examples
Create SMB object, connect to target and execute a command under specified service name:
```Nim
let hash = toNTLMHash("SecretPassword") # Returns NTLMHash => e.g 47bf8039a8506cd67c524a03ff84ba4evar smb = newSMB2("IP Address/Hostname", "Domain", "Username", "Password Hash", "ServiceName (Optional)") # Creates SMB object
let response = smb.connect() # Connect and authenticate to the target via SMB
smb.exec("cmd command", response) # Response from the negotiation
smb.close() # Close socket
```
## Support
#### Only supports SMBv2 Authentication## Credits
Powershell: Invoke-SMBExec - https://github.com/Kevin-Robertson/Invoke-TheHash/blob/master/Invoke-SMBExec.ps1