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

Skip to content

Commit 0a8bc52

Browse files
committed
Minor updates
1 parent 31fa7f6 commit 0a8bc52

5 files changed

Lines changed: 12 additions & 13 deletions

File tree

lib/core/option.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ def _setSocketPreConnect():
10461046
if conf.disablePrecon:
10471047
return
10481048

1049-
def _():
1049+
def _thread():
10501050
while kb.get("threadContinue") and not conf.get("disablePrecon"):
10511051
try:
10521052
for key in socket._ready:
@@ -1078,6 +1078,7 @@ def connect(self, address):
10781078
break
10791079
else:
10801080
try:
1081+
candidate.shutdown(socket.SHUT_RDWR)
10811082
candidate.close()
10821083
except socket.error:
10831084
pass
@@ -1090,7 +1091,7 @@ def connect(self, address):
10901091
socket.socket._connect = socket.socket.connect
10911092
socket.socket.connect = connect
10921093

1093-
thread = threading.Thread(target=_)
1094+
thread = threading.Thread(target=_thread)
10941095
setDaemon(thread)
10951096
thread.start()
10961097

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.1.21"
22+
VERSION = "1.2.1.22"
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/utils/api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
from lib.core.settings import RESTAPI_DEFAULT_PORT
4646
from lib.core.subprocessng import Popen
4747
from lib.parse.cmdline import cmdLineParser
48-
from thirdparty.bottle.bottle import abort
4948
from thirdparty.bottle.bottle import error as return_error
5049
from thirdparty.bottle.bottle import get
5150
from thirdparty.bottle.bottle import hook

plugins/dbms/mysql/filesystem.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,13 @@ def stackedReadFile(self, rFile):
6868
raise SqlmapNoneDataException(warnMsg)
6969
else:
7070
length = int(length)
71-
sustrLen = 1024
71+
chunkSize = 1024
7272

73-
if length > sustrLen:
73+
if length > chunkSize:
7474
result = []
7575

76-
for i in xrange(1, length, sustrLen):
77-
chunk = inject.getValue("SELECT MID(%s, %d, %d) FROM %s" % (self.tblField, i, sustrLen, self.fileTblName), unpack=False, resumeValue=False, charsetType=CHARSET_TYPE.HEXADECIMAL)
78-
76+
for i in xrange(1, length, chunkSize):
77+
chunk = inject.getValue("SELECT MID(%s, %d, %d) FROM %s" % (self.tblField, i, chunkSize, self.fileTblName), unpack=False, resumeValue=False, charsetType=CHARSET_TYPE.HEXADECIMAL)
7978
result.append(chunk)
8079
else:
8180
result = inject.getValue("SELECT %s FROM %s" % (self.tblField, self.fileTblName), resumeValue=False, charsetType=CHARSET_TYPE.HEXADECIMAL)

txt/checksum.md5

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ cada93357a7321655927fc9625b3bfec lib/core/exception.py
4040
1e5532ede194ac9c083891c2f02bca93 lib/core/__init__.py
4141
458a194764805cd8312c14ecd4be4d1e lib/core/log.py
4242
9eed2d4d370f375bda5e0c0488740e7f lib/core/optiondict.py
43-
ac01954e9881b5ba6e41b85e6c08bd9a lib/core/option.py
43+
598863f3b058650c17f465b16892dc67 lib/core/option.py
4444
7dadbb9a301d40cc8cd9c7491e99b43d lib/core/profiling.py
4545
ffa5f01f39b17c8d73423acca6cfe86a lib/core/readlineng.py
4646
0c3eef46bdbf87e29a3f95f90240d192 lib/core/replication.py
4747
a7db43859b61569b601b97f187dd31c5 lib/core/revision.py
4848
fcb74fcc9577523524659ec49e2e964b lib/core/session.py
49-
4f27b5c4801cad5c6b8361f953a4f313 lib/core/settings.py
49+
7fc35bef60750c8ba2475c154d7d481c lib/core/settings.py
5050
d0adc28a38e43a787df4471f7f027413 lib/core/shell.py
5151
63491be462c515a1a3880c27c2acc4a2 lib/core/subprocessng.py
5252
505aaa61e1bba3c3d4567c3e667699e3 lib/core/target.py
@@ -98,7 +98,7 @@ f6844893afa7569052529e1c8d89bc35 lib/techniques/blind/inference.py
9898
1e5532ede194ac9c083891c2f02bca93 lib/techniques/union/__init__.py
9999
c497003ecf231d03a311a816a6b3b753 lib/techniques/union/test.py
100100
6c3c4c7d43ad75e61a73184323a81eac lib/techniques/union/use.py
101-
918d6f34c415c578c2eae8730f555ae8 lib/utils/api.py
101+
e4146464cf968d4015a52cb8c10e3da5 lib/utils/api.py
102102
37dfb641358669f62c2acedff241348b lib/utils/brute.py
103103
8f2f246d17f5891a2e584533bd18e65c lib/utils/crawler.py
104104
985c737cd8a6a722160c55cf5ee224f4 lib/utils/deps.py
@@ -168,7 +168,7 @@ affef90b1442285da7e89e46603c502e plugins/dbms/mssqlserver/__init__.py
168168
b9e62a80bd3ead133a511f9769e5e6c3 plugins/dbms/mssqlserver/takeover.py
169169
f6e1f3f09f32b9cb2ca11c016d373423 plugins/dbms/mysql/connector.py
170170
445164daf59b890aeacc968af58fcb53 plugins/dbms/mysql/enumeration.py
171-
d6836e2a6a308eb3536e2e7fc74fdc8b plugins/dbms/mysql/filesystem.py
171+
f36e09edc3eafedd989fbe44ec048e71 plugins/dbms/mysql/filesystem.py
172172
2bfd2369aebe2999f7333cca0895507c plugins/dbms/mysql/fingerprint.py
173173
88b876f085fec2569a0697f4b69f41da plugins/dbms/mysql/__init__.py
174174
0e2adbee217f5b94dcc124d24b8dde99 plugins/dbms/mysql/syntax.py

0 commit comments

Comments
 (0)