Bandit Wargame Level12 Writeup

Posted 李秋豪

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Bandit Wargame Level12 Writeup相关的知识,希望对你有一定的参考价值。

Level Goal

The password for the next level is stored in the file data.txt, which is a hexdump of a file that has been repeatedly compressed. For this level it may be useful to create a directory under /tmp in which you can work using mkdir. For example: mkdir /tmp/myname123. Then copy the datafile using cp, and rename it using mv (read the manpages!)

Commands you may need to solve this level

grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd, mkdir, cp, mv

Helpful Reading Material

 用xxd将hexdump转换为二进制文件后,用file确定二进制文件为gzip,尝试gzip -dv 却报错:gzip: data.txt: unknown suffix -- ignored。原因在于多次压缩的文件gzip直接解压后无法还原为非压缩文件。可以将标准输出定向到一个新的文件然后解压或者使用管道继续解压。

以上是关于Bandit Wargame Level12 Writeup的主要内容,如果未能解决你的问题,请参考以下文章

overthewire (bandit)

Bandit

命令注入新玩法:巧借环境攻击目标

关于Multi-Armed Bandit(MAB)问题及算法

bandit工具分析

bandit game