How to specify the injection method in sqlmap?
You can specify the injection method by using the –technique parameter when using sqlmap. This parameter can accept values for the following injection methods:
- B: Boolean injection
- E: Injection of errors
- Injection based on union queries.
- T: Injection based on time delay
- S: Injection based on stack queries
- A: Injection based on second-order queries
- X: Blind SQL Injection (No Error-Based)
- File-based injection
- DNS-based injection
- HTTP header injection
- Injection based on overlapping queries
- C: Injection based on credit card number
Here is an example of specifying the injection method using the –technique parameter:
sqlmap -u "http://example.com/page.php?id=1" --technique=B
In the example above, –technique=B specifies the use of boolean-based injection.