Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /* line id: wy.ping */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%..
Decoded Output download
include 'wepay-common.php';
class wePayAPI
{
function GetBalance()
{
$response = new stdClass();
try
{
$postData = "username=".$GLOBALS['username_wepay']."&password=".$GLOBALS['password_wepay']."&type=balance_inquiry";
$curl = curl_init();
curl_setopt_array($curl,array(
CURLOPT_URL =>'https://www.wepay.in.th/client_api.json.php',
CURLOPT_RETURNTRANSFER =>true,
CURLOPT_ENCODING =>'',
CURLOPT_MAXREDIRS =>10,
CURLOPT_TIMEOUT =>0,
CURLOPT_FOLLOWLOCATION =>true,
CURLOPT_HTTP_VERSION =>CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST =>'POST',
CURLOPT_POSTFIELDS =>$postData,
CURLOPT_HTTPHEADER =>array(
'Content-Type: application/x-www-form-urlencoded'
),
));
$data = curl_exec($curl);
curl_close($curl);
$result = json_decode($data,true);
if(array_key_exists('code',$result) &&array_key_exists('ledger_balance',$result) &&array_key_exists('available_balance',$result))
{
if($result['code'] == "00000")
{
$response->success = true;
$response->message = "success";
$response->ledger_balance = $result['ledger_balance'];
$response->available_balance = $result['available_balance'];
}
else
{
$response->success = false;
$response->message = "api error code : ".$result['code'];
}
}
else
{
$response->success = false;
$response->message = "sorry something went wrong code : 500";
}
return $response;
}
catch(Exception $e)
{
$response->success = false;
$response->message = $e->getMessage();
return $response;
}
}
function GetPackageList($mode_type,$category_type)
{
$response = new stdClass();
try
{
$postData = "username=".$GLOBALS['username_wepay']."&password=".$GLOBALS['password_wepay']."&type=".$mode_type."&pay_to_company=".$category_type."&payee_info=true";
$curl = curl_init();
curl_setopt_array($curl,array(
CURLOPT_URL =>'https://www.wepay.in.th/client_api.json.php',
CURLOPT_RETURNTRANSFER =>true,
CURLOPT_ENCODING =>'',
CURLOPT_MAXREDIRS =>10,
CURLOPT_TIMEOUT =>0,
CURLOPT_FOLLOWLOCATION =>true,
CURLOPT_HTTP_VERSION =>CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST =>'POST',
CURLOPT_POSTFIELDS =>$postData,
CURLOPT_HTTPHEADER =>array(
'Content-Type: application/x-www-form-urlencoded'
),
));
$data = curl_exec($curl);
curl_close($curl);
$result = json_decode($data,true);
if(array_key_exists('code',$result) &&array_key_exists('sof_min',$result) &&array_key_exists('sof_max',$result) &&array_key_exists('sof_defined_amounts',$result))
{
if($result['code'] == "00000")
{
$response->success = true;
$response->message = "success";
$response->sof_min = $result['sof_min'];
$response->sof_max = $result['sof_max'];
$response->sof_defined_amounts = $result['sof_defined_amounts'];
}
else
{
$response->success = false;
$response->message = "api error code : ".$result['code'];
}
}
else
{
$response->success = false;
$response->message = "sorry something went wrong code : 500";
}
return $response;
}
catch(Exception $e)
{
$response->success = false;
$response->message = $e->getMessage();
return $response;
}
}
};
Did this file decode correctly?
Original Code
<?php /* line id: wy.ping */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$GLOBALS['OOO0000O0']=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5}.$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$GLOBALS['OOO0000O0'].=$GLOBALS['OOO0000O0']{3}.$OOO000000{11}.$OOO000000{12}.$GLOBALS['OOO0000O0']{7}.$OOO000000{5};$GLOBALS['OOO000O00']=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$GLOBALS['O0O000O00']=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$GLOBALS['O0O000O00']=$O0O000O00.$OOO000000{3};$GLOBALS['O0O00OO00']=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$GLOBALS['OOO00000O']=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14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2xSd4UZ0alzINLS52Dp0EDSIpsDNj6G0EDgt4yS0aBhd4z3E48TtjlzIN6G0ED8tX6tLHDc0+zeM2CZEisDNj6G0EDgt4yS0aBhd4z3E481/NlzIN6G0ED8tX6tLHDc0+zekEYZEisDNj6G0EDgt4yS0aBhd4z3E46+03+K026Ok28c52yBdGlzIN6G0ED8tX6tLHDc0+zP020Tt3xPE4UetHxK5X7ZEisDNZBDN3xsd4mDNZsDNj6G0EDgt4yS0aBhdHxpk4xSdGlzIv01tXD+ugBbLXL+dHnctZD+Wiye0EDSk25+IoBYI3UgMan+dZLcdjnpt46+IoAYIjCPd3xS52JB2G5pt46+L8BRoqTzoqTzoqT+tXD+oqTRoqAPd3xSdvzKd4me9ZD8k4D+dH7Y9an3k2JS0isDNj6G0EDgt4yS0aBht2xSd4UZ0alzINLStHLG/anSt48+5v1Tt3dY54xK5NnHd3zK0Gnpt46+IoAYDilgIpsDNZBDNZL+5XxGtjlPd3xSdvzKd4mRoqTzoqTpkE6pMN1U/vD+dX6Tt4CYLvmToqTRoqAPd3xSdvzKd4me9ZD8k4D+dH7Y9an3k2JS0isDNj6G0EDgt4yS0aBht2xSd4UZ0alzIN6+WiyZ0E6D0EDSk25+bNPRoqTG0E68d3CYLXL+dHnctZD+ugBbOqBbOqBbOis=fNz}KP
Function Calls
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | afb6d252694931f397b46aa1e56ca3c0 |
Eval Count | 3 |
Decode Time | 131 ms |