From bd034bf9328e5b6f64628eed7216d8cbdc5a7803 Mon Sep 17 00:00:00 2001 From: nuoxoxo Date: Fri, 15 Nov 2024 23:16:01 +0000 Subject: [PATCH] show READMEs daily --- README.mdx | 43 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/README.mdx b/README.mdx index 9478e1b..d815c75 100644 --- a/README.mdx +++ b/README.mdx @@ -1,8 +1,49 @@ -/home/runner/work/cfo/cfo/README.mdx /home/runner/work/cfo/cfo/level00/README.mdx /home/runner/work/cfo/cfo/level01/README.mdx +# Level 00 - solution + +``` +$ find / -user flag00 2>/dev/null + +...output (only 2 lines) 👉 and we want to cat them all out + +$ find / -user flag00 -exec cat {} + 2>/dev/null + +cdiiddwpgswtgt 👉 looks like cipher +``` +- explain + - `/` - 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` +- solve the cipher +``` +a = ord('a') +for i in range(25): + print(i, ''.join(chr(a + (ord(c) - a + i) % 26) for c in 'cdiiddwpgswtgt')) +``` +- swicth to user `flag00` using the pw +```sh +$ su flag00 +$ Password: nottoohardhere +$ getflag +``` +# Level 00 - token +```r +x24ti5gi3x0ol2eh4esiuxias +``` + +# SSH + +on host do +``` +> ifconfig + 👉 find inet 192.168.X.X ... +> ssh 192.168.X.X +``` + + # Level 01 - solution ```