added CPU throttling for lowering sqlmap's CPU intensivity

This commit is contained in:
Miroslav Stampar 2010-05-13 15:19:28 +00:00
parent d96723a135
commit 5396f13bab
3 changed files with 30 additions and 27 deletions

View File

@ -878,6 +878,7 @@ def __setConfAttributes():
debugMsg = "initializing the configuration"
logger.debug(debugMsg)
conf.cpuThrottleDelay = 0.001
conf.cj = None
conf.dbmsConnector = None
conf.dbmsHandler = None

View File

@ -262,6 +262,8 @@ class Connect:
logger.log(8, responseMsg)
time.sleep(conf.cpuThrottleDelay)
return page, responseHeaders
@staticmethod