Minor patch

This commit is contained in:
Miroslav Stampar
2013-08-12 14:25:51 +02:00
parent a711c9ed36
commit b2855e0281
5 changed files with 45 additions and 14 deletions

View File

@@ -37,6 +37,7 @@ from lib.core.common import randomInt
from lib.core.common import randomStr
from lib.core.common import readInput
from lib.core.common import removeReflectiveValues
from lib.core.common import setHTTPProxy
from lib.core.common import singleTimeLogMessage
from lib.core.common import singleTimeWarnMessage
from lib.core.common import stdev
@@ -107,6 +108,14 @@ class Connect(object):
threadData = getCurrentThreadData()
threadData.retriesCount += 1
if threadData.retriesCount >= conf.retries:
warnMsg = "changing proxy"
logger.warn(warnMsg)
conf.proxy = conf.proxyList[0]
conf.proxyList = conf.proxyList[1:] + conf.proxyList[:1]
setHTTPProxy()
if kb.testMode and kb.previousMethod == PAYLOAD.METHOD.TIME:
# timed based payloads can cause web server unresponsiveness
# if the injectable piece of code is some kind of JOIN-like query