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

Skip to content

Commit 1af6898

Browse files
committed
Fixed POST parsing when -l option is provided (burp/webscarab log file)
1 parent 69259c5 commit 1af6898

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/core/option.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,12 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
134134

135135
getPostReq = True
136136

137+
# GET parameters
137138
elif "?" in line and "=" in line and ": " not in line:
138139
data = line
139140
params = True
140141

142+
# Cookie and Host headers
141143
elif ": " in line:
142144
key, value = line.split(": ", 1)
143145

@@ -146,6 +148,11 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
146148
elif key.lower() == "host":
147149
host = value
148150

151+
# POST parameters
152+
elif method is not None and method == "POST" and "=" in line:
153+
data = line
154+
params = True
155+
149156
if getPostReq and params:
150157
if not url.startswith("http"):
151158
url = "http://%s%s" % (host, url)

0 commit comments

Comments
 (0)