1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

nxc-winrm: add page (#14365)

This commit is contained in:
Juri Dispan 2024-10-30 17:42:00 +01:00 committed by GitHub
parent 54c1df3864
commit 128c865ab9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

20
pages/common/nxc-winrm.md Normal file
View file

@ -0,0 +1,20 @@
# nxc winrm
> Pentest and exploit Windows Remote Management (winrm).
> More information: <https://www.netexec.wiki/winrm-protocol>.
- Search for valid credentials by trying out every combination in the specified lists of [u]sernames and [p]asswords:
`nxc winrm {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}`
- Specify the domain to authenticate to (avoids an initial SMB connection):
`nxc winrm {{192.168.178.2}} -u {{username}} -p {{password}} -d {{domain_name}}`
- Execute the specified command on the host:
`nxc winrm {{192.168.178.2}} -u {{username}} -p {{password}} -x {{whoami}}`
- Execute the specified PowerShell command on the host as administrator using LAPS:
`nxc winrm {{192.168.178.2}} -u {{username}} -p {{password}} --laps -X {{whoami}}`