Sqlmap injection basic commands

1.//Check whether the current URL has SQL injection vulnerability
sqlmap.py -u "url"

2.//Check the currently used database
sqlmap.py -u "url" --current-db

3.//View all databases
sqlmap.py -u "url" --dbs

4.//Query all tables in the xxx database
sqlmap.py -u url -D library name --tables

5. Query all fields of the xxx table in the xxx database
sqlmap.py -u "url" -D library name -T table name --columns

6. Query the data of the xxx field under the xxx table in the xxx database
sqlmap.py -u "url" -D library name -T table name -C field name --dump

Guess you like

Origin blog.csdn.net/Daoke37/article/details/114916922