Skip to content

Commit 8735a49

Browse files
committed
Some more refactoring
1 parent b9e2e8b commit 8735a49

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.1.11.34"
22+
VERSION = "1.1.11.35"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/techniques/blind/inference.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def blindThread():
469469
currentCharIndex = threadData.shared.index[0]
470470

471471
if kb.threadContinue:
472-
charStart = time.time()
472+
start = time.time()
473473
val = getChar(currentCharIndex, asciiTbl, not(charsetType is None and conf.charset))
474474
if val is None:
475475
val = INFERENCE_UNKNOWN_CHAR
@@ -482,7 +482,7 @@ def blindThread():
482482

483483
if kb.threadContinue:
484484
if showEta:
485-
progress.progress(time.time() - charStart, threadData.shared.index[0])
485+
progress.progress(calculateDeltaSeconds(start), threadData.shared.index[0])
486486
elif conf.verbose >= 1:
487487
startCharIndex = 0
488488
endCharIndex = 0
@@ -550,7 +550,7 @@ def blindThread():
550550

551551
while True:
552552
index += 1
553-
charStart = time.time()
553+
start = time.time()
554554

555555
# Common prediction feature (a.k.a. "good samaritan")
556556
# NOTE: to be used only when multi-threading is not set for
@@ -575,7 +575,7 @@ def blindThread():
575575
# Did we have luck?
576576
if result:
577577
if showEta:
578-
progress.progress(time.time() - charStart, len(commonValue))
578+
progress.progress(calculateDeltaSeconds(start), len(commonValue))
579579
elif conf.verbose in (1, 2) or conf.api:
580580
dataToStdout(filterControlChars(commonValue[index - 1:]))
581581

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ e1c000db9be27f973569b1a430629037 lib/core/option.py
4646
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
4747
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
4848
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49-
34bc58ea008c92da42e79a18fce3ec9c lib/core/settings.py
49+
a8384d71c6ec22df3c2fc67bf660aee8 lib/core/settings.py
5050
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
5151
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
5252
d5a04d672a18f78deb2839c3745ff83c lib/core/target.py
@@ -87,7 +87,7 @@ ac3f47b2f8d2cd530512405b4a23a9db lib/takeover/metasploit.py
8787
21b6eff33f5d28c5e167a948976817cb lib/takeover/udf.py
8888
e49d1213f9ae0c0f922c5aef4febe205 lib/takeover/web.py
8989
d3080bf68b4b85ed2c98af5de74e8b73 lib/takeover/xp_cmdshell.py
90-
ed995f2c65aab9f222005493b590eb2d lib/techniques/blind/inference.py
90+
ca47f20b11f58ce60a0ddfcfca242d3f lib/techniques/blind/inference.py
9191
5fb9aaf874daa47ea2b672a22740e56b lib/techniques/blind/__init__.py
9292
5fb9aaf874daa47ea2b672a22740e56b lib/techniques/dns/__init__.py
9393
95331b2826f28db9ff962670391aa7d6 lib/techniques/dns/test.py

0 commit comments

Comments
 (0)