How To Use Sqlmap in Kali Linux ?
1. First, open the terminal in Kali Linux.
2. Install sqlmap by typing the following command: sudo apt-get install sqlmap.
3. Once sqlmap is installed, you can run it by typing: sqlmap -h.
4. To test a website for SQL injection vulnerabilities, type: sqlmap -u [target URL].
5. The tool will then start scanning the target URL and looking for any SQL injection vulnerabilities.
6. If any vulnerabilities are found, sqlmap will provide a list of possible injection points and ask you which one you want to test.
7. To perform a full database dump, type: sqlmap -u [target URL] --dbs.
8. This will give you a list of databases that are available on the target server.
9. To dump the contents of a specific database, type: sqlmap -u [target URL] -D [database name] --dump.
10. This will give you a list of all the tables in the database, and you can then dump the contents of a specific table by typing: sqlmap -u [target URL] -D [database name] -T [table name] --dump.
Note: It is important to note that sqlmap should only be used on websites that you have permission to test, as it can potentially cause damage if used on live, production websites.
Comments
Post a Comment