攻防世界 secret-galaxy-300

攻防世界 secret-galaxy-300

链接

secret-galaxy-300

思路

运行一下

galaxy_name数组

有一个名叫DARK SECRET GALAXY的字符串

ctrl+x看一下交叉引用,跳过去。

看有大佬直接用ida就做出来了。。。我不太行,写了个c的脚本,后来看wp又动态调试了一下。

脚本如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#define _CRT_SECURE_NO_WARNINGS
#include <stdlib.h>
#include <stdio.h>
#include <thread>


int main() {
const char *str[4] = { "Andromeda", "Messier", "Sombrero", "Triangulum"};
char temp[21] = "";
char result = 0;
temp[0] = str[0][8];
temp[1] = str[3][7];
temp[2] = str[1][4];
temp[3] = str[0][6];
temp[4] = str[0][1];
temp[5] = str[1][2];
temp[6] = 95;
temp[7] = str[0][8];
temp[8] = str[0][3];
temp[9] = str[2][5];
temp[10] = 95;
temp[11] = str[0][8];
temp[12] = str[0][3];
temp[13] = str[0][4];
temp[14] = str[3][6];
temp[15] = str[3][4];
temp[16] = str[0][2];
temp[17] = 95;
temp[18] = str[3][6];
result = str[1][3];
temp[19] = str[1][3];
temp[20] = 0x00;
printf("%s", temp);
return 0;
}

flag:aliens_are_around_us

请我喝杯咖啡吧~

支付宝
微信