BUUCTF [GWCTF 2019]pyre

📅 2026/7/8 2:10:30
BUUCTF [GWCTF 2019]pyre
考点python解包取模运算先使用了在线网站使pyc→py发现.pyc是2.7版本用uncompyle6uncompyle6 attachment.pyc attachment.py得到attachment.py文件code内容应是{31, 18, 29, 40, 48, 52, 1, 6, 20, 52, 44, 27, 85, 63, 111, 54, 42, 58, 1, 68, 59, 37, 19}#include stdio.h int main() { int code[]{31, 18, 29, 40, 48, 52, 1, 6, 20, 52, 44, 27, 85, 63, 111, 54, 42, 58, 1, 68, 59, 37, 19}; int lensizeof(code)/sizeof(code[0]); int i,input1[100]; for(ilen-2;i0;i--) { code[i] code[i] ^ code[i 1]; } for(i0;ilen;i) { input1[i]((code[i] - i) % 128 128) % 128 ; printf(%c,input1[i]); } return 0; }逆向得flag{Just_Re_1s_Ha66y!}