I use -m switch in sqlmap to read targets from file and test all of them for sql injection.
sqlmap -m requests-file.txt --batch
There isn't problem with 'GET' requests and query string parameters. But in this way, I can't test requests with 'POST' method that have parameters in post body for each request.
Is it possible add data of each request in file for using with -m switch?
Is there any solution for test multiple 'POST' requests using sqlmap?
The
-mswitch is specifically designed to read a file containing URLs or request data and test them for SQL injection vulnerabilities. However, it does not support embedding custom request data for each individual request within the file, But If you need to test multiple POST requests with different parameters in the post body using SQLMap, you have a few potential options: