Skip to content

Commit dc30e60

Browse files
committed
Minor patches
1 parent 4af6dad commit dc30e60

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

data/txt/sha256sums.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ ccec2373f6393f3d644db3de2910e17ef705817063c03e7ca4417f9d7f622527 lib/controller
170170
1da4ec9cd9b67c8b54e4a3d314f8237d58778d8f3a00bc26a1e0540294dca30f lib/core/bigarray.py
171171
ed02b196398b8351ed6989c8fd8ec2a8244f2f9da6ca7b08691219dcc63422d8 lib/core/common.py
172172
a6397b10de7ae7c56ed6b0fa3b3c58eb7a9dbede61bf93d786e73258175c981e lib/core/compat.py
173-
d6e80cecc32601e903aaf5faeb6fd2fe4c6b64a206d7eabb353b7a36e9f2bc46 lib/core/convert.py
173+
a9997e97ebe88e0bf7efcf21e878bc5f62c72348e5aba18f64d6861390a4dcf2 lib/core/convert.py
174174
c03dc585f89642cfd81b087ac2723e3e1bb3bfa8c60e6f5fe58ef3b0113ebfe6 lib/core/data.py
175175
421509c42dab738d908f2453cbdd6eb75eb672a7b6de68bee8c95d867fac79f1 lib/core/datatype.py
176176
90070160f9e8f166f9ea69975436fb358eaced6fec8a5947953b2cf050c51434 lib/core/decorators.py
@@ -189,9 +189,9 @@ fb0a08ac6f8bb07711e4e895eebf9fb3c8d452cc7aaebcdf78d926cdf051550d lib/core/patch
189189
48797d6c34dd9bb8a53f7f3794c85f4288d82a9a1d6be7fcf317d388cb20d4b3 lib/core/replication.py
190190
3574639db4942d16a2dc0a2f04bb7c0913c40c3862b54d34c44075a760e0c194 lib/core/revision.py
191191
888daba83fd4a34e9503fe21f01fef4cc730e5cde871b1d40e15d4cbc847d56c lib/core/session.py
192-
3bad4ec834864c020ac647a034743c7d7d5205ab723fd2e24e5510f3c6c28c24 lib/core/settings.py
192+
f8adb87df2456bf8b5807ef4a5940fe349b60e790b870fd9778b26d229162a0c lib/core/settings.py
193193
cd5a66deee8963ba8e7e9af3dd36eb5e8127d4d68698811c29e789655f507f82 lib/core/shell.py
194-
00dc9e87db2c13d7eaf18edd503267430460d91baf76760350be545d4a387a9f lib/core/subprocessng.py
194+
bcb5d8090d5e3e0ef2a586ba09ba80eef0c6d51feb0f611ed25299fbb254f725 lib/core/subprocessng.py
195195
d35650179816193164a5f177102f18379dfbe6bb6d40fbb67b78d907b41c8038 lib/core/target.py
196196
85b7d6a724536bfcadd317972d4baec291e3813d6773921ee31755046a950a9a lib/core/testing.py
197197
cf4dca323645d623109a82277a8e8a63eb9abb3fff6c8a57095eb171c1ef91b3 lib/core/threads.py

lib/core/convert.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,11 @@ def getBytes(value, encoding=None, errors="strict", unsafe=True):
295295
except (LookupError, TypeError):
296296
encoding = UNICODE_ENCODING
297297

298-
if isinstance(value, six.text_type):
298+
if isinstance(value, bytearray):
299+
return bytes(value)
300+
elif isinstance(value, memoryview):
301+
return value.tobytes()
302+
elif isinstance(value, six.text_type):
299303
if INVALID_UNICODE_PRIVATE_AREA:
300304
if unsafe:
301305
for char in xrange(0xF0000, 0xF00FF + 1):

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.10.1.9"
22+
VERSION = "1.10.1.10"
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/core/subprocessng.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def recv(self, maxsize=None):
7575
def recv_err(self, maxsize=None):
7676
return self._recv('stderr', maxsize)
7777

78-
def send_recv(self, input='', maxsize=None):
78+
def send_recv(self, input=b'', maxsize=None):
7979
return self.send(input), self.recv(maxsize), self.recv_err(maxsize)
8080

8181
def get_conn_maxsize(self, which, maxsize):
@@ -97,7 +97,7 @@ def send(self, input):
9797
try:
9898
x = msvcrt.get_osfhandle(self.stdin.fileno())
9999
(_, written) = WriteFile(x, input)
100-
except ValueError:
100+
except (ValueError, NameError):
101101
return self._close('stdin')
102102
except Exception as ex:
103103
if getattr(ex, "args", None) and ex.args[0] in (109, errno.ESHUTDOWN):
@@ -187,7 +187,7 @@ def recv_some(p, t=.1, e=1, tr=5, stderr=0):
187187
y.append(r)
188188
else:
189189
time.sleep(max((x - time.time()) / tr, 0))
190-
return b''.join(y)
190+
return b''.join(getBytes(i) for i in y)
191191

192192
def send_all(p, data):
193193
if not data:

0 commit comments

Comments
 (0)