- Password is reset only when session count (cnt) reaches 120.
- Only one password is saved to DB with unique IP rather than with specific session ID.
def GetCookie():
# cookie
cj = CookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
response = opener.open(url)
content = response.read()
#get cookie
cookie_string=""
for cookie in cj:
cookie_string +=('%s=%s;'%(cookie.name,cookie.value))
print "cookie: " + cookie_string
return cookie_string
If we have only 4 parallel sessions, we will have 4*120 times = 480 number of available requests to the server. it is enough for crafting correct 30 char password with blind sqli.
for i in range(0,4):
session.append(GetCookie)