The Python Challenge(9)

2017-10-20  本文已影响0人  发条蛙

问题链接

问题链接如下:

http://www.pythonchallenge.com/pc/def/integrity.html

答案链接

答案链接如下:

http://www.pythonchallenge.com/pc/return/good.html

解题思路

阅读源码有如下两行:

<!--
un: 'BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00 \x00!\x9ah3M\x07<]\xc9\x14\xe1BA\x06\xbe\x084'
pw: 'BZh91AY&SY\x94$|\x0e\x00\x00\x00\x81\x00\x03$ \x00!\x9ah3M\x13<]\xc9\x14\xe1BBP\x91\xf08'
-->

根据网络搜索可知BZh91AY为bz2压缩格式的关键字,则将这两段解压可知:

>>> from bz2 import decompress
>>> decompress(b'BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00 \x00!\x9ah3M\x07<]\xc9\x14\xe1BA\x06\xbe\x084')
b'huge'
>>> decompress(b'BZh91AY&SY\x94$|\x0e\x00\x00\x00\x81\x00\x03$ \x00!\x9ah3M\x13<]\xc9\x14\xe1BBP\x91\xf08')
b'file'

再观察页面可知,点击图片中的小蜜蜂,可以跳出一个登陆页面,将刚才的hugefile输入,可以得进入下一个页面:http://www.pythonchallenge.com/pc/return/good.html

上一篇 下一篇

猜你喜欢

热点阅读