SlideShare une entreprise Scribd logo
1  sur  10
SQLMap
Options
• -v
• -h
Target:
•
•
•
•

-d DIRECT
-u URL
-r REQUESTFILE
-l LIST
Requests:
• --data=DATA
• --cookie=COOKIE
• --scope=SCOPE
Injection
•
•
•
•
•
•

-p PARAMETER
--dbms=DBMS
--os=OS
--prfix=PREFIX
--suffix=SUFFIX
--tamper=TAMPER
$query = “SELECT * FROM users WHERE id=(‘ ”.$_GET*‘id’+.” ’) LIMIT 0, 1”;

Sqlmap –u URL –p id –prefix “’)” –suffix “AND (‘abc’=abc”

$query = SELECT * FROM users WHERE id=(‘1’) <PAYLOAD> AND (‘abc’=‘abc’) LIMIT
0,1”;
Detection:
•
•
•
•

--level=LEVEL (1-5)
--risk=RISK (0-3)
--string=STRING
--regex=REGEX
Enumeration
•
•
•
•
•
•
•
•
•
•
•

--current-user
--current-db
--users
--passwords
--dbs
--tables
--columns
--dump (all)
--replicate
--search
--sql-query=SQLQUERY
Enumeration (cont)
•
•
•
•

-D DB
-T TABLES
-C COLUMNS
--file-read=FILE
General
•
•
•
•

-s SESSIONFILE
--flush-session
--update
--save

Contenu connexe

Plus de Todd Benson (I.T. SPECIALIST and I.T. SECURITY) (7)

Sar writingv2
Sar writingv2Sar writingv2
Sar writingv2
 
Defending web applications v.1.0
Defending web applications v.1.0Defending web applications v.1.0
Defending web applications v.1.0
 
Application Context and Discovering XSS without
Application Context and Discovering XSS without Application Context and Discovering XSS without
Application Context and Discovering XSS without
 
Regex 101
Regex 101Regex 101
Regex 101
 
Overview of java web services
Overview of java web servicesOverview of java web services
Overview of java web services
 
Becoming a better pen tester overview
Becoming a better pen tester overviewBecoming a better pen tester overview
Becoming a better pen tester overview
 
SSL overview
SSL overviewSSL overview
SSL overview