Skip to content

Commit 86ce1c5

Browse files
committed
Minor DREI patches
1 parent 85365d7 commit 86ce1c5

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

lib/core/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,8 @@ def walk(head, current=None):
725725
if value and not value.isdigit():
726726
for encoding in ("hex", "base64"):
727727
try:
728-
decoded = value.decode(encoding)
729-
if len(decoded) > MIN_ENCODED_LEN_CHECK and all(_ in string.printable for _ in decoded):
728+
decoded = codecs.decode(value, encoding)
729+
if len(decoded) > MIN_ENCODED_LEN_CHECK and all(_ in getBytes(string.printable) for _ in decoded):
730730
warnMsg = "provided parameter '%s' " % parameter
731731
warnMsg += "appears to be '%s' encoded" % encoding
732732
logger.warn(warnMsg)

lib/core/settings.py

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

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

lib/request/dns.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from __future__ import print_function
99

10+
import codecs
1011
import os
1112
import re
1213
import socket
@@ -78,7 +79,7 @@ def _check_localhost(self):
7879
try:
7980
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
8081
s.connect(("", 53))
81-
s.send("6509012000010000000000010377777706676f6f676c6503636f6d00000100010000291000000000000000".decode("hex")) # A www.google.com
82+
s.send(codecs.decode("6509012000010000000000010377777706676f6f676c6503636f6d00000100010000291000000000000000", "hex")) # A www.google.com
8283
response = s.recv(512)
8384
except:
8485
pass

0 commit comments

Comments
 (0)