mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-03 13:14:13 +03:00
Minor adjustment
This commit is contained in:
parent
a21a7fc56d
commit
cda8da288c
|
@ -63,6 +63,9 @@ class Connect:
|
||||||
|
|
||||||
if conf.delay is not None and isinstance(conf.delay, (int, float)) and conf.delay > 0:
|
if conf.delay is not None and isinstance(conf.delay, (int, float)) and conf.delay > 0:
|
||||||
time.sleep(conf.delay)
|
time.sleep(conf.delay)
|
||||||
|
elif conf.cpuThrottle:
|
||||||
|
delay = 0.00001 * (conf.cpuThrottle ** 2)
|
||||||
|
time.sleep(delay)
|
||||||
|
|
||||||
url = kwargs.get('url', conf.url).replace(" ", "%20")
|
url = kwargs.get('url', conf.url).replace(" ", "%20")
|
||||||
get = kwargs.get('get', None)
|
get = kwargs.get('get', None)
|
||||||
|
@ -260,10 +263,6 @@ class Connect:
|
||||||
|
|
||||||
logger.log(8, responseMsg)
|
logger.log(8, responseMsg)
|
||||||
|
|
||||||
if conf.cpuThrottle:
|
|
||||||
delay = 0.00001 * (conf.cpuThrottle ** 2)
|
|
||||||
time.sleep(delay)
|
|
||||||
|
|
||||||
return page, responseHeaders
|
return page, responseHeaders
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue
Block a user