Skip to content

Commit a697e6c

Browse files
committed
All of a sudden PY2 _configparser doesn't support \tkey = value
1 parent 66a3118 commit a697e6c

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

lib/core/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def write(self, fp):
216216
fp.write("[%s]\n" % _configparser.DEFAULTSECT)
217217

218218
for (key, value) in self._defaults.items():
219-
fp.write("\t%s = %s" % (key, getUnicode(value, UNICODE_ENCODING)))
219+
fp.write("%s = %s" % (key, getUnicode(value, UNICODE_ENCODING)))
220220

221221
fp.write("\n")
222222

@@ -226,9 +226,9 @@ def write(self, fp):
226226
for (key, value) in self._sections[section].items():
227227
if key != "__name__":
228228
if value is None:
229-
fp.write("\t%s\n" % (key))
229+
fp.write("%s\n" % (key))
230230
elif not isListLike(value):
231-
fp.write("\t%s = %s\n" % (key, getUnicode(value, UNICODE_ENCODING)))
231+
fp.write("%s = %s\n" % (key, getUnicode(value, UNICODE_ENCODING)))
232232

233233
fp.write("\n")
234234

lib/core/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.5.1.21"
21+
VERSION = "1.5.1.22"
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)
@@ -813,6 +813,9 @@
813813
# Default REST-JSON API server listen port
814814
RESTAPI_DEFAULT_PORT = 8775
815815

816+
# Unsupported options by REST-JSON API server
817+
RESTAPI_UNSUPPORTED_OPTIONS = {"sqlShell", "wizard"}
818+
816819
# Use "Supplementary Private Use Area-A"
817820
INVALID_UNICODE_PRIVATE_AREA = False
818821

0 commit comments

Comments
 (0)