mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 23:35:37 +02:00
nxc-wmi: add page (#14364)
* nxc-wm Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
0a4da7191e
commit
60964c46cb
1 changed files with 20 additions and 0 deletions
20
pages/common/nxc-wmi.md
Normal file
20
pages/common/nxc-wmi.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# nxc wmi
|
||||
|
||||
> Pentest and exploit the Windows Management Instrumentation (WMI).
|
||||
> More information: <https://www.netexec.wiki/wmi-protocol>.
|
||||
|
||||
- Search for valid credentials by trying out every combination in the specified lists of [u]sernames and [p]asswords:
|
||||
|
||||
`nxc wmi {{192.168.178.2}} -u {{path/to/usernames.txt}} -p {{path/to/passwords.txt}}`
|
||||
|
||||
- Authenticate via local authentication (as opposed to authenticating to the domain):
|
||||
|
||||
`nxc wmi {{192.168.178.2}} -u {{username}} -p {{password}} --local-auth`
|
||||
|
||||
- Issue the specified WMI query:
|
||||
|
||||
`nxc wmi {{192.168.178.2}} -u {{username}} -p {{password}} --wmi {{wmi_query}}`
|
||||
|
||||
- Execute the specified command on the targeted host:
|
||||
|
||||
`nxc wmi {{192.168.178.2}} -u {{username}} -p {{password}} --x {{command}}`
|
Loading…
Add table
Reference in a new issue