|
|
|
|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 106
Members: 0
Total: 106
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
ioncube decode |
|
Posted: Thu Feb 04, 2016 10:16 am |
|
|
brknmrl |
Beginner |
|
|
Joined: Feb 04, 2016 |
Posts: 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Posted: Thu Feb 04, 2016 3:36 pm |
|
|
kolaz |
Advanced user |
|
|
Joined: May 06, 2015 |
Posts: 53 |
|
|
|
|
|
|
|
If you want full file, contact me.
Here it is the first lines:
Code: |
<?php
function digitalocean2_getDisableSsl()
{
$data = Illuminate\Database\Capsule\Manager::table("mod_do2_settings")->where("setting", "disable_ssl")->first();
return $data->value;
}
function digitalocean2_getDoToken()
{
$data = Illuminate\Database\Capsule\Manager::table("tbladdonmodules")->where("module", "digitalocean2")->where("setting", "do_token")->first();
return $data->value;
}
function digitalocean2_getLicence()
{
$data = Illuminate\Database\Capsule\Manager::table("tbladdonmodules")->where("module", "digitalocean2")->where("setting", "do_licence")->first();
return $data->value;
}
function digitalocean2_getLocalKey()
{
$data = Illuminate\Database\Capsule\Manager::table("mod_do2_settings")->where("setting", "localkey")->first();
return $data->value;
}
function digitalocean2_getNs()
{
$ns["ns1"] = Illuminate\Database\Capsule\Manager::table("mod_do2_settings")->where("setting", "ns1")->first();
$ns["ns1"] = $ns["ns1"]->value;
$ns["ns2"] = Illuminate\Database\Capsule\Manager::table("mod_do2_settings")->where("setting", "ns2")->first();
$ns["ns2"] = $ns["ns2"]->value;
$ns["ns3"] = Illuminate\Database\Capsule\Manager::table("mod_do2_settings")->where("setting", "ns3")->first();
$ns["ns3"] = $ns["ns3"]->value;
return $ns;
}
function digitalocean2_getDropletId($pid, $serviceid)
{
$data = Illuminate\Database\Capsule\Manager::table("tblcustomfields")->where("relid", $pid)->where("fieldname", "droplet_id")->first();
$var1 = $data->id;
$data2 = Illuminate\Database\Capsule\Manager::table("tblcustomfieldsvalues")->where("relid", $serviceid)->where("fieldid", $var1)->first();
return $data2->value;
}
function digitalocean2_sendAdminEmail($subject, $message)
{
$values["customsubject"] = $subject;
$values["custommessage"] = $message;
$values["type"] = "system";
localAPI("sendadminemail", $values, 1);
}
function digitalocean2_getDroplet($droplet_id)
{
$disable_ssl = digitalocean2_getdisablessl();
$do_token = digitalocean2_getdotoken();
$url = "https://api.digitalocean.com/v2/droplets/" . $droplet_id;
if( $disable_ssl == "yes" )
{
$verifypeer = false;
}
else
{
$verifypeer = true;
}
$options = array( "CURLOPT_SSL_VERIFYPEER" => $verifypeer, "HEADER" => array( "Authorization: Bearer " . $do_token ) );
$response = curlCall($url, NULL, $options);
$response = json_decode(
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|
|