Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Guides & Releases
You last visited: Today at 10:25

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE] Vote 4 AP Script ( 4 Sites )

Discussion on [RELEASE] Vote 4 AP Script ( 4 Sites ) within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
Sh1nra's Avatar
 
elite*gold: 5
Join Date: Mar 2012
Posts: 1,007
Received Thanks: 498
[RELEASE] Vote 4 AP Script ( 4 Sites )

Hey,

I change something in the released script from Zeus, you only can use 1 voting site and you need to fix something for get this script working.


I done some changes and here is it.

1. Open config.php and change mssql db_user and db_pass

2. Open vote.php and change vote sites ( line : 36 - 42 )

3. Execute script.sql

4. Done

The script insert all processes in the table user_votes
Code:
select * from PS_UserData.dbo.user_votes


If you have some questions feel free to ask.

Best Regards.
Attached Files
File Type: rar vote.rar (308.3 KB, 795 views)
Sh1nra is offline  
Thanks
5 Users
Old 03/07/2013, 19:26   #2
 
elite*gold: 0
Join Date: May 2012
Posts: 58
Received Thanks: 18
It´s an Sql Injection in it. -.-
Coolie_85 is offline  
Old 03/07/2013, 19:36   #3
 
Sh1nra's Avatar
 
elite*gold: 5
Join Date: Mar 2012
Posts: 1,007
Received Thanks: 498
where is the sql injection?
i add for every $_POST ,htmlentities and i use magic quotes so what sh*t are you saying?

Wait, the best:
Sh1nra is offline  
Old 03/07/2013, 19:49   #4
 
elite*gold: 0
Join Date: May 2012
Posts: 58
Received Thanks: 18
The best is: I´ve download this!!!!!!!!!!!!!!!

Look
Coolie_85 is offline  
Old 03/07/2013, 20:08   #5
 
Sh1nra's Avatar
 
elite*gold: 5
Join Date: Mar 2012
Posts: 1,007
Received Thanks: 498
Hmm wayne, where is the sql injection?
Sh1nra is offline  
Old 03/07/2013, 23:01   #6
 
abrasive's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 809
It looks like you meant to try to sanitize user input with this code at some point?
Code:
		function clean($str){
			return is_array($str) ? array_map('clean', $str) : str_replace("\\", "\\\\", htmlspecialchars((get_magic_quotes_gpc() ? stripslashes($str) : $str), ENT_QUOTES));
		}
There are a few problems with this:
1. get_magic_quotes_gpc() only matters for a MySQL database.
2. The escape character for MSSQL is an apostrophe, not a backslash.
3. Escaping input in fashions such as this is obsolete since the existence of bound queries.
4. Finally this function is never even called, so in a sense it is no relevant.

All of the queries in this script have variables directly concatenated with the query itself, which is how users can do SQL injection.
abrasive is offline  
Thanks
8 Users
Old 03/08/2013, 06:24   #7
 
Sh1nra's Avatar
 
elite*gold: 5
Join Date: Mar 2012
Posts: 1,007
Received Thanks: 498
Quote:
Originally Posted by abrasive View Post
It looks like you meant to try to sanitize user input with this code at some point?
Code:
		function clean($str){
			return is_array($str) ? array_map('clean', $str) : str_replace("\\", "\\\\", htmlspecialchars((get_magic_quotes_gpc() ? stripslashes($str) : $str), ENT_QUOTES));
		}
There are a few problems with this:
1. get_magic_quotes_gpc() only matters for a MySQL database.
2. The escape character for MSSQL is an apostrophe, not a backslash.
3. Escaping input in fashions such as this is obsolete since the existence of bound queries.
4. Finally this function is never even called, so in a sense it is no relevant.

All of the queries in this script have variables directly concatenated with the query itself, which is how users can do SQL injection.
I don't change this, it was in the script before
Sh1nra is offline  
Old 03/08/2013, 06:45   #8
 
JohnHeatz's Avatar
 
elite*gold: 150
Join Date: Apr 2010
Posts: 9,739
Received Thanks: 8,977
Quote:
Originally Posted by Sh1nra View Post
I don't change this, it was in the script before
The fact that "it was there" doesn't excuse the fact that it is incorrect and not even being used on the script
JohnHeatz is offline  
Thanks
2 Users
Old 03/08/2013, 13:30   #9
 
Sh1nra's Avatar
 
elite*gold: 5
Join Date: Mar 2012
Posts: 1,007
Received Thanks: 498
I will try to fix this lol
Sh1nra is offline  
Thanks
3 Users
Old 09/14/2013, 20:35   #10
 
JujiPoli's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 340
Received Thanks: 405
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\vote\vote.php on line 27 Hello, someone know how to fix this error?
JujiPoli is offline  
Old 09/15/2013, 23:59   #11
 
[ADM]SpyRow's Avatar
 
elite*gold: 0
Join Date: Jun 2013
Posts: 465
Received Thanks: 668
Quote:
Originally Posted by JujiPoli View Post
Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\vote\vote.php on line 27 Hello, someone know how to fix this error?

Why you want to add something that is not well done made?
With this script your players are going to get tooooons of DP and you wont know from where

Wait for better version.
[ADM]SpyRow is offline  
Old 02/12/2014, 18:32   #12
 
elite*gold: 0
Join Date: Feb 2011
Posts: 295
Received Thanks: 18
have anyone a better version?
accuface35 is offline  
Old 02/12/2014, 18:54   #13
 
H.A.Z.E's Avatar
 
elite*gold: 11
Join Date: Sep 2012
Posts: 3,005
Received Thanks: 375
Quote:
Originally Posted by accuface35 View Post
have anyone a better version?
The Thread is 5 Months old...
#colserequest
H.A.Z.E is offline  
Reply


Similar Threads Similar Threads
[Release] Vote 4 Coins (Besseres) (Extern) up to 5 Vote-Sites!
05/12/2020 - Metin2 PServer Guides & Strategies - 83 Replies
Liebe Gemeinde, da von Akaja mein Vote 4 Coins Script damals verbotener Weise hier veröffentlicht wurde, werde ich nun meine neue Version direkt publizieren. Ich weise darauf hin das ich das Script nur anpasse oder Supporte wenn es bei mir gekauft wurde. Sonst habt ihr meinerseits auf keinen Support zu zählen. Demo http://bloody-marry.de/test.html Features IP Kontrolle



All times are GMT +2. The time now is 10:25.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.