Skip to content

Commit 323af98

Browse files
committed
Fixes #5358 (related to #5050)
1 parent 80dc67f commit 323af98

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/core/common.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5327,6 +5327,7 @@ def _parseBurpLog(content):
53275327
continue
53285328

53295329
getPostReq = False
5330+
forceBody = False
53305331
url = None
53315332
host = None
53325333
method = None
@@ -5347,7 +5348,7 @@ def _parseBurpLog(content):
53475348
line = line.strip('\r')
53485349
match = re.search(r"\A([A-Z]+) (.+) HTTP/[\d.]+\Z", line) if not method else None
53495350

5350-
if len(line.strip()) == 0 and method and method != HTTPMETHOD.GET and data is None:
5351+
if len(line.strip()) == 0 and method and (method != HTTPMETHOD.GET or forceBody) and data is None:
53515352
data = ""
53525353
params = True
53535354

@@ -5394,7 +5395,7 @@ def _parseBurpLog(content):
53945395
# headers and consider the following lines as
53955396
# POSTed data
53965397
if key.upper() == HTTP_HEADER.CONTENT_LENGTH.upper():
5397-
data = ""
5398+
forceBody = True
53985399
params = True
53995400

54005401
# Avoid proxy and connection type related headers

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

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

0 commit comments

Comments
 (0)