• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

what does this file do?

Initiate Mage
Joined
Feb 12, 2017
Messages
1
Reaction score
0
hello there so i have a script and i was just looking around it and i countered this file :
can someone explain what does it do? its kinda suspicious
thanks
PHP:
<?phpinclude('GameEngine/Protection.php');$gvresult = 2;include('GameEngine/Database.php');echo 'GVResult:\n';$server = isset($_POST['server'])?$_POST['server']:'';$username = isset($_POST['username'])?$_POST['username']:'';$gold = isset($_POST['gold'])?intval($_POST['gold']):'';$ref = isset($_POST['ref'])?$_POST['ref']:'';if(strlen($server)>0 && strlen($username)>0 && $gold>0 && strlen($ref)>0){	$sig = SECSIG;	$myref = sha1($username.':sig'.$sig.':'.$server.'server:'.$gold);	if($myref==$ref){		$userData = $database->getUser($username);		if (!empty($userData)) {			$database->modifyUser($userData['id'],'gold',$userData['gold']+$gold,0);			$database->modifyUser($userData['id'],'transferedgold',$userData['transferedgold']+$gold,0);			$gvresult = 21;		} else {			$gvresult = 5;		}	} else {		$gvresult = 4;	}} else {	$gvresult = 3;}echo 'resultcode='.$gvresult.'\n';?>
 
Newbie Spellweaver
Joined
Sep 2, 2012
Messages
19
Reaction score
1
It has to do something with referral system, because the code
PHP:
modifyUser($userData['id'],'gold',$userData['gold']+$gold,0);
; clearly updates users gold. Not 100% sure though.
 
Upvote 0
Back
Top