Attacks and Exploits
A tester saved a raw HTTP request from Burp Suite to req.txt and wants sqlmap to test it for SQL injection. Which option loads the file?
Show the answer
Correct answerB. -r req.txt
AWhy not this: The --cookie option sets the Cookie header value only, not the whole request.
BWhy this is right: The -r option loads a saved raw HTTP request, with its headers and body, from a file.
CWhy not this: The -u option takes a target URL, so a file name would be treated as an invalid address.
DWhy not this: The --data option supplies POST body parameters as a string, not a file of the full request.
The -r option makes sqlmap read a full raw HTTP request from a file, including its method, headers and body. The -u option expects a target URL, not a file path.