黑客游戏

bandit.labs.overthewire.org

Level 0

提示:此级别的目标是让您使用 SSH 登录游戏。您需要连接的主机是 bandit.labs.overthewire.org,在端口 2220 上。用户名是 bandit0,密码是 bandit0。登录后,转到 1 级页面以了解如何击败 1 级。

登录用户: bandit0

登录密码: bandit0


v2-ce38cc169da02f0f0c20c254519aec4a_b.jpeg

Level 0 → Level 1

提示:下一级别的密码存储在位于主目录中的名为 readme的文件 中。使用此密码通过 SSH 登录到 bandit1。

登录用户: bandit0

登录密码: bandit0

bandit0@bandit:~$ ls
readme
bandit0@bandit:~$ cat readme 
boJ9jbbUNNfktd78OOpsqOltutMc3MY1

Level 1 → Level 2

提示:下一级的密码存储在名为 -的文件中 位于主目录中

登录用户: bandit1

登录密码: boJ9jbbUNNfktd78OOpsqOltutMc3MY1

bandit1@bandit:~$ ls
-
bandit1@bandit:~$ cat ./-
CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9



Level 2 → Level 3

提示:下一级别的密码存储在位于主目录 中的此文件名中的一个名为 空格的文件

登录用户: bandit2

登录密码: CV1DtqXWVFXTvM2F0k09SHz0YwRINYA9

bandit2@bandit:~$ 
bandit2@bandit:~$ ls
spaces in this filename
bandit2@bandit:~$ ls -all
total 24
drwxr-xr-x  2 root    root    4096 May  7  2020 .
drwxr-xr-x 41 root    root    4096 May  7  2020 ..
-rw-r--r--  1 root    root     220 May 15  2017 .bash_logout
-rw-r--r--  1 root    root    3526 May 15  2017 .bashrc
-rw-r--r--  1 root    root     675 May 15  2017 .profile
-rw-r-----  1 bandit3 bandit2   33 May  7  2020 spaces in this filename
bandit2@bandit:~$ cat  spaces\ in\ this\ filename 
UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK

Level 3 → Level 4

提示:下一级别的密码存储在 inhere目录中的隐藏文件中。

登录用户:bandit3

登录密码:UmHadQclWmgdLOKQ3YNgjWxGoRMb5luK

bandit3@bandit:~$ ls -all
total 24
drwxr-xr-x  3 root root 4096 May  7  2020 .
drwxr-xr-x 41 root root 4096 May  7  2020 ..
-rw-r--r--  1 root root  220 May 15  2017 .bash_logout
-rw-r--r--  1 root root 3526 May 15  2017 .bashrc
drwxr-xr-x  2 root root 4096 May  7  2020 inhere
-rw-r--r--  1 root root  675 May 15  2017 .profile
bandit3@bandit:~$ cd  inhere/
bandit3@bandit:~/inhere$ ls
bandit3@bandit:~/inhere$ ls -all
total 12
drwxr-xr-x 2 root    root    4096 May  7  2020 .
drwxr-xr-x 3 root    root    4096 May  7  2020 ..
-rw-r----- 1 bandit4 bandit3   33 May  7  2020 .hidden
bandit3@bandit:~/inhere$ cat  .hidden 
pIwrPrtPN36QITSp3EQaw936yaFoFgAB

Level 4 → Level 5

提示:下一级的密码存储在 inhere目录中唯一的人类可读文件中。提示:如果您的终端搞砸了,请尝试“重置”命令。

登录用户:bandit4

登录密码:pIwrPrtPN36QITSp3EQaw936yaFoFgAB

