From 1ae2c4c40bf422ab6537d6f92f6f2f582cf420e0 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sat, 17 Aug 2024 22:43:57 +0300 Subject: [PATCH 1/3] addded bash pwd generator --- content/posts/2024/bash/password-generator.md | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 content/posts/2024/bash/password-generator.md diff --git a/content/posts/2024/bash/password-generator.md b/content/posts/2024/bash/password-generator.md new file mode 100644 index 0000000..ff65e0b --- /dev/null +++ b/content/posts/2024/bash/password-generator.md @@ -0,0 +1,57 @@ +--- +title: "πŸ”‘ Π“Π΅Π½Π΅Ρ€Π°Ρ‚ΠΎΡ€ ΠΏΠ°Ρ€ΠΎΠ»Π΅ΠΉ Π² Π²ΠΈΠ΄Π΅ однострочника Π½Π° Bash" +date: 2024-08-17T22:33:12+03:00 +draft: false +tags: [linux, tips, security] +--- + +ΠŸΠΎΡΡ‚ [Cyrus](https://stackoverflow.com/a/44377013) Π½Π° **SoF**. + +Команда: + +```sh +tr -dc 'A-Za-z0-9!?%=' < /dev/urandom | head -c 20 +``` + +Π’Ρ‹Ρ…Π»ΠΎΠΏ: + +```text +7sixuvfqbFRAj4g=3v7Y +``` + + + +## Π”Ρ€ΡƒΠ³ΠΈΠ΅ Π²Π°Ρ€ΠΈΠ°Π½Ρ‚Ρ‹ + +### OpenSSL + +Команда: + +```sh +openssl rand -base64 20 +``` + +Π’Ρ‹Ρ…Π»ΠΎΠΏ: + +```text +c+EtG4VK/0JLR6tWrneAlP4bHmQ= +``` + + +### ВСрсия Cyrus с ΡƒΠ»ΡƒΡ‡ΡˆΠ΅Π½Π½ΠΎΠΉ энтопиСй + +```sh +for i in $(seq 1 5); do echo $(tr -dc 'A-Za-z0-9!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~' < /dev/urandom | head -c 20); done +``` + +```text +Q@2^u\U3.:%|{yGY@SMl +T8WVte55AggJ{WxElqDi +vG%+Gr"jp#x@f46YBj>m +|>Wd,|S>w)jwe|:))eLU +m`nSde+o,:vn\1JpJ1j3 +``` + +## Π”ΠΎΠΏΠΎΠ»Π½ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎ + +ΠŸΠΎΠΆΠ°Π»ΡƒΠΉ добавлю Π² `alias`. From 545848e0d0c72765f4946060b2ff31c546bb8cf1 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sat, 17 Aug 2024 22:58:41 +0300 Subject: [PATCH 2/3] strings --- content/posts/2024/linux/strings.md | 107 ++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 content/posts/2024/linux/strings.md diff --git a/content/posts/2024/linux/strings.md b/content/posts/2024/linux/strings.md new file mode 100644 index 0000000..e936cde --- /dev/null +++ b/content/posts/2024/linux/strings.md @@ -0,0 +1,107 @@ +--- +title: "🎹 Команда strings" +date: 2024-08-17T22:45:47+03:00 +draft: false +tags: [linux, tips] +--- + +## ℹ️ strings == строки + +## ΠŸΡ€ΠΈΠΌΠ΅Ρ€ + +Накидаю ΠΏΡ€ΠΎΡΡ‚ΡƒΡŽ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡƒ Π½Π° Π‘ΠΈ, которая ΠΈΠ½ΠΈΡ†ΠΈΠ°Π»ΠΈΠ·ΠΈΡ€ΡƒΠ΅Ρ‚ массив символов `ololo_str` +со Π·Π½Π°Ρ‡Π΅Π½ΠΈΠ΅ΠΌ `It's unique text`, +Π° Ρ‚Π°ΠΊΠΆΠ΅ Π²Ρ‹Π²ΠΎΠ΄ΠΈΡ‚ Π² консоль `GrindCore \m/`. + +Листинг `strings.c` + +```c +#include + +int main(int argc, char const *argv[]) { + char * ololo_str = "It's unique text"; + + puts("GrindCore \\m/"); + + return 0; +} +``` + +Π‘Π±ΠΎΡ€ΠΊΠ° ΠΈ запуск + +```sh +tcc -o string string.c # ΠšΠΎΠΌΠΏΠΈΠ»ΡΡ†ΠΈΡ +./string # Запуск +``` + +Π’Ρ‹Ρ…Π»ΠΎΠΏ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹: + +```text +GrindCore \m/ +``` + + +## О `strings` + +Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Ρ„Π°ΠΉΠ»Ρ‹, Ρ‚Π°ΠΊΠΈΠ΅ ΠΊΠ°ΠΊ ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½Ρ‹Π΅ Ρ„Π°ΠΉΠ»Ρ‹, ΠΌΠΎΠ³ΡƒΡ‚ ΡΠΎΠ΄Π΅Ρ€ΠΆΠ°Ρ‚ΡŒ строки Ρ‡ΠΈΡ‚Π°Π΅ΠΌΠΎΠ³ΠΎ Ρ‡Π΅Π»ΠΎΠ²Π΅ΠΊΠΎΠΌ тСкста. +Но ΠΊΠ°ΠΊ ΠΌΡ‹ ΠΈΡ… Π²ΠΈΠ΄ΠΈΠΌ? Если ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ `cat` ΠΈΠ»ΠΈ `less`, Ρ‚ΠΎ, скорСС всСго, +зависнСт ΠΎΠΊΠ½ΠΎ Ρ‚Π΅Ρ€ΠΌΠΈΠ½Π°Π»Π°. ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹, ΠΏΡ€Π΅Π΄Π½Π°Π·Π½Π°Ρ‡Π΅Π½Π½Ρ‹Π΅ для Ρ€Π°Π±ΠΎΡ‚Ρ‹ с тСкстовыми Ρ„Π°ΠΉΠ»Π°ΠΌΠΈ, +Π½Π΅ ΠΌΠΎΠ³Ρƒ ΠΎΠ±Ρ€Π°Π±Π°Ρ‚Ρ‹Π²Π°Ρ‚ΡŒ исполняСмыС Ρ„Π°ΠΉΠ»Ρ‹, содСрТащиС Π½Π΅ΠΏΠ΅Ρ‡Π°Ρ‚Π°Π΅ΠΌΡ‹Π΅ символы. + +_Π‘ΠΏΠΈΠ·ΠΆΠ΅Π½ΠΎ [ΠΎΡ‚ΡΡŽΠ΄Π°](https://wiki.merionet.ru/articles/kak-ispolzovat-komandu-strings-v-linux)._ + + +## ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ€Π°Π±ΠΎΡ‚Ρ‹ + +Π”Π°Π²Π°ΠΉ Π½Π°Ρ‚Ρ€Π°Π²ΠΈΠΌ `strings` Π½Π° исполняСмый Ρ„Π°ΠΉΠ» `string`? + +Π’Ρ‹ΠΏΠΎΠ»Π½ΡΡŽ ΠΊΠΎΠΌΠ°Π½Π΄Ρƒ: + +```sh +strings ./string +``` + +ΠΈ Π²ΠΈΠΆΡƒ ΡΠ»Π΅Π΄ΡƒΡŽΡ‰ΠΈΠΉ Ρ€Π΅Π·ΡƒΠ»ΡŒΡ‚Π°Ρ‚: + +```text +/lib64/ld-linux-x86-64.so.2 +__libc_start_main +puts +main +__gmon_start__ +libc.so.6 +GLIBC_2.34 +GLIBC_2.2.5 +libc.so.6 +PTE1 +It's unique text +GrindCore \m/ +.text +.data +.bss +.rodata.cst4 +.eh_frame +.init +.fini +.preinit_array +.init_array +.fini_array +.interp +.dynsym +.dynstr +.hash +.dynamic +.got +.rela.got +.plt +.gnu.version +.gnu.version_r +.shstrtab +``` + +Много всСго, Π΄Π°, Π½ΠΎ ΠΎΠ±Π΅ строки ΠΈΠ· ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹ ΠΏΡ€ΠΈΡΡƒΡ‚ΡΠ²ΡƒΡŽΡ‚. + +**Π’Ρ‹Π²ΠΎΠ΄:** Π£Ρ‚ΠΈΠ»ΠΈΡ‚Π° ΠΎΡ‡Π΅Π½ΡŒ полСзная! ΠŸΡ€ΠΈΠΌΠ΅Π½Π΅Π½ΠΈΠ΅?... ΠΌΠ½ΠΎΠ³ΠΎ. +Π― Π²ΠΎΡ‚ сСгодня Π²Ρ‹Ρ‚Π°Ρ‰ΠΈΠ» ΠΈΠ· Π±ΠΈΠ½Π°Ρ€Π½ΠΈΠΊΠ° ΠΏΠ°Ρ€ΠΎΠ»ΡŒ администратора ΠΎΡ‚ устройства, +ΠΊ ΠΊΠΎΡ‚ΠΎΡ€ΠΎΠΌΡƒ ΠΎΡΡƒΡ‰Π΅ΡΡ‚Π²Π»ΡΠ»ΠΎΡΡŒ ΠΏΠΎΠ΄ΠΊΠ»ΡŽΡ‡Π΅Π½ΠΈΠ΅ ΠΈ Π½Π° ΠΊΠΎΡ‚ΠΎΡ€ΠΎΠΌ Π±Ρ‹Π»Π° ΠΎΡ‡Π΅Π½ΡŒ цСнная информация. +(πŸ₯² ΡˆΡƒΡ‡Ρƒ). From 61751d16cde1aa382601fe98da29f8a62df8181d Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 18 Aug 2024 01:26:10 +0300 Subject: [PATCH 3/3] =?UTF-8?q?=D0=9D=D0=90=D0=97=D0=A3=D0=AF=3F!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/posts/2024/ravdina/slot.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 content/posts/2024/ravdina/slot.md diff --git a/content/posts/2024/ravdina/slot.md b/content/posts/2024/ravdina/slot.md new file mode 100644 index 0000000..2e00483 --- /dev/null +++ b/content/posts/2024/ravdina/slot.md @@ -0,0 +1,9 @@ +--- +title: "πŸŽ™οΈ Ravdina -> SLOT" +date: 2024-08-18T01:23:23+03:00 +draft: false +tags: [life, music] +--- + +Π”Π°ΡˆΠΊΠ° Ρ‚Π΅ΠΏΠ΅Ρ€ΡŒ Π½Π° Π²ΠΎΠΊΠ°Π»Π΅ Π² [Slot](https://www.slot.ru/)... +Бля, назуя? я плакаю...