Skip to content

Commit d6e2628

Browse files
authored
Add files via upload
1 parent 3ef36cf commit d6e2628

14 files changed

+75
-0
lines changed

Challenges/basic/CCCC/CCCCC.c

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <stdio.h>
2+
#include <string.h>
3+
4+
unsigned char flag[]={146,144,154,156,139,153,132,207,151,160,134,207,138,160,156,158,145,160,141,138,145,160,158,160,188,160,143,141,207,152,141,158,146,222,130,0};
5+
6+
int main()
7+
{
8+
int i;
9+
10+
for(i = 0; i < strlen(flag); i++)
11+
printf("%c", flag[i] ^ 0xff);
12+
13+
return 0;
14+
}
15+

Challenges/basic/CCCC/flag.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
moectf{0h_y0u_can_run_a_C_pr0gram!}

Challenges/basic/CCCC/题目描述.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
C语言是学习计算机基础中的基础,也是计算机第一学期的必修课。本题你需要配置一个能够编译运行C语言程序的环境,并且运行题目给出的代码来获取flag。
2+
by the way:如果你看不懂这段代码,仅仅只是运行得到了flag,后面的题做起来会有一些困难噢

Challenges/basic/Python/Python.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
def rol(x):
2+
return ((x >> 3) | (x << 5)) & 0xff
3+
4+
enc = [233, 184, 152, 112, 248, 104, 137, 129, 168, 41, 136, 96, 82, 153, 217, 2, 217, 114, 28, 184]
5+
key = 'Python'
6+
flag = ''
7+
8+
for i in range(len(enc)):
9+
enc[i] = rol(enc[i])
10+
enc[i] -= i
11+
enc[i] ^= ord(key[i % len(key)])
12+
13+
for i in enc:
14+
flag += chr(i)
15+
16+
print(flag)

Challenges/basic/Python/flag.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
moectf{Python_YYDS!}
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Python是CTF中最常用的编程语言,不管是学习哪个方向都离不开Python。本题你需要配置一个能够编译运行Python程序的环境,并且运行题目给出的代码来获取flag。
2+
by the way:希望你是在看懂这段代码的基础上提交flag的:)

Challenges/basic/run_me/flag.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
moectf{run_me_to_get_the_flag}

Challenges/basic/run_me/run_me.c

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <stdio.h>
2+
#include <string.h>
3+
//moectf{run_me_to_get_the_flag}
4+
unsigned char flag[]={146,144,154,156,139,153,132,141,138,145,160,146,154,160,139,144,160,152,154,139,160,139,151,154,160,153,147,158,152,130,0};
5+
6+
int main()
7+
{
8+
int i;
9+
10+
for(i = 0; i < strlen(flag); i++)
11+
printf("%c", flag[i]^0xff);
12+
13+
return 0;
14+
}
15+

Challenges/basic/run_me/run_me.exe

52.7 KB
Binary file not shown.
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
下载文件,双击运行得flag~
2+
但是我的程序好像会闪退欸,能不能想个办法保留一下它的输出?比如用CMD来运行它试试?
3+
如果你不知道什么是CMD,可以尝试使用搜索引擎来学习,加油吧(> <)

Challenges/basic/run_me2/flag.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
moectf{run_m3_t0_g3t_th3_f1ag}

Challenges/basic/run_me2/run_me2

852 KB
Binary file not shown.

Challenges/basic/run_me2/run_me2.c

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <stdio.h>
2+
#include <string.h>
3+
//moectf{run_m3_t0_g3t_th3_f1ag}
4+
unsigned char flag[]={146,144,154,156,139,153,132,141,138,145,160,146,204,160,139,207,160,152,204,139,160,139,151,204,160,153,206,158,152,130,0};
5+
6+
int main()
7+
{
8+
int i;
9+
10+
for(i = 0; i < strlen(flag); i++)
11+
printf("%c", flag[i]^0xff);
12+
13+
return 0;
14+
}
15+
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
下载文件,运行得flag~
2+
诶诶出了点小问题,好像不能运行?!因为这个程序是Linux操作系统下的可执行文件,不再是Windows了。
3+
请尝试配置一个Linux环境(虚拟机或者WSL)来运行它。

0 commit comments

Comments
 (0)