Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6dc3762

Browse files
committed
Minor patch for TRAFFIC messages
1 parent 7c7ecc7 commit 6dc3762

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from lib.core.enums import OS
1818

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

lib/request/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ class _(dict):
608608
page = getUnicode(page)
609609

610610
code = ex.code
611-
status = getSafeExString(ex)
611+
status = getattr(ex, "reason", None) or getSafeExString(ex).split(": ")[-1]
612612

613613
kb.originalCode = kb.originalCode or code
614614
threadData.lastHTTPError = (threadData.lastRequestUID, code, status)

0 commit comments

Comments
 (0)