import urllib2 import urllib2 import re def http_conn(param): url = "http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=" req = urllib2.Request(url+param) res = urllib2.urlopen(req).read() return res param = "".join(re.findall("[0-9]",http_conn("8022"))) for i in range(400): if "and the next nothing is" in http_conn(param): param = "".join(re.findall("[0-9]",http_conn(param))) print "[*] "+"".join(re.findall("[0-9]",http_conn(param))) else: print http_conn(param) break
'Wargame > pythonchallenge' 카테고리의 다른 글
pythonchallenge LEVEL 6 (0) | 2017.04.14 |
---|---|
pythonchallenge LEVEL 5 (0) | 2017.04.12 |
pythonchallenge LEVEL 3 (0) | 2017.04.12 |
pythonchallenge LEVEL 2 (0) | 2017.04.12 |
pythonchallenge LEVEL 1 (0) | 2017.04.12 |