Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-11 00:18:27 +00:00
parent dc654e9ad5
commit 4ed84edbe1
9 changed files with 96 additions and 9 deletions

View File

@@ -28,3 +28,7 @@ source: https://github.com/tldr-pages/tldr.git
- Set the update rate to 500 milliseconds:
`btop --update 500`
- Exit `btop`:
`<q>`

30
tldr/getuserspns.py Normal file
View File

@@ -0,0 +1,30 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# GetUserSPNs.py
> Retrieve Service Principal Names (SPNs) associated with Active Directory user accounts.
> Part of the Impacket suite.
> More information: <https://github.com/fortra/impacket>.
- Enumerate user accounts with an SPN and request their Kerberos TGS tickets:
`GetUserSPNs.py {{domain}}/{{username}}:{{password}} -dc-ip {{domain_controller_ip}}`
- Use pass-the-hash authentication:
`GetUserSPNs.py {{domain}}/{{username}} -hashes {{LM_Hash}}:{{NT_Hash}} -dc-ip {{domain_controller_ip}}`
- Save the output to a file:
`GetUserSPNs.py {{domain}}/{{username}}:{{password}} -dc-ip {{domain_controller_ip}} -outputfile {{output_file}}`
- Request only TGS tickets:
`GetUserSPNs.py {{domain}}/{{username}}:{{password}} -dc-ip {{domain_controller_ip}} -request`
- Request only TGS tickets using pass-the-hash authentication:
`GetUserSPNs.py {{domain}}/{{username}} -dc-ip {{domain_controller_ip}} -hashes {{LM_Hash}}:{{NT_Hash}} -request`

14
tldr/impacket-getuserspns Normal file
View File

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

View File

@@ -10,4 +10,8 @@ source: https://github.com/tldr-pages/tldr.git
- Play a MIDI file:
`fluidsynth --audio-driver={{pipewire|pulseaudio}} {{path/to/soundfont.sf2}} {{path/to/file.midi}}`
`fluidsynth {{path/to/soundfont.sf2}} {{path/to/file.midi}}`
- Specify the audio driver:
`fluidsynth {{[-a|--audio-driver]}} {{pipewire|pulseaudio}} {{path/to/soundfont.sf2}} {{path/to/file.midi}}`

View File

@@ -11,11 +11,11 @@ source: https://github.com/tldr-pages/tldr.git
- Commit changes to persistent storage (only files in `/etc` by default):
`lbu {{ci|commit}}`
`lbu {{[ci|commit]}}`
- List files that would be saved using `commit`:
`lbu {{st|status}}`
`lbu {{[st|status]}}`
- Display changes in tracked files that would be saved using `commit`:
@@ -23,19 +23,19 @@ source: https://github.com/tldr-pages/tldr.git
- Include a specific file or directory in the `apk` overlay:
`lbu {{add|inc|include}} {{path/to/file_or_directory}}`
`lbu {{[inc|include]}} {{path/to/file_or_directory}}`
- Exclude a specific file or directory in `/etc` from the `apk` overlay:
`lbu {{ex|exclude|delete}} {{path/to/file_or_directory}}`
`lbu {{[ex|exclude]}} {{path/to/file_or_directory}}`
- Display the list of manually included/excluded files:
`lbu {{inc|include|ex|exclude}} -l`
`lbu {{include|exclude}} -l`
- List backups (previously created overlays):
`lbu {{lb|list-backup}}`
`lbu {{[lb|list-backup]}}`
- Revert to a backup overlay:

17
tldr/linux/resize Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# resize
> Resize terminal size to the window size.
> More information: <https://manned.org/resize>.
- Resize the terminal:
`resize`
- Print terminal size:
`resize -s`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# uname
> Uname prints information about the machine and operating system it is run on.
> Print details about the current machine and the operating system running on it.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/uname-invocation.html>.
- Print all information:

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# ulimit
> Get and set user limits.
> Get and set resource limits for user processes.
> More information: <https://manned.org/ulimit>.
- Get the properties of all the user limits:

18
tldr/vagrant-validate Normal file
View File

@@ -0,0 +1,18 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# vagrant validate
> Check the validity of a Vagrantfile.
> See also: `vagrant`, `vagrant box`, `vagrant plugin`.
> More information: <https://developer.hashicorp.com/vagrant/docs/cli/validate>.
- Validate the syntax of the Vagrantfile to ensure it is correctly structured and free of errors:
`vagrant validate`
- Ensure that the Vagrantfile is correctly structured while ignoring provider-specific configuration options:
`vagrant validate {{[-p|--ignore-provider]}} {{docker|hypervlibvirt|parallels|qemu|virtualbox|vmware_desktop}`