codeblock

2016年3月29日 星期二

Python Challenge level 8

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

- "Where is the missing link?" If you click the bee in the picture, you will be asked to input a pair of username and password.
- Find the 'un' and 'pw' data streams in the source page.

- Observe that first few letters of these two streams are both "BZh91AY".
- Google that and find it is related to "bzip2" https://docs.python.org/2/library/bz2.html\
- Decompress these two streams.
import bz2
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"
print "un = ", bz2.decompress(un)
print "pw = ", bz2.decompress(pw)
- The username is "huge"; the password is "file".

沒有留言:

張貼留言