From 6dc5db4709d981e80234699bf37601c8defd93bc Mon Sep 17 00:00:00 2001 From: "nuo.o" <49533950+nuoxoxo@users.noreply.github.com> Date: Sat, 16 Nov 2024 09:39:09 +0100 Subject: [PATCH] Update README.mdx --- level00/README.mdx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/level00/README.mdx b/level00/README.mdx index 0d085ce..e825ce1 100644 --- a/level00/README.mdx +++ b/level00/README.mdx @@ -1,6 +1,7 @@ # SSH on host do + ``` $ ifconfig 👉 find inet 192.168.X.X ... @@ -9,21 +10,23 @@ $ ssh 192.168.X.X # 00 +- to begin with + ``` +$ ls -l +$ find / -user level00 +$ find / -user level00 2>/dev/null $ find / -user flag00 2>/dev/null -...output (only 2 files) - 👉 and we want to cat them all out - -$ find / -user flag00 -exec cat {} + 2>/dev/null +$ find / -user flag00 -exec cat {} + 2>/dev/null\ +cdiiddwpgswtgt cdiiddwpgswtgt - 👉 looks like cipher to decode ``` - command explained - `/` - from root directory - `+` - forces `find` to run `cat` on many files at once and not one at a time - `2>/dev/null` - redir stderr output to `/dev/null` -- decipher in python +- decipher ___`cdiiddwpgswtgt`___ in python ```py a = ord('a') @@ -31,7 +34,7 @@ for i in range(26): print(i, ''.join(chr(a + (ord(c) - a + i) % 26) for c in 'cdiiddwpgswtgt')) ``` -- swicth to user `flag00` w/ pw +- swicth to user `flag00` ```sh $ su flag00