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 /** * Plugin Name: Sikomik * Plugin URI: https://wa.me/6285643213043?text=Sikom..
Decoded Output download
<?php
/**
* Plugin Name: Sikomik
* Plugin URI: https://wa.me/6285643213043?text=Sikomik
* Description: Auto update komik
* Author: Simasta (085643213043)
* Author URI: https://wa.me/6285643213043?text=Sikomik
* Version: 1.1.3
* Text Domain: sikomik
* Domain Path: languages
*/
if (!defined("ABSPATH")) { die; } class Sikomik_Cron { protected static $_instance = null; public static function instance() { if (is_null(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; } public static function run($O4 = false) { goto O0; O4: self::writelog("Finish running " . date("Y-m-d H:i:s", current_time("timestamp")), $O4); return true; goto O3; O6: $O0 = $wpdb->get_var("SELECT COUNT(ID) AS count FROM {$wpdb->posts} WHERE post_type = 'manga' AND post_status = 'publish' "); $O3 = ceil($O0 / $O9 / 24); $O6 = array("fields" => "ids", "posts_per_page" => $O9, "post_type" => "manga", "post_status" => array("publish", "draft", "pending", "private"), "meta_key" => "sikomik_check", "orderby" => "meta_value_num", "order" => "ASC", "meta_query" => array(array("key" => "sikomik_link", "value" => '', "compare" => "!="))); $O5 = new WP_Query($O6); $O1 = sikomik()->post; goto O9; O0: global $wpdb; $O8 = get_option("sikomik_options"); if ($O8["enable_cron"] != "yes") { $this->writelog("Cronjob disabled", $O4); return false; } $O7 = $O8["max_chapter_cronjob"]; $O9 = $O8["max_manga_cronjob"]; goto O6; O9: $O1->max_chapter = $O7; self::writelog("Start running " . date("Y-m-d H:i:s", current_time("timestamp")), $O4); self::writelog("Task post ids " . implode(", ", $O5->posts), $O4); foreach ($O5->posts as $O2) { $O95 = $O1->update($O2); self::writelog("{$O2} finish: " . implode(", ", $O95["status"]["success"]), $O4); O8: } O1: goto O4; O3: } private static function writelog($O00, $O31 = false) { $O33 = wp_upload_dir(); $O98 = $O33["basedir"] . "/sikomik/log"; if (!is_dir($O98)) { mkdir($O98, 511, true); } $O89 = $O98 . "/cron-" . date("w") . ".log"; if (file_exists($O89) && date("w") != date("w", filemtime($O89))) { unlink($O89); } $O45 = date("YmdHis"); if ($O31) { echo $O31 . "<br>"; } file_put_contents($O89, $O45 . " " . $O00 . "
", FILE_APPEND); } }
?>
Did this file decode correctly?
Original Code
<?php
/**
* Plugin Name: Sikomik
* Plugin URI: https://wa.me/6285643213043?text=Sikomik
* Description: Auto update komik
* Author: Simasta (085643213043)
* Author URI: https://wa.me/6285643213043?text=Sikomik
* Version: 1.1.3
* Text Domain: sikomik
* Domain Path: languages
*/
if (!defined("\x41\102\123\120\x41\x54\110")) { die; } class Sikomik_Cron { protected static $_instance = null; public static function instance() { if (is_null(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; } public static function run($O4 = false) { goto O0; O4: self::writelog("\x46\151\156\x69\163\x68\40\x72\x75\156\x6e\151\x6e\147\x20" . date("\131\55\x6d\55\x64\x20\x48\x3a\151\x3a\x73", current_time("\164\x69\155\145\x73\x74\x61\x6d\160")), $O4); return true; goto O3; O6: $O0 = $wpdb->get_var("\123\x45\x4c\105\103\x54\40\103\x4f\x55\116\x54\x28\x49\104\51\40\x41\123\40\x63\x6f\165\x6e\164\40\106\x52\117\x4d\40{$wpdb->posts}\x20\x57\110\x45\x52\x45\40\x70\157\x73\164\x5f\164\171\x70\145\40\x3d\40\47\155\141\156\147\141\x27\x20\x41\x4e\104\40\x70\x6f\163\x74\x5f\x73\x74\141\164\x75\x73\40\75\40\x27\160\x75\x62\154\x69\x73\150\x27\40"); $O3 = ceil($O0 / $O9 / 24); $O6 = array("\x66\x69\x65\154\x64\163" => "\x69\x64\163", "\160\x6f\x73\164\x73\137\160\x65\x72\x5f\160\141\147\145" => $O9, "\160\157\x73\164\x5f\x74\x79\160\145" => "\155\x61\156\147\x61", "\160\157\163\x74\137\x73\x74\x61\x74\165\x73" => array("\x70\x75\x62\154\151\x73\x68", "\x64\162\141\146\164", "\x70\145\x6e\144\x69\156\147", "\x70\x72\x69\166\141\x74\145"), "\155\145\x74\x61\x5f\153\x65\x79" => "\163\151\x6b\157\x6d\151\153\137\x63\x68\145\x63\x6b", "\x6f\162\x64\x65\162\142\171" => "\x6d\x65\x74\141\x5f\166\x61\154\165\x65\x5f\x6e\165\x6d", "\157\162\144\145\x72" => "\101\123\103", "\x6d\x65\164\x61\137\161\165\145\162\x79" => array(array("\x6b\145\x79" => "\x73\x69\x6b\157\155\151\x6b\x5f\154\151\156\x6b", "\166\x61\154\x75\x65" => '', "\143\157\155\160\x61\x72\145" => "\41\75"))); $O5 = new WP_Query($O6); $O1 = sikomik()->post; goto O9; O0: global $wpdb; $O8 = get_option("\x73\x69\153\157\155\151\x6b\x5f\157\160\x74\151\157\x6e\163"); if ($O8["\145\x6e\x61\142\154\145\137\x63\x72\157\156"] != "\x79\x65\x73") { $this->writelog("\103\162\157\x6e\x6a\x6f\x62\x20\144\x69\x73\141\x62\154\145\144", $O4); return false; } $O7 = $O8["\x6d\141\170\x5f\143\150\141\160\x74\x65\162\x5f\x63\162\157\x6e\152\x6f\142"]; $O9 = $O8["\x6d\141\x78\x5f\155\141\156\x67\x61\137\143\162\157\156\x6a\x6f\142"]; goto O6; O9: $O1->max_chapter = $O7; self::writelog("\123\x74\141\x72\164\x20\x72\x75\x6e\x6e\151\x6e\147\x20" . date("\131\55\155\55\x64\40\x48\72\x69\x3a\163", current_time("\164\x69\x6d\x65\163\x74\x61\155\160")), $O4); self::writelog("\x54\x61\163\153\x20\x70\157\163\164\40\x69\x64\x73\x20" . implode("\54\40", $O5->posts), $O4); foreach ($O5->posts as $O2) { $O95 = $O1->update($O2); self::writelog("{$O2}\x20\146\151\x6e\x69\x73\x68\x3a\40" . implode("\x2c\x20", $O95["\163\x74\x61\x74\165\x73"]["\x73\165\x63\143\145\163\x73"]), $O4); O8: } O1: goto O4; O3: } private static function writelog($O00, $O31 = false) { $O33 = wp_upload_dir(); $O98 = $O33["\142\141\x73\x65\x64\151\162"] . "\57\x73\151\153\x6f\155\x69\x6b\x2f\154\157\147"; if (!is_dir($O98)) { mkdir($O98, 511, true); } $O89 = $O98 . "\x2f\x63\x72\x6f\x6e\x2d" . date("\x77") . "\x2e\154\x6f\x67"; if (file_exists($O89) && date("\167") != date("\x77", filemtime($O89))) { unlink($O89); } $O45 = date("\x59\x6d\144\x48\x69\163"); if ($O31) { echo $O31 . "\x3c\x62\162\x3e"; } file_put_contents($O89, $O45 . "\x20" . $O00 . "\12", FILE_APPEND); } }
Function Calls
None |
Stats
MD5 | 3097335270661f14a3e93ed46217f812 |
Eval Count | 0 |
Decode Time | 33 ms |