CTF-WP-1
巅峰极客2023wp1:巅峰极客 2023 逆向 Writeup - s11nk - 博客园 (cnblogs.com)
g0Re还原特征码
即可upx脱壳。
程序逻辑首先是一个AES加密,调试可以得出加密函数:
然后一个换表了的base64:
最后与key异或,然后比较:
exp123456789101112131415161718192021222324252627import base64import structfrom Crypto.Cipher import AESkey = [ 0x77, 0x76, 0x67, 0x69, 0x74, 0x62, 0x79, 0x67, 0x77, 0x62, 0x6B, 0x32, 0x62, 0x34, 0x36, 0x64]uni_base64 = '456789}#IJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123ABCDEFGH'std_base64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcde ...

