首页
社区
课程
招聘
1
ctf2018-第13题
发表于: 2018-7-11 19:41 2895

ctf2018-第13题

2018-7-11 19:41
2895

sn长度为10

1
2
.text:00000000004039C7                 cmp     rdx, 0Ah
.text:00000000004039CB                 jz      short loc_403A0B

1
2
.text:00000000004039C7                 cmp     rdx, 0Ah
.text:00000000004039CB                 jz      short loc_403A0B

hex2bin, 必须是大写的16进制
1
2
3
4
5
.text:0000000000403A0B                 lea     rdx, [rsp+1B8h+a2] ; a2
.text:0000000000403A10                 mov     r8d, 0Ah        ; a3
.text:0000000000403A16                 mov     rcx, rsi        ; a1
.text:0000000000403A19                 call    hex2bin
.text:0000000000403A1E                 cmp     eax, 5

1
2
3
4
5
.text:0000000000403A0B                 lea     rdx, [rsp+1B8h+a2] ; a2
.text:0000000000403A10                 mov     r8d, 0Ah        ; a3
.text:0000000000403A16                 mov     rcx, rsi        ; a1
.text:0000000000403A19                 call    hex2bin
.text:0000000000403A1E                 cmp     eax, 5

x = ((snHex[1] << 8) | snHex[0]) << 48;
y = ((snHex[4] << 16) | (snHex[3] << 8) | snHex[2]) << 40;
in: (x,y)
out: r
1
.text:0000000000403A97                 call    x_4015E0 

1
.text:0000000000403A97                 call    x_4015E0 

sprintf(buf, "%lf", r);
buf[1]=='.';
sqrt(int(buf[0])^2+int(buf[2])^2+int(buf[3])^2) > 15.5

[注意]看雪招聘,专注安全领域的专业人才平台!

最后于 2018-7-11 21:24 被风间仁编辑 ,原因:
收藏
免费 1
支持
分享
赞赏记录
参与人
雪币
留言
时间
PLEBFE
为你点赞~
2023-2-4 01:10
最新回复 (0)
游客
登录 | 注册 方可回帖
返回

账号登录
验证码登录

忘记密码?
没有账号?立即免费注册