Update cheatsheets

This commit is contained in:
ivuorinen
2025-06-17 00:20:33 +00:00
parent 79690d7a3a
commit 01e46ee5ae
2 changed files with 10 additions and 6 deletions

View File

@@ -11,19 +11,19 @@ source: https://github.com/tldr-pages/tldr.git
- Connect to a host:
`evil-winrm --ip {{ip}} --user {{user}} --password {{password}}`
`evil-winrm {{[-i|--ip]}} {{ip}} {{[-u|--user]}} {{user}} {{[-p|--password]}} {{password}}`
- Connect to a host, passing the password hash:
- Connect to a host using pass-the-hash authentication instead of a password:
`evil-winrm --ip {{ip}} --user {{user}} --hash {{nt_hash}}`
`evil-winrm {{[-i|--ip]}} {{ip}} {{[-u|--user]}} {{user}} {{[-H|--hash]}} {{nt_hash}}`
- Connect to a host, specifying directories for scripts and executables:
- Connect to a host, specifying directories for PowerShell scripts and executables:
`evil-winrm --ip {{ip}} --user {{user}} --password {{password}} --scripts {{path/to/scripts}} --executables {{path/to/executables}}`
`evil-winrm {{[-i|--ip]}} {{ip}} {{[-u|--user]}} {{user}} {{[-p|--password]}} {{password}} {{[-s|--scripts]}} {{path/to/scripts}} {{[-e|--executables]}} {{path/to/executables}}`
- Connect to a host, using SSL:
`evil-winrm --ip {{ip}} --user {{user}} --password {{password}} --ssl --pub-key {{path/to/pubkey}} --priv-key {{path/to/privkey}}`
`evil-winrm {{[-i|--ip]}} {{ip}} {{[-u|--user]}} {{user}} {{[-p|--password]}} {{password}} {{[-S|--ssl]}} {{[-c|--pub-key]}} {{path/to/pubkey}} {{[-k|--priv-key]}} {{path/to/privkey}}`
- Upload a file to the host:

View File

@@ -32,3 +32,7 @@ source: https://github.com/tldr-pages/tldr.git
- Parallel runs of up to `max-procs` processes at a time; the default is 1. If `max-procs` is 0, xargs will run as many processes as possible at a time:
`{{arguments_source}} | xargs {{[-P|--max-procs]}} {{max-procs}} {{command}}`
- Prompt user for confirmation before executing command (confirm with `y` or `Y`):
`{{arguments_source}} | xargs {{[-p|--interactive]}} {{command}}`