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:

  1. B: Boolean injection
  2. E: Injection of errors
  3. Injection based on union queries.
  4. T: Injection based on time delay
  5. S: Injection based on stack queries
  6. A: Injection based on second-order queries
  7. X: Blind SQL Injection (No Error-Based)
  8. File-based injection
  9. DNS-based injection
  10. HTTP header injection
  11. Injection based on overlapping queries
  12. 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.

bannerAds