Skip to content

Commit 673a7a5

Browse files
committed
Minor patches
1 parent e4960ce commit 673a7a5

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

data/txt/sha256sums.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ eed1db5da17eca4c65a8f999166e2246eef84397687ae820bbe4984ef65a09df extra/vulnserv
166166
4608f21a4333c162ab3c266c903fda4793cc5834de30d06affe9b7566dd09811 lib/controller/__init__.py
167167
216c9399853b7454d36dcb552baf9f1169ec7942897ddc46504684325cb6ce00 lib/core/agent.py
168168
fbba89420acafcdb9ba1a95428cf2161b13cfa2d1a7ad7d5e70c14b0e04861f0 lib/core/bigarray.py
169-
e56ab9dafa97b1bff42a04bf50ec558ecbe0703cbdcc59d22ced05f82955024d lib/core/common.py
169+
b7004d6b58ad638ac680d098aa96c07d0b403fb54f1938585fba3d61a262ff37 lib/core/common.py
170170
11c748cc96ea2bc507bc6c1930a17fe4bc6fdd2dd2a80430df971cb21428eb00 lib/core/compat.py
171-
2a65fe3ebf642f29a1e44b50c56f212430e323c1523b587ca7d6a76b8b5e5f3f lib/core/convert.py
171+
34bcabad7602d6a5b79a517af8a71cc2bf21e34dfe695f9f8b9c41583a37aaef lib/core/convert.py
172172
ae500647c4074681749735a4f3b17b7eca44868dd3f39f9cab0a575888ba04a1 lib/core/data.py
173173
ffae7cfe9f9afb92e887b9a8dbc1630d0063e865f35984ae417b04a4513e5024 lib/core/datatype.py
174174
38d30ecb10783f0ff58a255c801db8324ef2ac23516c7600a9e177b459d99750 lib/core/decorators.py
@@ -188,7 +188,7 @@ c4bfb493a03caf84dd362aec7c248097841de804b7413d0e1ecb8a90c8550bc0 lib/core/readl
188188
d1bd70c1a55858495c727fbec91e30af267459c8f64d50fabf9e4ee2c007e920 lib/core/replication.py
189189
1d0f80b0193ac5204527bfab4bde1a7aee0f693fd008e86b4b29f606d1ef94f3 lib/core/revision.py
190190
d2eb8e4b05ac93551272b3d4abfaf5b9f2d3ac92499a7704c16ed0b4f200db38 lib/core/session.py
191-
67c7c913fe2792bd303794a9537a50c538ab40bbcbe4be585ae176882891ffee lib/core/settings.py
191+
a3da2c5bdbed5f80159db0bf6324f2c818aaa4a0a18f703ca3d7b9f7aef95891 lib/core/settings.py
192192
1c5eab9494eb969bc9ce118a2ea6954690c6851cbe54c18373c723b99734bf09 lib/core/shell.py
193193
4eea6dcf023e41e3c64b210cb5c2efc7ca893b727f5e49d9c924f076bb224053 lib/core/subprocessng.py
194194
cdd352e1331c6b535e780f6edea79465cb55af53aa2114dcea0e8bf382e56d1a lib/core/target.py

lib/core/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3339,14 +3339,14 @@ def filterNone(values):
33393339
"""
33403340
Emulates filterNone([...]) functionality
33413341
3342-
>>> filterNone([1, 2, "", None, 3])
3343-
[1, 2, 3]
3342+
>>> filterNone([1, 2, "", None, 3, 0])
3343+
[1, 2, 3, 0]
33443344
"""
33453345

33463346
retVal = values
33473347

33483348
if isinstance(values, _collections.Iterable):
3349-
retVal = [_ for _ in values if _]
3349+
retVal = [_ for _ in values if _ or _ == 0]
33503350

33513351
return retVal
33523352

lib/core/convert.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def base64pickle(value):
5858
try:
5959
retVal = encodeBase64(pickle.dumps(value), binary=False)
6060
except:
61-
retVal = encodeBase64(pickle.dumps(str(value), PICKLE_PROTOCOL), binary=False)
61+
raise
6262

6363
return retVal
6464

@@ -146,13 +146,19 @@ def rot13(data):
146146
'sbbone jnf urer!!'
147147
>>> rot13('sbbone jnf urer!!')
148148
'foobar was here!!'
149+
>>> rot13(b'foobar was here!!')
150+
'sbbone jnf urer!!'
149151
"""
150152

151-
# Reference: https://stackoverflow.com/a/62662878
152153
retVal = ""
153154
alphabit = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"
155+
156+
if isinstance(data, six.binary_type):
157+
data = getText(data)
158+
154159
for char in data:
155160
retVal += alphabit[alphabit.index(char) + 13] if char in alphabit else char
161+
156162
return retVal
157163

158164
def decodeHex(value, binary=True):

lib/core/settings.py

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

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.9.12.22"
22+
VERSION = "1.9.12.23"
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)

0 commit comments

Comments
 (0)