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

Skip to content

Commit 39108bc

Browse files
committed
Trivial refactoring of unused variables
1 parent f63ceaa commit 39108bc

5 files changed

Lines changed: 5 additions & 9 deletions

File tree

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.2.7.23"
22+
VERSION = "1.2.7.24"
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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,6 @@ def blindThread():
472472
currentCharIndex = threadData.shared.index[0]
473473

474474
if kb.threadContinue:
475-
start = time.time()
476475
val = getChar(currentCharIndex, asciiTbl, not(charsetType is None and conf.charset))
477476
if val is None:
478477
val = INFERENCE_UNKNOWN_CHAR
@@ -553,7 +552,6 @@ def blindThread():
553552

554553
while True:
555554
index += 1
556-
start = time.time()
557555

558556
# Common prediction feature (a.k.a. "good samaritan")
559557
# NOTE: to be used only when multi-threading is not set for

lib/techniques/error/use.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,6 @@ def errorThread():
402402
while kb.threadContinue:
403403
with kb.locks.limit:
404404
try:
405-
valueStart = time.time()
406405
threadData.shared.counter += 1
407406
num = threadData.shared.limits.next()
408407
except StopIteration:

lib/techniques/union/use.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ def unionThread():
312312
while kb.threadContinue:
313313
with kb.locks.limit:
314314
try:
315-
valueStart = time.time()
316315
threadData.shared.counter += 1
317316
num = threadData.shared.limits.next()
318317
except StopIteration:

txt/checksum.md5

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ c8c386d644d57c659d74542f5f57f632 lib/core/patch.py
4848
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4949
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
5050
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
51-
23138239bf2e6e9a5c2e383862a6fe59 lib/core/settings.py
51+
04a6fc212870f1d01eff7a60bbf24d64 lib/core/settings.py
5252
dd68a9d02fccb4fa1428b20e15b0db5d lib/core/shell.py
5353
a7edc9250d13af36ac0108f259859c19 lib/core/subprocessng.py
5454
12bed9603b6fba3e5ffda11d584bc449 lib/core/target.py
@@ -89,17 +89,17 @@ fb9e34d558293b5d6b9727f440712886 lib/takeover/registry.py
8989
48575dde7bb867b7937769f569a98309 lib/takeover/udf.py
9090
f6f835e4190a55e42d13c1e7ca3f728f lib/takeover/web.py
9191
debc36a3ff80ba915aeeee69b21a8ddc lib/takeover/xp_cmdshell.py
92-
09beb19c2ec9fdd14329f1c0b59a2d05 lib/techniques/blind/inference.py
92+
0e9d37cbeabd1bbbfe2c53f01bbb6a6e lib/techniques/blind/inference.py
9393
1e5532ede194ac9c083891c2f02bca93 lib/techniques/blind/__init__.py
9494
1e5532ede194ac9c083891c2f02bca93 lib/techniques/dns/__init__.py
9595
799faf9008527d2e9da9d923e50f685a lib/techniques/dns/test.py
9696
48a24f48da791e67309003fd5e8428cb lib/techniques/dns/use.py
9797
1e5532ede194ac9c083891c2f02bca93 lib/techniques/error/__init__.py
98-
350d39006cf94151738a95c8d92caa28 lib/techniques/error/use.py
98+
6007347548e85383705eaa4b863448a2 lib/techniques/error/use.py
9999
1e5532ede194ac9c083891c2f02bca93 lib/techniques/__init__.py
100100
1e5532ede194ac9c083891c2f02bca93 lib/techniques/union/__init__.py
101101
94d7a22bb6725a91e84ba2cd9973e96d lib/techniques/union/test.py
102-
bfa5bcc4058eeb05c07f6e50f91952b6 lib/techniques/union/use.py
102+
7361338240ecd9d01d1d10ec76bce069 lib/techniques/union/use.py
103103
77ff35587af9e3dfde63b8327e230f9a lib/utils/api.py
104104
37dfb641358669f62c2acedff241348b lib/utils/brute.py
105105
31b1e7eb489eac837db6a2bc1dcb7da7 lib/utils/crawler.py

0 commit comments

Comments
 (0)