SSH 登录后,关卡目录在 /home/level/,每关还有一个副本在
~/level/(你的 home 目录下)。
Level 0 (/home/level/00_welcome/):
1
$ cat /home/level/00_welcome/README.md
Level 1
(/home/level/01_choice_tree/):
1 2 3 4 5 6
$ ls /home/level/01_choice_tree/ blue green README.md red $ find /home/level/01_choice_tree/ -type f /home/level/01_choice_tree/blue/hats/grey/solution/patience/SOLUTION.txt ... $ cat /home/level/01_choice_tree/blue/hats/grey/solution/patience/SOLUTION.txt
在目录树中探索,选择 blue 路径(提示: "become a gray
hat"),深入到
blue/hats/grey/solution/patience/SOLUTION.txt。
Level 2 (/home/level/02/):
1 2 3 4 5 6 7
$ ls /home/level/02/ documents photos $ ls -al /home/level/02/ drwxr-xr-x 2 root level02 4096 Jan 10 2023 documents drwxr-xr-x 2 root level02 4096 Jan 11 2023 photos drwxr-xr-x 2 root level02 4096 Jan 11 2023 .porb $ cat /home/level/02/.porb/.solution
ls 看不到答案,用 ls -al 发现隐藏目录
.porb。
Level 3 (/home/level/03/):
1 2
$ cat /home/level/03/.bash_history The solution to SSH3 is: RepeatingHistory
读取 .bash_history 文件直接获得答案。
Level 4 (/home/level/04_kwisatz/):
1 2 3 4 5 6 7
$ cat /home/level/04_kwisatz/README.nfo Look in your ~ $ ls -la ~/level/04_kwisatz/ ---------- 1 <username> <username> 248 Jun 4 05:02 README2.md -rw-r--r-- 1 <username> <username> 140 Jun 4 05:02 README.txt $ chmod u+r ~/level/04_kwisatz/README2.md $ cat ~/level/04_kwisatz/README2.md
README.nfo 提示看 home
目录。~/level/04_kwisatz/README2.md 权限为
----------(无任何权限),但文件所有者是自己,用
chmod u+r 添加读权限。
Level 5 (/home/level/05_privacy/):
1 2 3 4
$ cat /home/level/05_privacy/README.md # WAR#5: Privacy Please protect your ~ from any other people than yourself. The 5th solution is "OKPRIVATE" without the quotes.
README 直接给出答案。实际操作是用 chmod 700 ~ 保护 home
目录不被其他用户访问。
MySQL Authentication Bypass II. Same as MySQL I, but with an
additional password hash check. Your mission: Login yourself as admin.
MySQL 认证绕过第二版。与 MySQL I 相同,但增加了密码哈希校验。目标:以
admin 身份登录。
A simple monoalphabetic substitution cipher. The plaintext is a fixed
30-word sentence; only the password word (position 21, 12 letters) is
dynamic per session. 简单的单表替换密码。明文是一个固定的 30
词句子,只有第 21 个词(12 个字母)是每 session 动态变化的。
1 2 3 4 5 6
Oh dear, I guess you have cracked the two caesar cryptos... This one is more difficult. Although a simple substitution is easily cracked... Again the characters are limited to A-Z... But I think I can come up with a 256 version again.
$ ./target/release/subsolve "SR ZBC UWJPKBZR KIH RID AUE QCUH ZBPN JR LQPCEH P UJ PJMQCNNCH TCQR YCWW HIEC RIDQ NIWDZPIE GCR PN MEESELIEACIP ZBPN WPZZWC ABUWWCEKC YUN EIZ ZII BUQH YUN PZ" Score: -567.73 (quadgram) ───────────────────────────────────────────────────────────────── by the almighty god you can read this my friend iam impressed very well done your solution key is pn nb nf once oi this little challenge was not too hard was it ───────────────────────────────────────────────────────────────── alt 2 (q: -1549.27): by the almighty god you can read this my friend i am impressed very well done yo... alt 3 (q: -1557.21): by the almighty god you can read this my friend iam impressed very well done you...