CTFshow 2023 ——愚人杯 Re题解

博客围绕easy_pyc展开,介绍了使用Python在线工具进行反编译得到源代码,还提到用Python提取数据的ASCLL值,以及C++逆向两段循环,最终得出结果ctfshow{Just_F00l's_D@y_R3_Ch3ck - in!}。

1.easy_pyc

反编译

使用python反编译 - 在线工具反编译得到源代码

#!/usr/bin/env python
# visit https://tool.lu/pyc/ for more information
# Version: Python 2.7

print 'Welcome to CTFshow Re!'
print 'your flag is here!'
flag = ''
l = len(flag)
for i in range(l):
    num = ((flag[i] + i) % 114514 + 114514) % 114514
    code += chr(num)

code = map(ord, code)
for i in range((l - 4) + 1):
    code[i] = code[i] ^ code[i + 1]

print code
code = [
    '%16',
    '%1d',
    '%1e',
    '%1a',
    '%18',
    '\t',
    '%ff',
    '%d0',
    ',',
    '%03',
    '%02',
    '%14',
    '8',
    'm',
    '%01',
    'C',
    'D',
    '%bd',
    '%f7',
    '*',
    '\r',
    '%da',
    '%f9',
    '%1c',
    '&',
    '5',
    "'",
    '%da',
    '%d4',
    '%d1',
    '%0b',
    '%c7',
    '%c7',
    '%1a',
    '%90',
    'D',
    '%a1']

wp

Python提取一下数据的ASCLL值

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

烨鹰

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值