bandit4@bandit:~$ ls
inhere
bandit4@bandit:~$ cd  inhere/
bandit4@bandit:~/inhere$ ls -all
total 48
drwxr-xr-x 2 root    root    4096 May  7  2020 .
drwxr-xr-x 3 root    root    4096 May  7  2020 ..
-rw-r----- 1 bandit5 bandit4   33 May  7  2020 -file00
-rw-r----- 1 bandit5 bandit4   33 May  7  2020 -file01
-rw-r----- 1 bandit5 bandit4   33 May  7  2020 -file02
-rw-r----- 1 bandit5 bandit4   33 May  7  2020 -file03
-rw-r----- 1 bandit5 bandit4   33 May  7  2020 -file04
-rw-r----- 1 bandit5 bandit4   33 May  7  2020 -file05
-rw-r----- 1 bandit5 bandit4   33 May  7  2020 -file06
-rw-r----- 1 bandit5 bandit4   33 May  7  2020 -file07
-rw-r----- 1 bandit5 bandit4   33 May  7  2020 -file08
-rw-r----- 1 bandit5 bandit4   33 May  7  2020 -file09
bandit4@bandit:~/inhere$ file ./*
./-file00: data
./-file01: data
./-file02: data
./-file03: data
./-file04: data
./-file05: data
./-file06: data
./-file07: ASCII text
./-file08: data
./-file09: data
bandit4@bandit:~/inhere$ cat ./-file07
koReBOKuIDDepwhWk7jZC0RTdopnAYKh

Level 5 → Level 6


提示:下一级别的密码存储在 inhe目录下某处的文件中,并具有以下所有属性:
  • 人类可读的
  • 1033 字节大小
  • 不可执行

登录用户:bandit5

登录密码:koReBOKuIDDepwhWk7jZC0RTdopnAYKh

find -size 1033c 指定搜索文件字节 c代表字节

bandit5@bandit:~$ ls
inhere
bandit5@bandit:~$ cd inhere/
bandit5@bandit:~/inhere$ ls
maybehere00  maybehere03  maybehere06  maybehere09  maybehere12  maybehere15  maybehere18
maybehere01  maybehere04  maybehere07  maybehere10  maybehere13  maybehere16  maybehere19
maybehere02  maybehere05  maybehere08  maybehere11  maybehere14  maybehere17
bandit5@bandit:~/inhere$ find -size 1033c
./maybehere07/.file2
bandit5@bandit:~/inhere$ cat  ./maybehere07/.file2
DXjZPULLxYr17uwoI01bNLQbtFemEgo7
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        bandit5@bandit:~/inhere$ 

Level 6 → Level 7

提示:下一级的密码存储 在服务器上的某处,并具有以下所有属性:
  • 归用户bandit7所有
  • 归bandit6组所有
  • 33 字节大小

登录用户:bandit6

登录密码:DXjZPULLxYr17uwoI01bNLQbtFemEgo7

指定用户组 用户 大小 搜索文件,为了看着简洁,可以在命令后添加 2>/dev/null

bandit6@bandit:~$ find / -group bandit6 -user bandit7  -size 33c
find: ‘/var/lib/polkit-1’: Permission denied
/var/lib/dpkg/info/bandit7.password
find: ‘/var/log’: Permission denied
bandit6@bandit:~$ cat /var/lib/dpkg/info/bandit7.password
HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs
bandit6@bandit:~$ 

Level 7 → Level 8

提示:下一级别的密码存储在文件 data.txt旁边的单词m illionth

登录用户:bandit7

登录密码:HKBPTKQnIay4Fw76bEy8PVxKEDQRKTzs

grep 内容匹配

bandit7@bandit:~$ grep  millionth data.txt 
millionth	cvX2JJa4CFALtqS87jk27qwqGhBM9plV
bandit7@bandit:~$ 

Level 8 → Level 9

提示:下一级别的密码存储在文件 data.txt 中,并且是仅出现一次的唯一文本行

登录用户:bandit8

登录密码:cvX2JJa4CFALtqS87jk27qwqGhBM9plV

sort 按照特定顺序排序,uniq 去重

bandit8@bandit:~$ sort data.txt |uniq -u
UsvVyFSfZZWbi6wgC7dAFyFuR6jQQUhR

Level 9 → Level 10

提示:下一级别的密码存储在文件 data.txt中的少数人类可读字符串之一中,前面是几个“=”字符。

登录用户:bandit9

登录密码:truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk

strings 输出可打印字符 | 管道符

bandit9@bandit:~$ grep "=*" data.txt 
Binary file data.txt matches
bandit9@bandit:~$ cat data.txt |grep ==
Binary file (standard input) matches
bandit9@bandit:~$ strings data.txt |grep =
========== the*2i"4
=:G e
========== password
<I=zsGi
Z)========== is
A=|t&E
Zdb=
c^ LAh=3G
*SF=s
&========== truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk
S=A.H&^

暂时先写这么多,后面有空再弄吧,我累了 。。。

Level 10 → Level 11

提示:

登录用户:bandit10

登录密码:truKLdjsbJ5g7yyJ2X2R0o3a5HQJFuLk


 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

SwBack

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值