Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 98582d5

Browse files
committed
Minor update
1 parent d444bf1 commit 98582d5

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

lib/controller/checks.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
from lib.core.settings import IPS_WAF_CHECK_RATIO
8484
from lib.core.settings import IPS_WAF_CHECK_TIMEOUT
8585
from lib.core.settings import MAX_DIFFLIB_SEQUENCE_LENGTH
86+
from lib.core.settings import MAX_STABILITY_DELAY
8687
from lib.core.settings import NON_SQLI_CHECK_PREFIX_SUFFIX_LENGTH
8788
from lib.core.settings import PRECONNECT_INCOMPATIBLE_SERVERS
8889
from lib.core.settings import SINGLE_QUOTE_MARKER
@@ -1222,8 +1223,8 @@ def checkStability():
12221223

12231224
firstPage = kb.originalPage # set inside checkConnection()
12241225

1225-
delay = 1 - (time.time() - (kb.originalPageTime or 0))
1226-
delay = max(0, min(1, delay))
1226+
delay = MAX_STABILITY_DELAY - (time.time() - (kb.originalPageTime or 0))
1227+
delay = max(0, min(MAX_STABILITY_DELAY, delay))
12271228
time.sleep(delay)
12281229

12291230
secondPage, _, _ = Request.queryPage(content=True, noteResponseTime=False, raise404=False)

lib/core/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.6.15"
21+
VERSION = "1.3.6.16"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
@@ -648,6 +648,9 @@
648648
# Maximum total number of redirections (regardless of URL) - before assuming we're in a loop
649649
MAX_TOTAL_REDIRECTIONS = 10
650650

651+
# Maximum (deliberate) delay used in page stability check
652+
MAX_STABILITY_DELAY = 0.5
653+
651654
# Reference: http://www.tcpipguide.com/free/t_DNSLabelsNamesandSyntaxRules.htm
652655
MAX_DNS_LABEL = 63
653656

0 commit comments

Comments
 (0)