Skip to content

Commit 74b5ffd

Browse files
committed
Minor patch
1 parent 7e56505 commit 74b5ffd

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

data/txt/sha256sums.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ c03dc585f89642cfd81b087ac2723e3e1bb3bfa8c60e6f5fe58ef3b0113ebfe6 lib/core/data.
175175
70fb2528e580b22564899595b0dff6b1bc257c6a99d2022ce3996a3d04e68e4e lib/core/decorators.py
176176
147823c37596bd6a56d677697781f34b8d1d1671d5a2518fbc9468d623c6d07d lib/core/defaults.py
177177
2f44a1bfe6f18aafe64147b99e69aa93cf438c0e7befe59f4e2aee9065c8b7b6 lib/core/dicts.py
178-
3e00b5c4ca385886f57608f7e0695bb70c696ef3454c181bbdfeea746efba96a lib/core/dump.py
178+
8aee07fba24082ee6355a29d01842bc3657194148a7f9062079b5f0a85ec53e3 lib/core/dump.py
179179
23e33f0b457e2a7114c9171ba9b42e1751b71ee3f384bba7fad39e4490adb803 lib/core/enums.py
180180
5387168e5dfedd94ae22af7bb255f27d6baaca50b24179c6b98f4f325f5cc7b4 lib/core/exception.py
181181
1966ca704961fb987ab757f0a4afddbf841d1a880631b701487c75cef63d60c3 lib/core/__init__.py
@@ -188,7 +188,7 @@ c03dc585f89642cfd81b087ac2723e3e1bb3bfa8c60e6f5fe58ef3b0113ebfe6 lib/core/data.
188188
48797d6c34dd9bb8a53f7f3794c85f4288d82a9a1d6be7fcf317d388cb20d4b3 lib/core/replication.py
189189
0b8c38a01bb01f843d94a6c5f2075ee47520d0c4aa799cecea9c3e2c5a4a23a6 lib/core/revision.py
190190
888daba83fd4a34e9503fe21f01fef4cc730e5cde871b1d40e15d4cbc847d56c lib/core/session.py
191-
5d15610b4650b92c62493cb00797ab4eec5c243f045154a7b020108f733130bb lib/core/settings.py
191+
74df13374f7058ba09ce9e7c5cec9e79f8a59a4a6f73d79ba4a6fa972a75961f lib/core/settings.py
192192
cd5a66deee8963ba8e7e9af3dd36eb5e8127d4d68698811c29e789655f507f82 lib/core/shell.py
193193
bcb5d8090d5e3e0ef2a586ba09ba80eef0c6d51feb0f611ed25299fbb254f725 lib/core/subprocessng.py
194194
70ea3768f1b3062b22d20644df41c86238157ec80dd43da40545c620714273c6 lib/core/target.py
@@ -227,7 +227,7 @@ d3c93562d78ebdaf9e22c0ea2e4a62adb12f0ce9e9d9631c1ea000b1a07d04ab lib/takeover/i
227227
1966ca704961fb987ab757f0a4afddbf841d1a880631b701487c75cef63d60c3 lib/takeover/__init__.py
228228
12e729e4828b7e1456ca41dae60cb4d7eca130a8b4c4885dd0f5501dcbda7fe4 lib/takeover/metasploit.py
229229
f522436fbd14bdab090a1d305fcac0361800cb8e36c8cbcb47933298376a71e0 lib/takeover/registry.py
230-
f6e5d6e2ff368fa39943b2302982f33c47eb9a12d01419bef50fcf934b2bce34 lib/takeover/udf.py
230+
0787f78e6bd9bb21d4267c95c4c99806711bb57c5518485c2e25f10fcf9c41fc lib/takeover/udf.py
231231
23d73af417604dab460b74cdc230896153f018a6c00d144019491053640a172f lib/takeover/web.py
232232
8cc1e226d4150fe8aa1a056e5d32d858ed6444d3d4e2af7fb4bc08f0bbe9d527 lib/takeover/xp_cmdshell.py
233233
3609556c6c72010ce4cae5ffeeb74437a15a9dc218f77e079655f32e704fdeef lib/techniques/blind/inference.py

lib/core/dump.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ def dbTableColumns(self, tableColumns, content_type=None):
299299
colType = columns[column]
300300

301301
column = unsafeSQLIdentificatorNaming(column)
302-
maxlength1 = max(maxlength1, len(column or ""))
303-
maxlength2 = max(maxlength2, len(colType or ""))
302+
maxlength1 = max(maxlength1, getConsoleLength(column or ""))
303+
maxlength2 = max(maxlength2, getConsoleLength(colType or ""))
304304

305305
maxlength1 = max(maxlength1, len("COLUMN"))
306306
lines1 = "-" * (maxlength1 + 2)
@@ -337,10 +337,10 @@ def dbTableColumns(self, tableColumns, content_type=None):
337337
colType = columns[column]
338338

339339
column = unsafeSQLIdentificatorNaming(column)
340-
blank1 = " " * (maxlength1 - len(column))
340+
blank1 = " " * (maxlength1 - getConsoleLength(column))
341341

342342
if colType is not None:
343-
blank2 = " " * (maxlength2 - len(colType))
343+
blank2 = " " * (maxlength2 - getConsoleLength(colType))
344344
self._write("| %s%s | %s%s |" % (column, blank1, colType, blank2))
345345
else:
346346
self._write("| %s%s |" % (column, blank1))

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty import six
2121

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

lib/takeover/udf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ def udfInjectCustom(self):
231231
errMsg += "but the database underlying operating system is Linux"
232232
raise SqlmapMissingMandatoryOptionException(errMsg)
233233

234-
self.udfSharedLibName = os.path.basename(self.udfLocalFile).split(".")[0]
235-
self.udfSharedLibExt = os.path.basename(self.udfLocalFile).split(".")[1]
234+
self.udfSharedLibName = os.path.splitext(os.path.basename(self.udfLocalFile))[0]
235+
self.udfSharedLibExt = os.path.splitext(self.udfLocalFile)[1][1:]
236236

237237
msg = "how many user-defined functions do you want to create "
238238
msg += "from the shared library? "

0 commit comments

Comments
 (0)