Differences

This shows you the differences between two versions of the page.

programiranje:python_challenge:nivo_8 [2009/11/23 09:07] (current)
delboy created
Line 1: Line 1:
 +===== Python Challenge - Nivo 8 =====
 +U [[http://www.pythonchallenge.com/pc/def/integrity.html|ovom nivou]] je potrebno pronaći korisničko ime i šifru koje traži sajt kad se klikne na pčelu koja je na slici. U source-u stranice postoje dva niza znakova koji predstavljaju neke podatke kompresovane bz2 kompresijom (zvuk pčele bi trebao da potseti na bz kompresiju). Sve što treba uraditi je otpakovati to.
 +
 +<code python>
 +In [1]: import bz2
 +
 +In [2]: bz2.decompress('BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x01\x80' +
 +  ...: '\x02\xc0\x02\x00 \x00!\x9ah3M\x07<]\xc9\x14\xe1BA\x06\xbe\x084')
 +Out[2]: 'huge'
 +
 +In [3]: bz2.decompress('BZh91AY&SY\x94$|\x0e\x00\x00\x00\x81\x00' +
 +  ...: '\x03$ \x00!\x9ah3M\x13<]\xc9\x14\xe1BBP\x91\xf08')
 +Out[3]: 'file'
 +</code>
 +
 +**Rešenje**: http://www.pythonchallenge.com/pc/return/good.html username = huge, password = file
 +
 
programiranje/python_challenge/nivo_8.txt · Last modified: 2009/11/23 09:07 by delboy
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki