From f2cb4627f27f29e7cf4a97bd6cfda0d250f23fb0 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 6 May 2019 01:08:42 +0200 Subject: [PATCH] Minor patch --- lib/core/common.py | 4 ++-- lib/core/settings.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/common.py b/lib/core/common.py index f286fbe0a..a487a1cf7 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -3516,7 +3516,7 @@ def createGithubIssue(errMsg, excMsg): _ = re.sub(r"(Unicode[^:]*Error:).+", r"\g<1>", _) _ = re.sub(r"= _", "= ", _) - key = hashlib.md5(_).hexdigest()[:8] + key = hashlib.md5(getBytes(_)).hexdigest()[:8] if key in issues: return @@ -3551,7 +3551,7 @@ def createGithubIssue(errMsg, excMsg): pass data = {"title": "Unhandled exception (#%s)" % key, "body": "```%s\n```\n```\n%s```" % (errMsg, excMsg)} - req = _urllib.request.Request(url="https://api.github.com/repos/sqlmapproject/sqlmap/issues", data=json.dumps(data), headers={"Authorization": "token %s" % decodeBase64(GITHUB_REPORT_OAUTH_TOKEN, binary=False)}) + req = _urllib.request.Request(url="https://api.github.com/repos/sqlmapproject/sqlmap/issues", data=getBytes(json.dumps(data)), headers={"Authorization": "token %s" % decodeBase64(GITHUB_REPORT_OAUTH_TOKEN, binary=False)}) try: content = _urllib.request.urlopen(req).read() diff --git a/lib/core/settings.py b/lib/core/settings.py index efb5f2ad6..1f6d47f4a 100644 --- a/lib/core/settings.py +++ b/lib/core/settings.py @@ -18,7 +18,7 @@ from lib.core.enums import OS from thirdparty import six # sqlmap version (...) -VERSION = "1.3.5.22" +VERSION = "1.3.5.23" TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable" TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34} VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)