CTFlearn 网站的Writeup (easy 2,持续更新中心)

国内的大部分CTF练习平台都是收费的,搜来搜去找到了一个国外的提供免费练习的网站https://ctflearn.com/ ,于是尝试开始做题。下面是记录。

1、HEXTROADINARY

异或操作即可,flag为0xc0ded 

2、Wikipedia

按理要去百科上去搜,结果你懂的。

3、Simple Programming

编程题,统计一行中1是3的倍数,或者0是2的倍数的行数。

count = 0

filepath = 'data.dat'


with open(filepath) as fp:
lines = [line.rstrip() for line in fp]

for line in lines:
    zeroes = 0
    ones = 0
    for char in line:
        if char == "0":
            zeroes += 1
        if char == "1":
            ones += 1
    if (zeroes%3 == 0) | (ones%2 == 0):
        count += 1
print(count)

4、Base 2 2 the 6

base64解码即可,CTF{FlaggyWaggyRaggy}

5、

你可能感兴趣的:(CTF,#,综合)