Skip to content

Commit a20da7a

Browse files
committed
Patch for automatic reporting (GitHub has robots)
1 parent fa303ef commit a20da7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2978,7 +2978,7 @@ def createGithubIssue(errMsg, excMsg):
29782978

29792979

29802980
data = {"title": "Unhandled exception (#%s)" % key, "body": "```%s\n```\n```\n%s```" % (errMsg, excMsg)}
2981-
req = urllib2.Request(url="https://api.github.com/repos/sqlmapproject/sqlmap/issues", data=json.dumps(data), headers={"Authorization": "token %s" % GITHUB_REPORT_OAUTH_TOKEN})
2981+
req = urllib2.Request(url="https://api.github.com/repos/sqlmapproject/sqlmap/issues", data=json.dumps(data), headers={"Authorization": "token %s" % GITHUB_REPORT_OAUTH_TOKEN.decode("base64")})
29822982

29832983
try:
29842984
f = urllib2.urlopen(req)

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@
484484
FORCE_COOKIE_EXPIRATION_TIME = "9999999999"
485485

486486
# Github OAuth token used for creating an automatic Issue for unhandled exceptions
487-
GITHUB_REPORT_OAUTH_TOKEN = "6c16fa87190a100aceea8e71cb0c1ba8e4096c7a"
487+
GITHUB_REPORT_OAUTH_TOKEN = "YzQzM2M2YzgzMDExN2I5ZDMyYjAzNTIzODIwZDA2MDFmMmVjODI1Ng=="
488488

489489
# Skip unforced HashDB flush requests below the threshold number of cached items
490490
HASHDB_FLUSH_THRESHOLD = 32

0 commit comments

Comments
 (0)