Skip to content

Commit de427ca

Browse files
committed
remove trailing newlines and carriage return from parsed burp file
1 parent 9a79222 commit de427ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎nosqlmap.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -473,9 +473,11 @@ def options():
473473
header = line.split(": ");
474474
requestHeaders[header[0]] = header[1].strip()
475475

476-
victim = reqData[1].split( " ")[1].replace("\r\n","")
476+
victim = reqData[1].split( " ")[1].replace("\r","")
477+
victim = victim.replace("\n","")
477478
optionSet[0] = True
478-
uri = methodPath[1].replace("\r\n","")
479+
uri = methodPath[1].replace("\r","")
480+
uri = uri.replace("\n","")
479481
optionSet[2] = True
480482

481483
elif select == "b":

0 commit comments

Comments
 (0)