mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 13:01:30 +00:00
Update cheatsheets
This commit is contained in:
12
tldr/copr
Normal file
12
tldr/copr
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# copr
|
||||||
|
|
||||||
|
> This command is an alias of `copr-cli`.
|
||||||
|
|
||||||
|
- View documentation for the original command:
|
||||||
|
|
||||||
|
`tldr copr-cli`
|
||||||
25
tldr/copr-cli
Normal file
25
tldr/copr-cli
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# copr-cli
|
||||||
|
|
||||||
|
> Interface with Fedora-Projects copr instance for building RPMs and publishing them.
|
||||||
|
> More information: <https://manned.org/copr-cli>.
|
||||||
|
|
||||||
|
- Show user logged in to copr:
|
||||||
|
|
||||||
|
`copr-cli whoami`
|
||||||
|
|
||||||
|
- Build a local spec file on copr:
|
||||||
|
|
||||||
|
`copr-cli build {{repository}} {{path/to/spec_file}}`
|
||||||
|
|
||||||
|
- Check status of builds:
|
||||||
|
|
||||||
|
`copr-cli list-builds {{repository}}`
|
||||||
|
|
||||||
|
- Trigger a copr build of a spec-file from public (git) repository:
|
||||||
|
|
||||||
|
`copr-cli buildscm {{repository}} --clone-url {{https://git.example.org/repo}} --spec {{spec_file_name}}`
|
||||||
@@ -3,7 +3,7 @@ syntax: markdown
|
|||||||
tags: [tldr, linux]
|
tags: [tldr, linux]
|
||||||
source: https://github.com/tldr-pages/tldr.git
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
---
|
---
|
||||||
# ip route
|
# ip route add
|
||||||
|
|
||||||
> Add a new networking route.
|
> Add a new networking route.
|
||||||
> More information: <https://manned.org/ip-route>.
|
> More information: <https://manned.org/ip-route>.
|
||||||
|
|||||||
17
tldr/linux/systemctl-disable
Normal file
17
tldr/linux/systemctl-disable
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, linux]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# systemctl disable
|
||||||
|
|
||||||
|
> Disable systemd services.
|
||||||
|
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#disable%20UNIT%E2%80%A6>.
|
||||||
|
|
||||||
|
- Stop a service from running on boot:
|
||||||
|
|
||||||
|
`systemctl disable {{unit}}`
|
||||||
|
|
||||||
|
- Stop a service from running on boot and stop its current execution:
|
||||||
|
|
||||||
|
`systemctl disable {{unit}} --now`
|
||||||
37
tldr/rsactftool.py
Normal file
37
tldr/rsactftool.py
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# RsaCtfTool
|
||||||
|
|
||||||
|
> RSA attack tool for CTF challenges - recover private keys from weak public keys and/or decrypt data.
|
||||||
|
> More information: <https://github.com/RsaCtfTool/RsaCtfTool>.
|
||||||
|
|
||||||
|
- Recover a private key from a public key file:
|
||||||
|
|
||||||
|
`RsaCtfTool.py --publickey {{path/to/key.pub}} --private`
|
||||||
|
|
||||||
|
- Decrypt a file using a public key:
|
||||||
|
|
||||||
|
`RsaCtfTool.py --publickey {{path/to/key.pub}} --decryptfile {{path/to/ciphered_file}}`
|
||||||
|
|
||||||
|
- Decrypt a specific ciphertext string:
|
||||||
|
|
||||||
|
`RsaCtfTool.py --publickey {{path/to/key.pub}} --decrypt "{{ciphertext}}"`
|
||||||
|
|
||||||
|
- Dump RSA key components (e.g., modulus, exponent) from a key file:
|
||||||
|
|
||||||
|
`RsaCtfTool.py --dumpkey --key {{path/to/key.pub}}`
|
||||||
|
|
||||||
|
- Run a specific attack (e.g., Fermat factorization) to recover the private key:
|
||||||
|
|
||||||
|
`RsaCtfTool.py --publickey {{path/to/key.pub}} --private --attack fermat`
|
||||||
|
|
||||||
|
- Generate a public key from modulus (n) and exponent (e):
|
||||||
|
|
||||||
|
`RsaCtfTool.py --createpub -n {{modulus}} -e {{exponent}}`
|
||||||
|
|
||||||
|
- Attempt all available attacks to recover the private key:
|
||||||
|
|
||||||
|
`RsaCtfTool.py --publickey {{path/to/key.pub}} --private --attack all`
|
||||||
Reference in New Issue
Block a user