mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-26 11:33:47 +03:00
added CPU throttling for lowering sqlmap's CPU intensivity
This commit is contained in:
parent
d96723a135
commit
5396f13bab
|
@ -878,6 +878,7 @@ def __setConfAttributes():
|
||||||
debugMsg = "initializing the configuration"
|
debugMsg = "initializing the configuration"
|
||||||
logger.debug(debugMsg)
|
logger.debug(debugMsg)
|
||||||
|
|
||||||
|
conf.cpuThrottleDelay = 0.001
|
||||||
conf.cj = None
|
conf.cj = None
|
||||||
conf.dbmsConnector = None
|
conf.dbmsConnector = None
|
||||||
conf.dbmsHandler = None
|
conf.dbmsHandler = None
|
||||||
|
|
|
@ -262,6 +262,8 @@ class Connect:
|
||||||
|
|
||||||
logger.log(8, responseMsg)
|
logger.log(8, responseMsg)
|
||||||
|
|
||||||
|
time.sleep(conf.cpuThrottleDelay)
|
||||||
|
|
||||||
return page, responseHeaders
|
return page, responseHeaders
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue
Block a user