Download sqlmap user`s manual
Transcript
CONTENTS 5.4 5.5 5.6 5.7 2 5.3.2 HTTP Cookie header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5.3.3 HTTP User-Agent header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 5.3.4 HTTP Referer header . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.3.5 Extra HTTP headers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.3.6 HTTP Basic, Digest and NTLM authentications . . . . . . . . . . . . . . . . . . . . . 25 5.3.7 HTTP Certicate authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.3.8 HTTP proxy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.3.9 Concurrent HTTP requests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.3.10 Delay in seconds between each HTTP request . . . . . . . . . . . . . . . . . . . . . . . 27 5.3.11 Seconds to wait before timeout connection . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.3.12 Maximum number of retries when the HTTP connection timeouts . . . . . . . . . . . 28 5.3.13 Filtering targets from provided proxy log using regular expression . . . . . . . . . . . 28 Injection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.4.1 Testable parameter(s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.4.2 Force the database management system name . . . . . . . . . . . . . . . . . . . . . . . 29 5.4.3 Force the database management system operating system name . . . . . . . . . . . . . 30 5.4.4 Custom injection payload . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 5.4.5 Page comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 5.4.6 Exclude specic page content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 5.5.1 Test for stacked queries (multiple statements) support . . . . . . . . . . . . . . . . . . 34 5.5.2 Test for time based blind SQL injection . . . . . . . . . . . . . . . . . . . . . . . . . . 35 5.5.3 Test for UNION query SQL injection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 5.5.4 Use the UNION query SQL injection . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Fingerprint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 5.6.1 Extensive database management system ngerprint . . . . . . . . . . . . . . . . . . . . 40 Enumeration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 5.7.1 Banner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 5.7.2 Session user . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 5.7.3 Current database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 5.7.4 Detect if the session user is a database administrator (DBA) . . . . . . . . . . . . . . 45 5.7.5 Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 5.7.6 Users password hashes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 5.7.7 Users privileges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 5.7.8 Available databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 5.7.9 Databases tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 5.7.10 Database table columns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51