mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
added CPU throttling for lowering sqlmap's CPU intensivity
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -262,6 +262,8 @@ class Connect:
|
||||
|
||||
logger.log(8, responseMsg)
|
||||
|
||||
time.sleep(conf.cpuThrottleDelay)
|
||||
|
||||
return page, responseHeaders
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user