File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -5327,6 +5327,7 @@ def _parseBurpLog(content):
5327
5327
continue
5328
5328
5329
5329
getPostReq = False
5330
+ forceBody = False
5330
5331
url = None
5331
5332
host = None
5332
5333
method = None
@@ -5347,7 +5348,7 @@ def _parseBurpLog(content):
5347
5348
line = line .strip ('\r ' )
5348
5349
match = re .search (r"\A([A-Z]+) (.+) HTTP/[\d.]+\Z" , line ) if not method else None
5349
5350
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 :
5351
5352
data = ""
5352
5353
params = True
5353
5354
@@ -5394,7 +5395,7 @@ def _parseBurpLog(content):
5394
5395
# headers and consider the following lines as
5395
5396
# POSTed data
5396
5397
if key .upper () == HTTP_HEADER .CONTENT_LENGTH .upper ():
5397
- data = ""
5398
+ forceBody = True
5398
5399
params = True
5399
5400
5400
5401
# Avoid proxy and connection type related headers
Original file line number Diff line number Diff line change 20
20
from thirdparty .six import unichr as _unichr
21
21
22
22
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23
- VERSION = "1.7.2.22 "
23
+ VERSION = "1.7.3.0 "
24
24
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
25
25
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
26
26
VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
You can’t perform that action at this time.
0 commit comments