Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-03 00:17:01 +00:00
parent 6db54f9410
commit 2f7a186f62
16 changed files with 286 additions and 8 deletions

View File

@@ -7,16 +7,16 @@ source: https://github.com/tldr-pages/tldr.git
> A utility that can edit windows registry, reset user password, promote users to administrator by modifying the Windows SAM.
> Boot target machine with live cd like Kali Linux and run with elevated privileges.
> More information: <http://pogostick.net/~pnh/ntpasswd>.
> More information: <https://pogostick.net/~pnh/ntpasswd>.
- List all users in the SAM file:
`chntpw -l {{path/to/sam_file}}`
- Edit [u]ser interactively:
- Edit user interactively:
`chntpw -u {{username}} {{path/to/sam_file}}`
- Use chntpw [i]nteractively:
- Use chntpw interactively:
`chntpw -i {{path/to/sam_file}}`

View File

@@ -23,4 +23,4 @@ source: https://github.com/tldr-pages/tldr.git
- Display help:
`notify-send --help`
`dunstify --help`

17
tldr/linux/getfattr Normal file
View File

@@ -0,0 +1,17 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# getfattr
> Display file names and extended attributes.
> More information: <https://manned.org/getfattr>.
- Retrieve all extended attributes of a file and display them in a detailed format:
`getfattr -d {{path/to/file}}`
- Get a specific attribute of a file:
`getfattr -n user.{{attribute_name}} {{path/to/file}}`

38
tldr/linux/protonvpn Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# protonvpn
> Unofficial third-party ProtonVPN client.
> See also: `protonvpn-connect`.
> More information: <https://github.com/Rafficer/linux-cli-community>.
- Initialize ProtonVPN profile:
`protonvpn init`
- Connect to ProtonVPN interactively:
`protonvpn {{c|connect}}`
- Display connection status:
`protonvpn {{s|status}}`
- Disconnect from ProtonVPN:
`protonvpn {{d|disconnect}}`
- Reconnect or connect to the last server used:
`protonvpn {{r|reconnect}}`
- Refresh OpenVPN configuration and server data:
`protonvpn refresh`
- Display help for a subcommand:
`protonvpn {{subcommand}} --help`

View File

@@ -0,0 +1,33 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# protonvpn connect
> Connect to ProtonVPN.
> More information: <https://github.com/Rafficer/linux-cli-community>.
- Connect to ProtonVPN interactively:
`protonvpn {{c|connect}}`
- Connect to ProtonVPN using the fastest server available:
`protonvpn {{c|connect}} {{-f|--fastest}}`
- Connect to ProtonVPN using a specific server with a specific protocol:
`protonvpn {{c|connect}} {{server_name}} -p {{udp|tcp}}`
- Connect to ProtonVPN using a random server with a specific protocol:
`protonvpn {{c|connect}} {{-r|--random}} -p {{udp|tcp}}`
- Connect to ProtonVPN using the fastest Tor-supporting server:
`protonvpn {{c|connect}} --tor`
- Display help:
`protonvpn connect --help`

21
tldr/linux/setfattr Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# setfattr
> Set extended file attributes.
> More information: <https://manned.org/setfattr>.
- Set name of attribute for file:
`setfattr -n user.{{attribute_name}} {{path/to/file}}`
- Set a user-defined value of an extended attribute on a file:
`setfattr -n user.{{attribute_name}} -v "{{value}}" {{path/to/file}}`
- Remove a specific attribute of a file:
`setfattr -x user.{{attribute_name}} {{path/to/file}}`

38
tldr/linux/sysdig Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# sysdig
> System troubleshooting, analysis and exploration.
> Capture, filter and store systemcalls.
> More information: <https://github.com/draios/sysdig/wiki>.
- Capture all the events from the live system and print them to screen:
`sysdig`
- Capture all the events from the live system and save them to disk:
`sysdig -w {{path/to/file}}.scap`
- Read events from a file and print them to screen:
`sysdig -r {{path/to/file}}.scap`
- Filter and Print all the open system calls invoked by cat:
`sysdig proc.name=cat and evt.type=open`
- Register any found plugin and use dummy as input source passing to it open params:
`sysdig -I dummy:'{{parameter}}'`
- List the available chisels:
`sysdig -cl`
- Use the spy_ip chisel to look at the data exchanged with ip address:
`sysdig -c spy_ip {{ip_address}}`