try2hack 第七關
其實東西是由之前抓HJNET 的那個CODE 改來的,只是這次的練習讓我對HTTP 交換的內容又多知道了一些;
所以就又PO 上來了:
所以就又PO 上來了:
import httplib
from string import split
URL1 = "www.try2hack.nl"
FILE1 = "/levels/level7-???????.???"
info = """
GET /levels/level7-xfkohc.php HTTP/1.1
User-Agent: MSIE ???; linux;
Referer: http://www.?????.com/????.htm
"""
conn = httplib.HTTPConnection(URL1)
conn.request(info,FILE1)
r1 = conn.getresponse()
d1 = r1.read()
conn.close()
print d1
留言