Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-02 00:19:35 +00:00
parent 10598cd5d4
commit 7148d01036
7 changed files with 71 additions and 7 deletions

View File

@@ -27,3 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
- Don't create new commits, just change the working tree:
`git revert {{-n|--no-commit}} {{0c01a9..9a1743}}`
- Cancel a Git revert after a merge conflict:
`git revert --abort`

13
tldr/impacket-secretsdump Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# impacket-secretsdump
> This command is an alias of `secretsdump.py`.
> More information: <https://github.com/fortra/impacket>.
- View documentation for the original command:
`tldr secretsdump.py`

View File

@@ -10,12 +10,12 @@ source: https://github.com/tldr-pages/tldr.git
- Create a container interactively in `/var/lib/lxc/`:
`lxc-create --name {{container}} --template download`
`sudo lxc-create --name {{container}} --template download`
- Create a container in a target directory:
`lxc-create --lxcpath {{/path/to/directory/}} --name {{container}} --template download`
`sudo lxc-create --lxcpath {{/path/to/directory/}} --name {{container}} --template download`
- Create a container passing options to a template:
`lxc-create --name {{name}} --template download -- --dist {{distro-name}} --release {{release-version}} --arch {{arch}}`
`sudo lxc-create --name {{name}} --template download -- --dist {{distro-name}} --release {{release-version}} --arch {{arch}}`

13
tldr/linux/mangohud Normal file
View File

@@ -0,0 +1,13 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# mangohud
> Display a monitoring HUD on top of a Vulkan or OpenGL graphical application.
> More information: <https://github.com/flightlessmango/MangoHud>.
- Use `mangohud` on top of an application:
`mangohud {{command}}`

View File

@@ -28,6 +28,10 @@ source: https://github.com/tldr-pages/tldr.git
`pulumi stack select {{stack_name}}`
- Delete a stack:
`pulumi stack rm {{stack_name}}`
- Show stack outputs, including secrets, in plaintext:
`pulumi stack output --show-secrets`
@@ -35,7 +39,3 @@ source: https://github.com/tldr-pages/tldr.git
- Export the stack state to a JSON file:
`pulumi stack export --file {{path/to/file.json}}`
- Display help:
`pulumi stack --help`

View File

@@ -24,6 +24,10 @@ source: https://github.com/tldr-pages/tldr.git
`pulumi state repair`
- Edit a stack's state in the editor specified by the `EDITOR` environment variable:
`pulumi state edit --stack {{stack_name}}`
- Display help:
`pulumi state --help`

30
tldr/secretsdump.py Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# secretsdump.py
> Dump NTLM hashes, plaintext passwords, and domain credentials from remote Windows systems.
> Part of the Impacket suite.
> More information: <https://github.com/fortra/impacket>.
- Dump credentials from a Windows machine using a username and password:
`secretsdump.py {{domain}}/{{username}}:{{password}}@{{target}}`
- Dump hashes from a machine using pass-the-hash authentication:
`secretsdump.py -hashes {{LM_Hash}}:{{NT_Hash}} {{domain}}/{{username}}@{{target}}`
- Dump credentials from Active Directorys NTDS.dit file:
`secretsdump.py -just-dc {{domain}}/{{username}}:{{password}}@{{target}}`
- Extract credentials from a local SAM database using registry hives:
`secretsdump.py -sam {{path/to/SAM}} -system {{path/to/SYSTEM}}`
- Dump hashes from a machine without providing a password (if a valid authentication session exists, e.g. via Kerberos or NTLM SSO):
`secretsdump.py -no-pass {{domain}}/{{username}}@{{target}}`