diff --git a/tldr/devcontainer b/tldr/devcontainer index 8cd8f80e..fc3abf27 100644 --- a/tldr/devcontainer +++ b/tldr/devcontainer @@ -24,10 +24,6 @@ source: https://github.com/tldr-pages/tldr.git `devcontainer build {{path/to/workspace}}` -- Open a Dev Container in VS Code (the path is optional): - -`devcontainer open {{path/to/workspace}}` - - Read and print the configuration of a Dev Container from `devcontainer.json`: `devcontainer read-configuration` diff --git a/tldr/edit b/tldr/edit new file mode 100644 index 00000000..76a4bcf8 --- /dev/null +++ b/tldr/edit @@ -0,0 +1,37 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# edit + +> A terminal-based text editor from Microsoft. +> More information: . + +- Open a file: + +`edit {{path/to/file}}` + +- Search for a pattern: + +`{{pattern}}` + +- Find and replace a pattern: + +`{{pattern}}` + +- Copy text: + +`` + +- Paste text: + +`` + +- Open the File menu: + +`` + +- Quit: + +`` diff --git a/tldr/hashcat b/tldr/hashcat index 80a15d53..390c7ad4 100644 --- a/tldr/hashcat +++ b/tldr/hashcat @@ -10,27 +10,27 @@ source: https://github.com/tldr-pages/tldr.git - Perform a brute-force attack (mode 3) with the default hashcat mask: -`hashcat --hash-type {{hash_type_id}} --attack-mode {{3}} {{hash_value}}` +`hashcat {{[-m|--hash-type]}} {{hash_type_id}} {{[-a|--attack-mode]}} 3 {{hash_value}}` - Perform a brute-force attack (mode 3) with a known pattern of 4 digits: -`hashcat --hash-type {{hash_type_id}} --attack-mode {{3}} {{hash_value}} "{{?d?d?d?d}}"` +`hashcat {{[-m|--hash-type]}} {{hash_type_id}} {{[-a|--attack-mode]}} 3 {{hash_value}} "{{?d?d?d?d}}"` - Perform a brute-force attack (mode 3) using at most 8 of all printable ASCII characters: -`hashcat --hash-type {{hash_type_id}} --attack-mode {{3}} --increment {{hash_value}} "{{?a?a?a?a?a?a?a?a}}"` +`hashcat {{[-m|--hash-type]}} {{hash_type_id}} {{[-a|--attack-mode]}} 3 --increment {{hash_value}} "{{?a?a?a?a?a?a?a?a}}"` -- Perform a dictionary attack (mode 0) using the RockYou wordlist of a Kali Linux box: +- Perform a dictionary attack (mode 0) using a wordlist: -`hashcat --hash-type {{hash_type_id}} --attack-mode {{0}} {{hash_value}} {{/usr/share/wordlists/rockyou.txt}}` +`hashcat {{[-m|--hash-type]}} {{hash_type_id}} {{[-a|--attack-mode]}} 0 {{hash_value}} {{path/to/wordlist.txt}}` -- Perform a rule-based dictionary attack (mode 0) using the RockYou wordlist mutated with common password variations: +- Run a dictionary attack (mode 0) using the specified wordlist, applying rule-based transformations to mutate candidate passwords: -`hashcat --hash-type {{hash_type_id}} --attack-mode {{0}} --rules-file {{/usr/share/hashcat/rules/best64.rule}} {{hash_value}} {{/usr/share/wordlists/rockyou.txt}}` +`hashcat {{[-m|--hash-type]}} {{hash_type_id}} {{[-a|--attack-mode]}} 0 {{[-r|--rules-file]}} {{path/to/file.rule}} {{hash_value}} {{path/to/wordlist.txt}}` - Perform a combination attack (mode 1) using the concatenation of words from two different custom dictionaries: -`hashcat --hash-type {{hash_type_id}} --attack-mode {{1}} {{hash_value}} /{{path/to/dictionary1.txt}} /{{path/to/dictionary2.txt}}` +`hashcat {{[-m|--hash-type]}} {{hash_type_id}} {{[-a|--attack-mode]}} 1 {{hash_value}} {{path/to/dictionary1.txt}} {{path/to/dictionary2.txt}}` - Show result of an already cracked hash: diff --git a/tldr/msedit b/tldr/msedit new file mode 100644 index 00000000..2feaac05 --- /dev/null +++ b/tldr/msedit @@ -0,0 +1,12 @@ +--- +syntax: markdown +tags: [tldr, common] +source: https://github.com/tldr-pages/tldr.git +--- +# msedit + +> This command is an alias of `edit`. + +- View documentation for the original command: + +`tldr edit` diff --git a/tldr/opencode b/tldr/opencode index 7e82bb09..81024283 100644 --- a/tldr/opencode +++ b/tldr/opencode @@ -12,6 +12,10 @@ source: https://github.com/tldr-pages/tldr.git `opencode` +- Continue the most recent session: + +`opencode {{[-c|--continue]}}` + - Run opencode in non-interactive mode by passing a prompt directly: `opencode run "{{message}}"` @@ -32,10 +36,6 @@ source: https://github.com/tldr-pages/tldr.git `opencode serve {{[-h|--hostname]}} {{hostname}} {{[-p|--port]}} {{port}}` -- Manage AI assistant agents for OpenCode: - -`opencode agent {{command}}` - - Create a new agent with custom configuration: `opencode agent create`