刘功瑞的博客

有一天你突然惊醒,发现这一切,都只不过是一场梦。

攻防世界 XCTF Reverse re1-100 Writeup

image.png


image.png

ida看到,字符串必须以 53fc275d81 开头,以 4938ae4efd 结尾,经过confuseKey之后,变成{daf29f59034938ae4efd53fc275d81053ed5be8c},点进confuseKey看下

image.png

image.png

关键代码,把字符串分为4份,调换位置,wp如下:

s = 'daf29f59034938ae4efd53fc275d81053ed5be8c'
flag = s[20:30] + s[30:40] + s[0:10] + s[10:20]

print flag
#53fc275d81053ed5be8cdaf29f59034938ae4efd


发表评论:

Powered By Z-BlogPHP 1.5.2 Zero

Copyright www.liugongrui.com.All Rights Reserved.