9

【Root-Me】 ELF - 0 protection

 2 years ago
source link: https://exp-blog.com/safe/ctf/rootme/cracking/elf-0-protection/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

【Root-Me】 ELF



水题,需要知道的是 ELF 是 Linux 下的一种可执行的二进制文件(类比 Windows 的 exe)。

开始挑战后下载了一个 ch1.zip 文件,解压后得到 ch1.bin

使用 UE编辑器 打开查看文件内容,基本都是乱码,但是切换到十六进制模式还是可以找到一些关键性代码的。

发现其中有一段用法语写的提示 Veuillez entrer le mot de passe : pass : %s! .....Dommage, essaye encore une fois. ,大意是:请输入密码,密码错误请重新输入。

怀疑这部分就是判断密码的逻辑,那么前面很可能有真正的密码比对,以触发这段代码。

向上找果然找到有一段代码 Allocating memory.Reallocating memory.123456789..,大意是把 123456789 重新载入内存。

其实这就是密码,这么直白地把密码明文存储也是没谁了,完成挑战。

01.png

flag 下载后的 flagzip 的文件需要手动更改后缀为 *.zip,然后解压即可(为了避免直接刷答案)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK