File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 2020from 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 "
2424TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2525TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2626VERSION_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