Posted July 15Jul 15 π How to Find SQL Injection (SQLi) Vulnerabilities Using Nmap in TermuxDo you want to check if a website is vulnerable to SQL injection using just your Android phone?Good news! You can use the app called Termux, along with a tool called Nmap, to scan websites and look for possible SQLi vulnerabilities.In this post, Iβll show you how to:Use Termux on AndroidInstall NmapRun a special Nmap script to check for SQL injectionLetβs get started!β What You NeedBefore we begin, make sure you have:Termux installed (from F-Droid)Internet connectionA target website (must be your own site or for learning only)β οΈ Warning: Only test websites you own or have permission to scan. Hacking other websites is illegal.π οΈ Step-by-Step Guide to Finding SQLi with NmapπΉ Step 1: Open TermuxLaunch the Termux app on your Android device.πΉ Step 2: Update Termux PackagesAlways update first:apt update && apt upgrade -yπΉ Step 3: Install NmapNow install Nmap using this command:pkg install nmapWait for it to finish installing.πΉ Step 4: Use Nmap Script to Scan for SQL InjectionNmap has built-in scripts that can check for SQLi.Use this command:nmap -p 80 --script http-sql-injection example.comπ Replace example.com with the website you want to test.What this command does:-p 80: scans port 80 (default web port)--script http-sql-injection: uses the SQLi check scriptπ§ͺ Examplenmap -p 80 --script http-sql-injection testphp.vulnweb.comOutput:If the site is vulnerable, Nmap will show messages like:Possible SQL injection found at /somepage.php?id=1π‘ Optional: Scan Other Ports TooSome websites run on other ports like 8080 or 443.You can change the port like this:nmap -p 8080 --script http-sql-injection example.comOr scan multiple ports:nmap -p 80,443 --script http-sql-injection example.comπ Tips and WarningsAlways scan with permissionDonβt overuse the scan on live websitesUse safe test websites like:testphp.vulnweb.comdemo.testfire.netUsing Nmap in Termux is a great way to learn cybersecurity and practice ethical hacking on your phone. The http-sql-injection script can help you find SQLi vulnerabilities on websites that are poorly secured.This tool is powerful, but it must be used responsibly. Never scan or attack any website without permission.
Create an account or sign in to comment