From 7148d01036f864483d67f554186ccb3f9b49c31c Mon Sep 17 00:00:00 2001 From: ivuorinen Date: Sun, 2 Mar 2025 00:19:35 +0000 Subject: [PATCH] Update cheatsheets --- tldr/git-revert | 4 ++++ tldr/impacket-secretsdump | 13 +++++++++++++ tldr/linux/lxc-create | 6 +++--- tldr/linux/mangohud | 13 +++++++++++++ tldr/pulumi-stack | 8 ++++---- tldr/pulumi-state | 4 ++++ tldr/secretsdump.py | 30 ++++++++++++++++++++++++++++++ 7 files changed, 71 insertions(+), 7 deletions(-) create mode 100644 tldr/impacket-secretsdump create mode 100644 tldr/linux/mangohud create mode 100644 tldr/secretsdump.py diff --git a/tldr/git-revert b/tldr/git-revert index 193110cc..1fa02e5b 100644 --- a/tldr/git-revert +++ b/tldr/git-revert @@ -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` diff --git a/tldr/impacket-secretsdump b/tldr/impacket-secretsdump new file mode 100644 index 00000000..44a49815 --- /dev/null +++ b/tldr/impacket-secretsdump @@ -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: . + +- View documentation for the original command: + +`tldr secretsdump.py` diff --git a/tldr/linux/lxc-create b/tldr/linux/lxc-create index 6011879f..e0b7c651 100644 --- a/tldr/linux/lxc-create +++ b/tldr/linux/lxc-create @@ -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}}` diff --git a/tldr/linux/mangohud b/tldr/linux/mangohud new file mode 100644 index 00000000..2a93f97d --- /dev/null +++ b/tldr/linux/mangohud @@ -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: . + +- Use `mangohud` on top of an application: + +`mangohud {{command}}` diff --git a/tldr/pulumi-stack b/tldr/pulumi-stack index f92e53b5..1e3b5b6c 100644 --- a/tldr/pulumi-stack +++ b/tldr/pulumi-stack @@ -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` diff --git a/tldr/pulumi-state b/tldr/pulumi-state index 29186e80..0d305eca 100644 --- a/tldr/pulumi-state +++ b/tldr/pulumi-state @@ -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` diff --git a/tldr/secretsdump.py b/tldr/secretsdump.py new file mode 100644 index 00000000..a2879d6e --- /dev/null +++ b/tldr/secretsdump.py @@ -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: . + +- 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 Directory’s 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}}`