首页
社区
课程
招聘
看雪CTF2019Q2-第1题 神秘来信
2019-6-18 22:39 1585

看雪CTF2019Q2-第1题 神秘来信

2019-6-18 22:39
1585
sn长度小于7
.text:004012C9                 cmp     edx, 7
.text:004012CC                 jb      short loc_4012F9

***353
.text:004012F9                 cmp     [ebp+sn+5], '3'
.text:004012FD                 jnz     short loc_4012CE
.text:004012FF                 cmp     [ebp+sn+4], '5'
.text:00401303                 jnz     short loc_4012CE
.text:00401305                 cmp     [ebp+sn+3], '3'
.text:00401309                 jnz     short loc_4012CE

int(sn, 16) == 0x401353才会触发除0异常, 跳向成功
.text:00401349                 test    esi, esi        ; int(sn, 16)
.text:0040134B                 jz      short loc_40135D
.text:0040134D                 push    eax
.text:0040134E                 call    loc_401354
.text:00401353                 db 0EBh
.text:00401354                 pop     eax
.text:00401355                 sub     eax, 0
.text:00401358                 sub     esi, eax
.text:0040135A                 div     esi

得到sn: 401353 

[CTF入门培训]顶尖高校博士及硕士团队亲授《30小时教你玩转CTF》,视频+靶场+题目!助力进入CTF世界

收藏
点赞0
打赏
分享
最新回复 (0)
游客
登录 | 注册 方可回帖
返回