pythonchallenge闯关 第8题

8、Hint:(1)蜜蜂画了映射,可点击,弹出需要进行身份验证,需要用户名和密码

     (2)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&SYA 代表 bz2压缩

所以就要解压缩

# -*- coding:UTF-8 -*-
import bz2
un = b'BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00 \x00!\x9ah3M\x07<]\xc9\x14\xe1BA\x06\xbe\x084'
pw = b'BZh91AY&SY\x94$|\x0e\x00\x00\x00\x81\x00\x03$ \x00!\x9ah3M\x13<]\xc9\x14\xe1BBP\x91\xf08'
print('username: ' + bz2.decompress(un).decode())
print('password: ' + bz2.decompress(pw).decode())
(8)

username: huge

password: file

输入完成后页面自动跳转到http://www.pythonchallenge.com/pc/return/good.html

之后这个用户名和密码经常用,所以可以保存cookie

posted @ 2017-10-01 23:52  anixtt  阅读(176)  评论(0编辑  收藏  举报