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/usafundingapplications.ai/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/usafundingapplications.ai/lib/LCAPI.php
<?

class LCAPI
{
	var $response = "";
	
	function __construct()
	{
	
	}
	
	function CreateUser($fields, $append_get = '')
	{
		$url = "https://surfcrm.com/lcapi/CreateUser.php";
		$url = ($append_get != '') ? $url."?".$append_get : $url;
		$this->response = $this->PostFields($url,$fields);
		if ($this->response->status == "Success") { return true; }
		else { return false; }
	}
	
	function CreateLead($fields, $append_get = '')
	{
		$url = "https://surfcrm.com/lcapi/CreateLead.php";
		$url = ($append_get != '') ? $url."?".$append_get : $url;
		$this->response = $this->PostFields($url,$fields);
		if ($this->response->status == "Success") { return true; }
		else { return false;}
	}
	
	function PostFields($url,$fields)
	{
		$ch = curl_init();
	  	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	  	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
	  	curl_setopt($ch, CURLOPT_REFERER, $_SERVER["HTTP_HOST"] . $_SERVER['REQUEST_URI']);
	  	curl_setopt($ch, CURLOPT_URL, $url);
		curl_setopt($ch, CURLOPT_POST, 1);
	  	curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
	  	curl_setopt($ch, CURLOPT_USERAGENT, "LCAPI cUrl Agent");
		curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
		ob_start();   
	  	$data = curl_exec ($ch);
	  	ob_end_clean(); 
		curl_close ($ch);
		
		if(empty($data)) {
			if(!empty($fields)) {
				$url .= (strpos($url,'?')!==false) ? '&' : '?';
				$first = true;
				foreach($fields as $k=>$v) {
					$url .= (strpos($url,'&')!==false || !$first) ? '&'.urlencode($k).'='.urlencode($v) : urlencode($k).'='.urlencode($v);
					$first = false;
				}
			}
			$data = file_get_contents($url);
		}
		if(empty($data) || $data=='NULL') {
			//mail('jeremy@synergytpsreports.com,heinz57@gmail.com','API CALL failed '.date('Y-m-d H:i:s'),'API Call from NUSAF Failed. '.print_r($url,true),"From:errors@surfcrm.com\r\n");
		}
		$lcresponse = new LCAPIResponse(trim($data));
		return $lcresponse;
	}

}

class LCAPIResponse
{
	var $status = "";
	var $userid = "";
	var $errormessage = "";
	
	function __construct($response)
	{
		// $response is in the format:
		// (Success|Failure): (userid|errormessage)
		list($responsestatus,$responsemessage) = explode(":",$response,2);
		
		if ($responsestatus == "Success")
		{
			$this->status = "Success";
			$this->userid = $responsemessage;
		}
		else
		{
			$this->status = "Failure";
			$this->errormessage = $responsemessage;
		}
	}	
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit