问题链接
问题链接如下:
http://www.pythonchallenge.com/pc/def/integrity.html
答案链接
答案链接如下:
http://www.pythonchallenge.com/pc/return/good.html
- 登陆用户名密码为
huge
和file
。
解题思路
阅读源码有如下两行:
<!--
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'
- 解压结果为
huge
和file
。
再观察页面可知,点击图片中的小蜜蜂,可以跳出一个登陆页面,将刚才的huge
和file
输入,可以得进入下一个页面:http://www.pythonchallenge.com/pc/return/good.html
。
网友评论