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 include realpath(dirname(__FILE__) . "\x2f\56\56\57\x2e\56\57\x69\156\x63\x6c\x75\..
Decoded Output download
<?php
include realpath(dirname(__FILE__) . "/../../include.php"); $alarmEvaluator = new \VDVlarm\model\AlarmEvaluator(); $logFile = file_get_contents(dirname(__FILE__) . "/task_custom_alarm_log.json"); $data = json_decode($logFile, true); $start = new DateTime("now"); $data["lastStart"] = $start->format("Y-m-d H:i:s"); $newJsonString = json_encode($data); file_put_contents(dirname(__FILE__) . "/task_custom_alarm_log.json", $newJsonString); error_reporting(E_ALL & ~E_NOTICE); $alarmEvaluator->run(); $logFile = file_get_contents(dirname(__FILE__) . "/task_custom_alarm_log.json"); $data = json_decode($logFile, true); $stop = new DateTime("now"); $data["lastStop"] = $stop->format("Y-m-d H:i:s"); $newJsonString = json_encode($data); file_put_contents(dirname(__FILE__) . "/task_custom_alarm_log.json", $newJsonString);
?>
Did this file decode correctly?
Original Code
<?php
include realpath(dirname(__FILE__) . "\x2f\56\56\57\x2e\56\57\x69\156\x63\x6c\x75\x64\145\56\160\150\160"); $alarmEvaluator = new \VDV\alarm\model\AlarmEvaluator(); $logFile = file_get_contents(dirname(__FILE__) . "\57\x74\141\x73\x6b\x5f\x63\x75\163\164\157\x6d\x5f\141\154\141\162\x6d\137\154\157\x67\x2e\152\163\157\x6e"); $data = json_decode($logFile, true); $start = new DateTime("\156\157\x77"); $data["\154\141\163\164\123\x74\141\x72\164"] = $start->format("\131\55\x6d\55\144\x20\x48\x3a\151\72\163"); $newJsonString = json_encode($data); file_put_contents(dirname(__FILE__) . "\x2f\x74\141\x73\x6b\x5f\143\x75\x73\164\157\x6d\137\x61\154\x61\x72\x6d\137\154\157\x67\x2e\x6a\x73\x6f\x6e", $newJsonString); error_reporting(E_ALL & ~E_NOTICE); $alarmEvaluator->run(); $logFile = file_get_contents(dirname(__FILE__) . "\x2f\x74\141\x73\153\137\x63\165\x73\x74\157\x6d\137\141\154\141\162\x6d\137\154\x6f\147\56\152\163\x6f\x6e"); $data = json_decode($logFile, true); $stop = new DateTime("\x6e\157\167"); $data["\x6c\141\x73\x74\123\164\157\160"] = $stop->format("\131\55\155\55\x64\40\x48\x3a\x69\72\163"); $newJsonString = json_encode($data); file_put_contents(dirname(__FILE__) . "\x2f\164\141\x73\153\137\143\165\x73\x74\x6f\155\x5f\141\x6c\x61\162\155\x5f\154\157\147\56\152\x73\157\x6e", $newJsonString);
Function Calls
dirname | 1 |
realpath | 1 |
Stats
MD5 | ee300954d693617acbd65d2e4d70260a |
Eval Count | 0 |
Decode Time | 107 ms |