-
-
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
被风间仁编辑
,原因: