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: Etkin Bayii E-Entegrasyon Plugin URI: https://artiproses.com/..
Decoded Output download
<?php
/*
Plugin Name: Etkin Bayii E-Entegrasyon
Plugin URI: https://artiproses.com/
Description: rn ektirme.
Version: 1.0
Author: Eren PARLADI
Author URI: https://erenparladi.com/
License: GPLv2 or later
Text Domain: erenparladi
*/
if (defined("ABSPATH")) {
goto xSerZ;
}
exit;
xSerZ:
$vGQnz = get_site_url();
$gbEkH = $vGQnz . "/wp-content/plugins/urunentegrasyon";
$POafB = $vGQnz . $_SERVER["REQUEST_URI"];
if (!($_GET["page"] == "urunentegrasyon")) {
goto Za5nE;
}
global $wpdb, $PFUD8;
$pm4WB = $PFUD8 . "plug_entgpss_hxsw";
$tNkMY = $wpdb->get_var("SELECT baymail FROM " . $pm4WB);
$slKwh = $wpdb->get_var("SELECT api_anah FROM " . $pm4WB);
echo "<script type='text/javascript'>\xa\x9var mainplugurl = '{$gbEkH}';
var siteurl = '{$vGQnz}';\xa
\x9var jsmail = '{$tNkMY}';\xa\xa var jsapi = '{$slKwh}';\xa\x9</script>
\x9";
echo "
\x9<input id="inputforjs" type="hidden" name="gizlibirinput" value="">
\x9<script src="https://code.jquery.com/jquery-3.6.1.min.js" integrity="sha256-o88AwQnZB+VDvE9tvIXrMQaPlFFSUTR+nldQm1LuPXQ=" crossorigin="anonymous"></script>\xa\xa <script type="text/javascript" src="../wp-content/plugins/urunentegrasyon/admin/js/extreme.js"></script>\xa\xa\x9\xa
";
Za5nE:
if (isset($_SESSION)) {
goto L0pbT;
}
session_start();
L0pbT:
if (!is_admin()) {
goto YyZlf;
}
require_once plugin_dir_path(__FILE__) . "admin/admin-menu.php";
require_once plugin_dir_path(__FILE__) . "entegrasyon-iskelet.php";
YyZlf:
function entegrasyon_aktiv()
{
global $wpdb, $PFUD8;
$wHLvN = wp_count_posts("product");
$vqcWB = $wHLvN->publish;
$nTCRD = $PFUD8 . "toplam_urun_adedi";
$ho4Rb = $wpdb->get_charset_collate();
$NCGql = "CREATE TABLE IF NOT EXISTS {$nTCRD} (\xa
id mediumint(9) NOT NULL AUTO_INCREMENT,\xa
\x9 urun_adet int NOT NULL,\xa
\x9 PRIMARY KEY (id)\xa
\x9) {$ho4Rb};";
require_once ABSPATH . "wp-admin/includes/upgrade.php";
dbDelta($NCGql);
$k4CBb = $wpdb->get_results("SELECT urun_adet FROM {$nTCRD}");
if (count($k4CBb) == 0) {
goto ue2qy;
}
$wpdb->update($nTCRD, array("urun_adet" => $vqcWB), array("id" => 1));
goto RYcYI;
ue2qy:
$wpdb->insert($nTCRD, array("urun_adet" => $vqcWB));
RYcYI:
do_action("entegrasyon_aktiv");
}
register_activation_hook(__FILE__, "entegrasyon_aktiv");
add_action("admin_footer", "my_action_javascript");
function my_action_javascript()
{
echo "\xa <script type="text/javascript" src="../wp-content/plugins/urunentegrasyon/admin/js/prefer.js"></script> \xa \xa\x9";
}
$rZg3C = array();
$Hxi5e = array();
$k8WbE = 0;
add_action("wp_ajax_my_action", "my_action");
function my_action()
{
global $Hxi5e;
global $rZg3C;
global $k8WbE;
global $wpdb, $PFUD8;
$CXwhv = $PFUD8 . "plug_entgpss_hxsw";
$SsVtk = $wpdb->get_var("SELECT hash_kodu FROM " . $CXwhv);
$OLR5m = $wpdb->get_var("SELECT baymail FROM " . $CXwhv);
$y_U94 = "http://www.birikimpromosyon.com/api/json/";
$hh6Zk = $SsVtk;
$LPZ8T = $OLR5m;
$SBlhy = $_SERVER["HTTP_HOST"];
$t4n41 = "tum_urunler";
$Wg1lr = "fiyat";
$Kql0P = "DESC";
$N6qj_ = array("ebayi_eposta" => $LPZ8T, "hash" => $hh6Zk, "tip" => $t4n41, "siralama_tipi" => $Wg1lr, "siralama" => $Kql0P);
$Hl9yG = curl_init();
curl_setopt($Hl9yG, CURLOPT_URL, $y_U94);
curl_setopt($Hl9yG, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($Hl9yG, CURLOPT_POSTFIELDS, json_encode($N6qj_));
curl_setopt($Hl9yG, CURLOPT_HTTPHEADER, array("Content-Type:application/json"));
curl_setopt($Hl9yG, CURLOPT_USERAGENT, $SBlhy);
curl_setopt($Hl9yG, CURLOPT_ENCODING, '');
curl_setopt($Hl9yG, CURLOPT_RETURNTRANSFER, true);
curl_setopt($Hl9yG, CURLOPT_CONNECTTIMEOUT, 3);
curl_setopt($Hl9yG, CURLOPT_TIMEOUT, 20);
$a7RMc = curl_exec($Hl9yG);
curl_close($Hl9yG);
$V3g5B = json_decode($a7RMc);
$_SESSION["afterckpr"][] = $V3g5B;
$KHCS3 = count($V3g5B);
$eSAhv = ceil($KHCS3 / 47);
$W7W2a = 1;
LIGqm:
if (!($W7W2a <= 47)) {
goto j9j9_;
}
$JfvmT = 0;
uTBxo:
if (!($JfvmT <= $eSAhv - 1)) {
goto M1a6T;
}
if (empty($V3g5B[$JfvmT])) {
goto sabQC;
}
$Hxi5e[$JfvmT] = $V3g5B[$JfvmT];
sabQC:
JgFfy:
$JfvmT++;
goto uTBxo;
M1a6T:
if (count($V3g5B) >= $eSAhv) {
goto k6qTM;
}
$RWuBD = 0;
EQHhS:
if (!($RWuBD < count($V3g5B))) {
goto Nubku;
}
$Hxi5e[$RWuBD] = $V3g5B[$RWuBD];
vS2NT:
$RWuBD++;
goto EQHhS;
Nubku:
$_SESSION["butunarray"][] = array_filter($Hxi5e);
array_splice($V3g5B, 0);
goto j9j9_;
goto xJcNW;
k6qTM:
$_SESSION["butunarray"][] = $Hxi5e;
array_splice($V3g5B, 0, $eSAhv);
xJcNW:
X1Kek:
$W7W2a++;
goto LIGqm;
j9j9_:
echo 47;
wp_die();
}
add_action("wp_ajax_start_addprod", "start_addprod");
function start_addprod()
{
global $wpdb, $PFUD8;
$KXM90 = $_SESSION["butunarray"];
$y1WPU = reset($KXM90);
foreach ($y1WPU as $PfKl0) {
foreach ($PfKl0 as $JvQVn => $Io_hA) {
if ($JvQVn == "kategori_adi") {
goto qtcCo;
}
if ($JvQVn == "urun_baslik") {
goto oiu6C;
}
if ($JvQVn == "urun_id") {
goto bmvrW;
}
if ($JvQVn == "urun_kodu") {
goto MWH20;
}
if ($JvQVn == "urun_aciklama") {
goto d2oiE;
}
if ($JvQVn == "toplam_stok") {
goto h7Mny;
}
if ($JvQVn == "urun_fiyat") {
goto tfS_A;
}
if ($JvQVn == "resim1") {
goto AlGtm;
}
if ($JvQVn == "resim2") {
goto Oh8C0;
}
if ($JvQVn == "resim3") {
goto WKDri;
}
if ($JvQVn == "resim4") {
goto d18G_;
}
if ($JvQVn == "resim5") {
goto zF_7T;
}
if ($JvQVn == "resim6") {
goto gp100;
}
goto D5Fcp;
qtcCo:
$mxcB6 = $Io_hA;
goto D5Fcp;
oiu6C:
$aYJVJ = $Io_hA;
goto D5Fcp;
bmvrW:
$a_6xz = $Io_hA;
goto D5Fcp;
MWH20:
$lio9t = $Io_hA;
goto D5Fcp;
d2oiE:
$kETGa = $Io_hA;
goto D5Fcp;
h7Mny:
$Ce0eo = $Io_hA;
goto D5Fcp;
tfS_A:
$hATvF = $Io_hA;
goto D5Fcp;
AlGtm:
$xssIT = $Io_hA;
goto D5Fcp;
Oh8C0:
$fQ143 = $Io_hA;
goto D5Fcp;
WKDri:
$DgxTW = $Io_hA;
goto D5Fcp;
d18G_:
$m3UKP = $Io_hA;
goto D5Fcp;
zF_7T:
$BfZ2l = $Io_hA;
goto D5Fcp;
gp100:
$Whwhm = $Io_hA;
D5Fcp:
STll_:
}
dDb5u:
$c4hbS = "name";
$m3G73 = "asc";
$dSKSS = false;
$R0RQT = array("orderby" => $c4hbS, "order" => $m3G73, "hide_empty" => $dSKSS);
$K7b2c = get_terms("product_cat", $R0RQT);
$Bm5RG = 1;
foreach ($K7b2c as $mv6wm) {
foreach ($mv6wm as $iZeBt => $zTalr) {
if (!($iZeBt == "name")) {
goto Xv0YZ;
}
if (!($zTalr == $mxcB6)) {
goto eLc08;
}
$Bm5RG = 0;
eLc08:
Xv0YZ:
raJA8:
}
rvs4c:
zQWu0:
}
Yr9AF:
if (!($Bm5RG == 1)) {
goto QvYtC;
}
$Dk1z8 = wp_insert_term($mxcB6, "product_cat");
QvYtC:
$pm4WB = $PFUD8 . "tbl_st_ids";
$dmQle = $wpdb->get_results("SELECT woo_id FROM {$pm4WB} WHERE jsonapi_id = {$a_6xz}");
if (empty($dmQle)) {
goto SYK3E;
}
foreach ($dmQle as $s9gGB) {
foreach ($s9gGB as $dy2Pm => $yOHRe) {
$jj62_ = $yOHRe;
SSMnR:
}
o368U:
F0x2o:
}
txhmP:
$uptlv = $jj62_;
$TkGBE = array("ID" => $uptlv, "post_title" => $aYJVJ, "post_content" => $kETGa, "post_status" => "publish", "post_type" => "product");
wp_update_post($TkGBE);
update_post_meta($uptlv, "_manage_stock", "yes");
update_post_meta($uptlv, "_stock", $Ce0eo);
update_post_meta($uptlv, "_sku", $lio9t);
wc_delete_product_transients($uptlv);
if ($Ce0eo == 0) {
goto Tiwv2;
}
update_post_meta($uptlv, "_stock_status", "instock");
wc_delete_product_transients($uptlv);
goto jH5oE;
Tiwv2:
update_post_meta($uptlv, "_stock_status", "outofstock");
wc_delete_product_transients($uptlv);
jH5oE:
if ($hATvF == 0) {
goto vyVXJ;
}
update_post_meta($uptlv, "_price", $hATvF);
update_post_meta($uptlv, "_regular_price", $hATvF);
wc_delete_product_transients($uptlv);
goto P352I;
vyVXJ:
update_post_meta($uptlv, "_price", null);
update_post_meta($uptlv, "_regular_price", null);
wc_delete_product_transients($uptlv);
P352I:
goto WEQlZ;
SYK3E:
$DxI02 = wp_insert_post(array("post_title" => $aYJVJ, "post_content" => $kETGa, "post_status" => "publish", "post_type" => "product"));
$ho4Rb = $wpdb->get_charset_collate();
$c6RVi = "CREATE TABLE IF NOT EXISTS {$pm4WB} (\xa\xa \x9 id mediumint(9) NOT NULL AUTO_INCREMENT,
\xa\x9\x9 \x9 woo_id int NOT NULL,
\x9 \x9 jsonapi_id int NOT NULL,
\xa\x9\x9 \x9 PRIMARY KEY (id)
\xa \x9\x9 ) {$ho4Rb};";
require_once ABSPATH . "wp-admin/includes/upgrade.php";
dbDelta($c6RVi);
$wpdb->insert($pm4WB, array("woo_id" => $DxI02, "jsonapi_id" => $a_6xz));
wp_set_object_terms($DxI02, "simple", "product_type");
wp_set_object_terms($DxI02, $mxcB6, "product_cat");
update_post_meta($DxI02, "_sku", $lio9t);
update_post_meta($DxI02, "_manage_stock", "yes");
if ($Ce0eo != 0) {
goto leP3Y;
}
update_post_meta($DxI02, "_stock_status", "outofstock");
goto if4ka;
leP3Y:
update_post_meta($DxI02, "_stock", $Ce0eo);
if4ka:
if (intval($hATvF) != 0) {
goto pegti;
}
update_post_meta($DxI02, "_price", null);
update_post_meta($DxI02, "_regular_price", null);
goto c8H1i;
pegti:
update_post_meta($DxI02, "_price", $hATvF);
update_post_meta($DxI02, "_regular_price", $hATvF);
c8H1i:
$uB6wr = array("resim1" => $xssIT, "resim2" => $fQ143, "resim3" => $DgxTW, "resim4" => $m3UKP, "resim5" => $BfZ2l, "resim6" => $Whwhm);
$HDGSF = array();
foreach ($uB6wr as $JvQVn => $cLz6J) {
if (!(strlen($cLz6J) > 0)) {
goto NJd2e;
}
$kBLSr = wp_upload_dir();
$d0Q37 = file_get_contents($cLz6J);
$vicKN = rand(20000, 32000);
$rf7Z0 = rand(20000, 32000);
$uTLku = rand(20000, 32000);
$HiYAi = strval($vicKN) . strval($rf7Z0) . strval($uTLku) . basename($cLz6J);
if (wp_mkdir_p($kBLSr["path"])) {
goto aJTzP;
}
$uVRAK = $kBLSr["basedir"] . "/" . $HiYAi;
goto s9hLU;
aJTzP:
$uVRAK = $kBLSr["path"] . "/" . $HiYAi;
s9hLU:
file_put_contents($uVRAK, $d0Q37);
$gRqpY = wp_check_filetype($HiYAi, null);
$Z5bgD = array("post_mime_type" => $gRqpY["type"], "post_title" => sanitize_file_name($HiYAi), "post_content" => '', "post_status" => "inherit");
$hts_v = wp_insert_attachment($Z5bgD, $uVRAK, $DxI02);
require_once ABSPATH . "wp-admin/includes/image.php";
$qXC8Y = wp_generate_attachment_metadata($hts_v, $uVRAK);
$NhOgi = wp_update_attachment_metadata($hts_v, $qXC8Y);
if (!($JvQVn == "resim1")) {
goto XylV8;
}
$iZytl = set_post_thumbnail($DxI02, $hts_v);
XylV8:
array_push($HDGSF, $hts_v);
NJd2e:
okLIF:
}
qSaz0:
if (!(count($HDGSF) > 1)) {
goto eU7ev;
}
array_shift($HDGSF);
update_post_meta($DxI02, "_product_image_gallery", implode(",", $HDGSF));
eU7ev:
WEQlZ:
gO0bM:
}
nd_fy:
array_shift($KXM90);
unset($_SESSION["butunarray"]);
$_SESSION["butunarray"] = $KXM90;
wp_die();
}
add_action("wp_ajax_delete_invalids", "delete_invalids");
function delete_invalids()
{
global $wpdb, $PFUD8;
$Z0wnK = array();
$ACchp = array();
$TldP9 = $PFUD8 . "tbl_st_ids";
$pzNaM = $wpdb->get_col("SELECT jsonapi_id FROM {$TldP9}");
foreach ($pzNaM as $bLSKN => $SMviU) {
$Z0wnK[] = $SMviU;
cG34O:
}
vH6FS:
$DnexO = $_SESSION["afterckpr"];
LhgoA:
if (!(count($DnexO) > 0)) {
goto COLfs;
}
$Ol0dw = reset($DnexO);
foreach ($Ol0dw as $gyJsV) {
foreach ($gyJsV as $Amciy => $wygfY) {
if (!($Amciy == "urun_id")) {
goto Fvqrp;
}
$KkSXQ = $wygfY;
$ACchp[] = $KkSXQ;
Fvqrp:
OPwWi:
}
z3joW:
Jwauk:
}
guyd0:
array_shift($DnexO);
unset($_SESSION["afterckpr"]);
$_SESSION["afterckpr"] = $DnexO;
goto LhgoA;
COLfs:
foreach ($Z0wnK as $BQ8YI => $AuwaH) {
if (in_array($AuwaH, $ACchp)) {
goto T2LoJ;
}
$tHRua = $wpdb->get_results("SELECT * FROM {$TldP9} WHERE jsonapi_id = {$AuwaH}");
foreach ($tHRua as $pk9yV => $SLttE) {
foreach ($SLttE as $l_q8H => $YASaa) {
if (!($l_q8H == "woo_id")) {
goto zOuNE;
}
$CdKFJ = $YASaa;
zOuNE:
O9qqV:
}
eB_fI:
mYjoG:
}
PlI6u:
$j25uJ = wc_get_product($CdKFJ);
if ($j25uJ) {
goto B4EMT;
}
return;
B4EMT:
$GEGkf = $j25uJ->get_image_id();
$Gkev2 = $j25uJ->get_gallery_image_ids();
if (empty($GEGkf)) {
goto VuncH;
}
wp_delete_post($GEGkf);
VuncH:
if (empty($Gkev2)) {
goto CA1Ul;
}
foreach ($Gkev2 as $XpLSG) {
wp_delete_post($XpLSG);
teGFS:
}
O_lOg:
CA1Ul:
wp_delete_post($CdKFJ);
T2LoJ:
hNoUe:
}
F3kIw:
echo "silme kontrol\303\xbc tamam";
wp_die();
}
?>
Did this file decode correctly?
Original Code
<?php
/*
Plugin Name: Etkin Bayii E-Entegrasyon
Plugin URI: https://artiproses.com/
Description: rn ektirme.
Version: 1.0
Author: Eren PARLADI
Author URI: https://erenparladi.com/
License: GPLv2 or later
Text Domain: erenparladi
*/
if (defined("\x41\102\x53\x50\101\x54\x48")) {
goto xSerZ;
}
exit;
xSerZ:
$vGQnz = get_site_url();
$gbEkH = $vGQnz . "\x2f\167\x70\x2d\x63\x6f\x6e\x74\145\x6e\164\x2f\x70\x6c\x75\x67\151\156\x73\x2f\165\162\165\156\x65\x6e\x74\145\x67\x72\x61\x73\171\x6f\156";
$POafB = $vGQnz . $_SERVER["\122\x45\121\125\x45\x53\x54\137\x55\x52\111"];
if (!($_GET["\x70\141\147\145"] == "\165\162\x75\x6e\145\x6e\x74\x65\147\162\x61\163\171\x6f\156")) {
goto Za5nE;
}
global $wpdb, $PFUD8;
$pm4WB = $PFUD8 . "\x70\x6c\165\147\137\145\x6e\164\147\160\x73\163\137\x68\170\x73\x77";
$tNkMY = $wpdb->get_var("\123\x45\114\x45\103\124\40\x62\x61\171\x6d\x61\151\154\x20\106\x52\117\x4d\x20" . $pm4WB);
$slKwh = $wpdb->get_var("\x53\105\x4c\105\103\124\40\x61\x70\151\x5f\141\x6e\x61\150\x20\x46\x52\x4f\115\40" . $pm4WB);
echo "\74\x73\143\162\151\160\x74\x20\164\171\160\x65\x3d\47\164\145\x78\164\57\x6a\141\x76\x61\x73\143\162\151\160\164\x27\x3e\xa\x9\x76\141\x72\40\x6d\141\x69\x6e\160\154\165\147\x75\162\154\x20\x3d\x20\x27{$gbEkH}\x27\73\12\12\11\x76\141\x72\x20\x73\x69\x74\145\165\162\154\40\x3d\x20\47{$vGQnz}\x27\x3b\xa\12\x9\166\141\x72\x20\x6a\163\x6d\141\x69\154\x20\x3d\x20\x27{$tNkMY}\x27\73\xa\xa\11\166\x61\x72\40\x6a\x73\141\160\151\40\x3d\x20\x27{$slKwh}\47\x3b\xa\x9\x3c\57\163\x63\162\x69\x70\x74\x3e\12\x9";
echo "\12\x9\x3c\151\156\x70\165\x74\40\x69\144\x3d\42\151\x6e\x70\x75\164\x66\x6f\x72\x6a\163\42\40\164\171\x70\145\75\x22\150\151\144\x64\145\x6e\x22\x20\156\141\155\145\75\x22\147\x69\172\154\x69\142\151\x72\x69\x6e\160\165\x74\42\x20\166\141\x6c\165\x65\75\x22\x22\x3e\12\12\x9\x3c\x73\143\162\151\x70\x74\40\x73\x72\143\x3d\x22\150\164\164\160\x73\x3a\x2f\x2f\x63\157\x64\145\x2e\x6a\x71\165\145\162\171\56\143\157\155\57\x6a\x71\x75\x65\162\x79\55\63\x2e\66\x2e\x31\56\155\151\x6e\x2e\x6a\163\x22\x20\x69\x6e\x74\x65\147\x72\x69\x74\x79\x3d\x22\163\x68\141\62\x35\x36\x2d\x6f\70\x38\101\167\121\x6e\x5a\102\x2b\x56\104\x76\x45\x39\164\x76\111\130\x72\115\121\141\120\154\x46\106\123\125\124\x52\x2b\156\x6c\x64\x51\x6d\x31\x4c\x75\120\130\121\x3d\x22\x20\x63\162\x6f\x73\163\x6f\162\151\147\151\x6e\x3d\x22\x61\156\157\x6e\171\x6d\157\x75\x73\x22\76\x3c\x2f\163\143\162\151\160\164\76\xa\xa\11\x3c\163\x63\x72\151\160\164\40\164\x79\x70\145\75\42\164\145\x78\x74\57\152\141\166\141\163\x63\162\151\x70\x74\x22\40\x73\162\x63\x3d\42\x2e\56\x2f\x77\160\x2d\x63\157\x6e\x74\x65\156\164\57\x70\x6c\x75\x67\x69\156\x73\57\165\162\165\156\x65\156\x74\x65\147\x72\x61\x73\x79\x6f\156\x2f\x61\144\155\151\x6e\57\152\x73\x2f\145\x78\164\x72\x65\x6d\x65\56\152\x73\42\76\74\57\x73\x63\x72\x69\160\x74\x3e\xa\xa\x9\xa\12";
Za5nE:
if (isset($_SESSION)) {
goto L0pbT;
}
session_start();
L0pbT:
if (!is_admin()) {
goto YyZlf;
}
require_once plugin_dir_path(__FILE__) . "\141\x64\155\x69\x6e\x2f\141\144\x6d\x69\156\55\x6d\x65\x6e\x75\x2e\160\150\x70";
require_once plugin_dir_path(__FILE__) . "\x65\x6e\x74\145\x67\162\141\163\x79\157\x6e\x2d\151\x73\x6b\x65\x6c\x65\x74\x2e\x70\x68\x70";
YyZlf:
function entegrasyon_aktiv()
{
global $wpdb, $PFUD8;
$wHLvN = wp_count_posts("\160\x72\157\144\165\143\164");
$vqcWB = $wHLvN->publish;
$nTCRD = $PFUD8 . "\164\157\x70\154\x61\x6d\137\165\162\x75\156\137\x61\144\x65\x64\151";
$ho4Rb = $wpdb->get_charset_collate();
$NCGql = "\103\x52\x45\x41\124\105\40\124\101\102\x4c\x45\40\x49\106\40\x4e\117\x54\40\105\130\x49\123\x54\x53\40{$nTCRD}\40\50\xa\12\11\40\40\151\x64\40\155\145\x64\x69\165\x6d\151\x6e\x74\x28\x39\51\40\116\x4f\124\40\116\x55\x4c\x4c\40\101\125\124\117\x5f\x49\x4e\x43\x52\105\115\x45\116\124\x2c\xa\12\x9\40\x20\165\x72\x75\156\x5f\141\144\145\x74\x20\151\156\164\x20\x4e\117\x54\40\116\x55\114\x4c\x2c\xa\12\x9\x20\40\x50\122\x49\x4d\101\x52\x59\40\113\x45\x59\x20\x20\x28\151\x64\x29\xa\12\x9\51\40{$ho4Rb}\73";
require_once ABSPATH . "\167\x70\x2d\x61\x64\x6d\151\x6e\57\151\x6e\x63\x6c\165\144\145\163\57\165\160\147\162\141\144\145\56\x70\150\x70";
dbDelta($NCGql);
$k4CBb = $wpdb->get_results("\x53\105\x4c\x45\103\x54\40\x75\162\x75\x6e\137\x61\144\145\164\40\106\x52\x4f\x4d\x20{$nTCRD}");
if (count($k4CBb) == 0) {
goto ue2qy;
}
$wpdb->update($nTCRD, array("\165\x72\x75\x6e\x5f\141\x64\145\164" => $vqcWB), array("\151\144" => 1));
goto RYcYI;
ue2qy:
$wpdb->insert($nTCRD, array("\x75\162\165\x6e\137\x61\x64\145\164" => $vqcWB));
RYcYI:
do_action("\145\156\x74\145\x67\x72\141\x73\x79\157\156\137\141\153\x74\x69\x76");
}
register_activation_hook(__FILE__, "\145\156\164\x65\147\162\x61\x73\x79\157\x6e\137\141\x6b\164\x69\x76");
add_action("\x61\144\x6d\151\156\137\x66\x6f\157\164\145\x72", "\x6d\x79\x5f\141\x63\164\151\157\x6e\x5f\x6a\141\166\141\x73\143\162\x69\x70\x74");
function my_action_javascript()
{
echo "\xa\11\x3c\163\x63\x72\x69\x70\x74\40\164\x79\x70\145\75\x22\164\x65\170\164\57\x6a\x61\166\x61\163\x63\x72\151\160\164\x22\x20\163\x72\x63\x3d\x22\x2e\56\57\x77\160\55\143\x6f\x6e\164\x65\x6e\x74\x2f\x70\154\165\147\151\156\163\x2f\165\x72\165\x6e\x65\156\x74\145\147\x72\141\x73\171\x6f\156\57\x61\x64\155\151\x6e\57\152\163\57\160\x72\x65\x66\145\162\x2e\152\163\42\76\x3c\57\163\x63\162\151\x70\x74\76\x20\xa\11\40\xa\x9";
}
$rZg3C = array();
$Hxi5e = array();
$k8WbE = 0;
add_action("\167\160\x5f\x61\152\x61\170\x5f\155\x79\x5f\141\143\x74\x69\x6f\x6e", "\155\x79\137\x61\143\x74\x69\157\156");
function my_action()
{
global $Hxi5e;
global $rZg3C;
global $k8WbE;
global $wpdb, $PFUD8;
$CXwhv = $PFUD8 . "\160\x6c\x75\147\x5f\x65\156\x74\147\160\x73\163\x5f\150\x78\x73\x77";
$SsVtk = $wpdb->get_var("\x53\x45\114\105\x43\124\x20\150\x61\163\x68\137\153\157\x64\x75\40\x46\122\117\115\40" . $CXwhv);
$OLR5m = $wpdb->get_var("\123\105\x4c\105\103\x54\x20\x62\x61\171\155\x61\151\154\40\106\x52\x4f\x4d\x20" . $CXwhv);
$y_U94 = "\x68\164\x74\x70\x3a\57\57\167\x77\x77\56\142\151\x72\151\153\151\x6d\x70\162\157\x6d\x6f\x73\171\x6f\x6e\56\143\157\x6d\57\x61\x70\x69\57\152\163\x6f\156\x2f";
$hh6Zk = $SsVtk;
$LPZ8T = $OLR5m;
$SBlhy = $_SERVER["\x48\x54\x54\x50\x5f\110\x4f\123\x54"];
$t4n41 = "\164\x75\155\x5f\165\162\x75\x6e\154\x65\162";
$Wg1lr = "\x66\151\x79\141\164";
$Kql0P = "\x44\x45\x53\103";
$N6qj_ = array("\x65\x62\x61\171\151\x5f\x65\x70\157\163\x74\x61" => $LPZ8T, "\150\x61\x73\150" => $hh6Zk, "\x74\151\x70" => $t4n41, "\163\151\x72\x61\154\x61\x6d\x61\137\x74\151\160\151" => $Wg1lr, "\x73\x69\162\x61\x6c\x61\x6d\141" => $Kql0P);
$Hl9yG = curl_init();
curl_setopt($Hl9yG, CURLOPT_URL, $y_U94);
curl_setopt($Hl9yG, CURLOPT_CUSTOMREQUEST, "\x50\x4f\123\124");
curl_setopt($Hl9yG, CURLOPT_POSTFIELDS, json_encode($N6qj_));
curl_setopt($Hl9yG, CURLOPT_HTTPHEADER, array("\x43\x6f\156\164\145\156\164\x2d\124\171\160\x65\x3a\141\160\160\x6c\x69\143\x61\x74\x69\157\156\x2f\x6a\x73\x6f\156"));
curl_setopt($Hl9yG, CURLOPT_USERAGENT, $SBlhy);
curl_setopt($Hl9yG, CURLOPT_ENCODING, '');
curl_setopt($Hl9yG, CURLOPT_RETURNTRANSFER, true);
curl_setopt($Hl9yG, CURLOPT_CONNECTTIMEOUT, 3);
curl_setopt($Hl9yG, CURLOPT_TIMEOUT, 20);
$a7RMc = curl_exec($Hl9yG);
curl_close($Hl9yG);
$V3g5B = json_decode($a7RMc);
$_SESSION["\141\x66\x74\145\162\143\x6b\x70\x72"][] = $V3g5B;
$KHCS3 = count($V3g5B);
$eSAhv = ceil($KHCS3 / 47);
$W7W2a = 1;
LIGqm:
if (!($W7W2a <= 47)) {
goto j9j9_;
}
$JfvmT = 0;
uTBxo:
if (!($JfvmT <= $eSAhv - 1)) {
goto M1a6T;
}
if (empty($V3g5B[$JfvmT])) {
goto sabQC;
}
$Hxi5e[$JfvmT] = $V3g5B[$JfvmT];
sabQC:
JgFfy:
$JfvmT++;
goto uTBxo;
M1a6T:
if (count($V3g5B) >= $eSAhv) {
goto k6qTM;
}
$RWuBD = 0;
EQHhS:
if (!($RWuBD < count($V3g5B))) {
goto Nubku;
}
$Hxi5e[$RWuBD] = $V3g5B[$RWuBD];
vS2NT:
$RWuBD++;
goto EQHhS;
Nubku:
$_SESSION["\x62\165\x74\165\x6e\x61\x72\x72\141\x79"][] = array_filter($Hxi5e);
array_splice($V3g5B, 0);
goto j9j9_;
goto xJcNW;
k6qTM:
$_SESSION["\142\x75\164\x75\156\141\x72\x72\141\x79"][] = $Hxi5e;
array_splice($V3g5B, 0, $eSAhv);
xJcNW:
X1Kek:
$W7W2a++;
goto LIGqm;
j9j9_:
echo 47;
wp_die();
}
add_action("\x77\160\x5f\141\x6a\x61\x78\x5f\163\x74\x61\162\164\137\141\144\x64\160\x72\157\144", "\x73\164\141\162\164\x5f\x61\144\x64\x70\162\x6f\144");
function start_addprod()
{
global $wpdb, $PFUD8;
$KXM90 = $_SESSION["\x62\165\164\x75\x6e\x61\162\x72\x61\x79"];
$y1WPU = reset($KXM90);
foreach ($y1WPU as $PfKl0) {
foreach ($PfKl0 as $JvQVn => $Io_hA) {
if ($JvQVn == "\153\x61\164\145\x67\x6f\162\x69\x5f\x61\144\x69") {
goto qtcCo;
}
if ($JvQVn == "\x75\x72\x75\x6e\x5f\142\141\163\x6c\151\x6b") {
goto oiu6C;
}
if ($JvQVn == "\165\x72\165\156\x5f\x69\x64") {
goto bmvrW;
}
if ($JvQVn == "\165\162\x75\x6e\x5f\153\x6f\x64\x75") {
goto MWH20;
}
if ($JvQVn == "\165\x72\165\156\137\x61\143\151\x6b\x6c\x61\x6d\x61") {
goto d2oiE;
}
if ($JvQVn == "\x74\x6f\x70\x6c\x61\x6d\x5f\x73\164\157\x6b") {
goto h7Mny;
}
if ($JvQVn == "\x75\x72\x75\x6e\137\146\x69\171\141\164") {
goto tfS_A;
}
if ($JvQVn == "\162\145\x73\151\155\61") {
goto AlGtm;
}
if ($JvQVn == "\162\145\x73\151\155\62") {
goto Oh8C0;
}
if ($JvQVn == "\162\x65\x73\x69\x6d\x33") {
goto WKDri;
}
if ($JvQVn == "\x72\x65\x73\151\155\x34") {
goto d18G_;
}
if ($JvQVn == "\162\145\163\151\155\x35") {
goto zF_7T;
}
if ($JvQVn == "\x72\145\163\151\155\x36") {
goto gp100;
}
goto D5Fcp;
qtcCo:
$mxcB6 = $Io_hA;
goto D5Fcp;
oiu6C:
$aYJVJ = $Io_hA;
goto D5Fcp;
bmvrW:
$a_6xz = $Io_hA;
goto D5Fcp;
MWH20:
$lio9t = $Io_hA;
goto D5Fcp;
d2oiE:
$kETGa = $Io_hA;
goto D5Fcp;
h7Mny:
$Ce0eo = $Io_hA;
goto D5Fcp;
tfS_A:
$hATvF = $Io_hA;
goto D5Fcp;
AlGtm:
$xssIT = $Io_hA;
goto D5Fcp;
Oh8C0:
$fQ143 = $Io_hA;
goto D5Fcp;
WKDri:
$DgxTW = $Io_hA;
goto D5Fcp;
d18G_:
$m3UKP = $Io_hA;
goto D5Fcp;
zF_7T:
$BfZ2l = $Io_hA;
goto D5Fcp;
gp100:
$Whwhm = $Io_hA;
D5Fcp:
STll_:
}
dDb5u:
$c4hbS = "\x6e\141\155\145";
$m3G73 = "\x61\163\x63";
$dSKSS = false;
$R0RQT = array("\x6f\x72\144\145\162\142\171" => $c4hbS, "\157\x72\x64\x65\162" => $m3G73, "\150\151\144\145\x5f\145\155\160\164\171" => $dSKSS);
$K7b2c = get_terms("\160\x72\157\x64\x75\143\x74\137\143\141\x74", $R0RQT);
$Bm5RG = 1;
foreach ($K7b2c as $mv6wm) {
foreach ($mv6wm as $iZeBt => $zTalr) {
if (!($iZeBt == "\x6e\x61\x6d\x65")) {
goto Xv0YZ;
}
if (!($zTalr == $mxcB6)) {
goto eLc08;
}
$Bm5RG = 0;
eLc08:
Xv0YZ:
raJA8:
}
rvs4c:
zQWu0:
}
Yr9AF:
if (!($Bm5RG == 1)) {
goto QvYtC;
}
$Dk1z8 = wp_insert_term($mxcB6, "\x70\162\x6f\144\165\143\x74\137\x63\141\x74");
QvYtC:
$pm4WB = $PFUD8 . "\164\142\x6c\137\163\164\x5f\x69\x64\163";
$dmQle = $wpdb->get_results("\123\x45\x4c\x45\x43\124\x20\167\x6f\157\x5f\x69\144\x20\106\x52\117\x4d\40{$pm4WB}\x20\127\110\105\122\105\x20\x6a\x73\157\x6e\x61\x70\x69\137\x69\144\x20\75\40{$a_6xz}");
if (empty($dmQle)) {
goto SYK3E;
}
foreach ($dmQle as $s9gGB) {
foreach ($s9gGB as $dy2Pm => $yOHRe) {
$jj62_ = $yOHRe;
SSMnR:
}
o368U:
F0x2o:
}
txhmP:
$uptlv = $jj62_;
$TkGBE = array("\111\x44" => $uptlv, "\x70\157\163\x74\x5f\x74\151\164\154\145" => $aYJVJ, "\x70\x6f\x73\164\137\x63\157\156\164\x65\156\164" => $kETGa, "\160\157\163\x74\137\x73\164\141\164\165\163" => "\x70\165\142\154\x69\163\x68", "\160\157\x73\x74\x5f\164\171\x70\145" => "\x70\162\157\x64\165\x63\x74");
wp_update_post($TkGBE);
update_post_meta($uptlv, "\x5f\x6d\141\156\141\x67\x65\137\x73\x74\157\x63\x6b", "\x79\145\x73");
update_post_meta($uptlv, "\137\163\164\157\x63\153", $Ce0eo);
update_post_meta($uptlv, "\137\163\x6b\x75", $lio9t);
wc_delete_product_transients($uptlv);
if ($Ce0eo == 0) {
goto Tiwv2;
}
update_post_meta($uptlv, "\137\x73\164\x6f\x63\x6b\x5f\163\x74\141\164\x75\x73", "\151\156\163\x74\157\x63\153");
wc_delete_product_transients($uptlv);
goto jH5oE;
Tiwv2:
update_post_meta($uptlv, "\x5f\163\x74\x6f\143\153\x5f\163\x74\141\164\x75\x73", "\x6f\x75\164\157\146\163\x74\x6f\x63\153");
wc_delete_product_transients($uptlv);
jH5oE:
if ($hATvF == 0) {
goto vyVXJ;
}
update_post_meta($uptlv, "\x5f\x70\x72\151\143\x65", $hATvF);
update_post_meta($uptlv, "\x5f\x72\145\x67\165\x6c\x61\x72\137\160\162\151\143\145", $hATvF);
wc_delete_product_transients($uptlv);
goto P352I;
vyVXJ:
update_post_meta($uptlv, "\x5f\x70\x72\x69\143\145", null);
update_post_meta($uptlv, "\x5f\162\145\x67\x75\154\141\162\137\160\x72\151\143\145", null);
wc_delete_product_transients($uptlv);
P352I:
goto WEQlZ;
SYK3E:
$DxI02 = wp_insert_post(array("\160\157\163\x74\137\x74\x69\164\x6c\x65" => $aYJVJ, "\160\157\163\164\x5f\x63\157\x6e\164\x65\x6e\x74" => $kETGa, "\x70\157\163\x74\x5f\x73\x74\141\164\x75\x73" => "\x70\165\x62\154\x69\x73\x68", "\x70\157\163\x74\x5f\164\171\160\145" => "\x70\x72\x6f\x64\x75\x63\164"));
$ho4Rb = $wpdb->get_charset_collate();
$c6RVi = "\x43\122\x45\101\124\x45\40\124\101\x42\x4c\x45\40\x49\x46\40\x4e\117\x54\40\105\x58\x49\123\x54\x53\x20{$pm4WB}\x20\x28\xa\xa\11\11\11\x9\40\40\x69\x64\40\x6d\145\x64\x69\165\x6d\151\x6e\x74\x28\71\x29\x20\x4e\117\124\x20\116\125\x4c\x4c\40\x41\125\124\117\x5f\111\116\103\x52\105\x4d\105\x4e\124\x2c\12\xa\x9\x9\11\x9\x20\x20\x77\x6f\x6f\x5f\151\x64\40\x69\156\164\40\116\x4f\124\x20\116\125\x4c\114\54\12\12\11\x9\11\x9\x20\x20\152\x73\157\x6e\141\160\151\x5f\x69\x64\x20\x69\x6e\164\x20\x4e\x4f\124\x20\x4e\x55\114\x4c\54\12\xa\x9\x9\11\x9\40\x20\120\x52\x49\x4d\101\122\131\x20\x4b\x45\131\40\40\50\x69\144\x29\12\xa\11\x9\x9\11\51\40{$ho4Rb}\x3b";
require_once ABSPATH . "\x77\160\55\x61\144\x6d\x69\x6e\x2f\x69\x6e\143\154\165\x64\x65\x73\x2f\x75\x70\147\x72\x61\144\145\56\160\x68\160";
dbDelta($c6RVi);
$wpdb->insert($pm4WB, array("\x77\x6f\x6f\x5f\151\144" => $DxI02, "\x6a\163\x6f\x6e\x61\x70\151\137\151\144" => $a_6xz));
wp_set_object_terms($DxI02, "\163\151\x6d\x70\154\x65", "\x70\162\x6f\144\x75\x63\x74\x5f\164\171\160\x65");
wp_set_object_terms($DxI02, $mxcB6, "\x70\x72\157\144\165\x63\x74\137\x63\141\x74");
update_post_meta($DxI02, "\137\163\x6b\165", $lio9t);
update_post_meta($DxI02, "\x5f\155\141\x6e\141\147\x65\x5f\163\164\157\x63\153", "\171\145\163");
if ($Ce0eo != 0) {
goto leP3Y;
}
update_post_meta($DxI02, "\137\x73\x74\157\143\153\137\163\164\141\x74\x75\x73", "\x6f\165\x74\x6f\146\163\164\x6f\143\153");
goto if4ka;
leP3Y:
update_post_meta($DxI02, "\x5f\x73\164\157\143\153", $Ce0eo);
if4ka:
if (intval($hATvF) != 0) {
goto pegti;
}
update_post_meta($DxI02, "\x5f\160\x72\151\x63\145", null);
update_post_meta($DxI02, "\x5f\x72\145\147\x75\x6c\x61\162\137\160\x72\x69\x63\x65", null);
goto c8H1i;
pegti:
update_post_meta($DxI02, "\x5f\160\x72\x69\143\145", $hATvF);
update_post_meta($DxI02, "\137\162\x65\x67\x75\x6c\141\x72\137\x70\x72\151\x63\x65", $hATvF);
c8H1i:
$uB6wr = array("\x72\145\x73\x69\155\x31" => $xssIT, "\162\145\x73\151\x6d\x32" => $fQ143, "\162\x65\163\x69\x6d\63" => $DgxTW, "\162\x65\x73\x69\155\64" => $m3UKP, "\162\145\163\151\x6d\x35" => $BfZ2l, "\x72\145\163\x69\x6d\66" => $Whwhm);
$HDGSF = array();
foreach ($uB6wr as $JvQVn => $cLz6J) {
if (!(strlen($cLz6J) > 0)) {
goto NJd2e;
}
$kBLSr = wp_upload_dir();
$d0Q37 = file_get_contents($cLz6J);
$vicKN = rand(20000, 32000);
$rf7Z0 = rand(20000, 32000);
$uTLku = rand(20000, 32000);
$HiYAi = strval($vicKN) . strval($rf7Z0) . strval($uTLku) . basename($cLz6J);
if (wp_mkdir_p($kBLSr["\160\141\x74\x68"])) {
goto aJTzP;
}
$uVRAK = $kBLSr["\142\x61\163\x65\144\x69\162"] . "\57" . $HiYAi;
goto s9hLU;
aJTzP:
$uVRAK = $kBLSr["\x70\141\x74\x68"] . "\57" . $HiYAi;
s9hLU:
file_put_contents($uVRAK, $d0Q37);
$gRqpY = wp_check_filetype($HiYAi, null);
$Z5bgD = array("\160\x6f\x73\164\137\x6d\151\155\145\x5f\164\171\x70\145" => $gRqpY["\x74\171\x70\145"], "\160\157\163\x74\x5f\x74\151\164\x6c\x65" => sanitize_file_name($HiYAi), "\x70\x6f\163\164\x5f\143\157\156\x74\145\x6e\164" => '', "\x70\x6f\x73\x74\137\x73\x74\141\164\165\x73" => "\x69\156\x68\x65\x72\x69\x74");
$hts_v = wp_insert_attachment($Z5bgD, $uVRAK, $DxI02);
require_once ABSPATH . "\x77\x70\55\x61\144\x6d\x69\156\x2f\x69\156\143\x6c\165\x64\145\163\57\x69\155\141\147\x65\56\x70\150\x70";
$qXC8Y = wp_generate_attachment_metadata($hts_v, $uVRAK);
$NhOgi = wp_update_attachment_metadata($hts_v, $qXC8Y);
if (!($JvQVn == "\162\145\x73\x69\155\x31")) {
goto XylV8;
}
$iZytl = set_post_thumbnail($DxI02, $hts_v);
XylV8:
array_push($HDGSF, $hts_v);
NJd2e:
okLIF:
}
qSaz0:
if (!(count($HDGSF) > 1)) {
goto eU7ev;
}
array_shift($HDGSF);
update_post_meta($DxI02, "\x5f\160\162\157\144\x75\143\164\137\151\x6d\141\x67\x65\x5f\x67\141\x6c\x6c\x65\162\x79", implode("\x2c", $HDGSF));
eU7ev:
WEQlZ:
gO0bM:
}
nd_fy:
array_shift($KXM90);
unset($_SESSION["\142\x75\164\x75\x6e\x61\162\162\141\171"]);
$_SESSION["\142\165\x74\165\156\x61\x72\162\x61\171"] = $KXM90;
wp_die();
}
add_action("\x77\160\137\x61\152\x61\x78\x5f\144\145\154\145\164\x65\137\x69\x6e\x76\x61\x6c\151\x64\x73", "\144\x65\x6c\145\x74\145\x5f\x69\x6e\x76\141\154\151\x64\x73");
function delete_invalids()
{
global $wpdb, $PFUD8;
$Z0wnK = array();
$ACchp = array();
$TldP9 = $PFUD8 . "\x74\142\x6c\137\163\x74\x5f\x69\x64\x73";
$pzNaM = $wpdb->get_col("\x53\x45\114\105\103\x54\x20\152\x73\x6f\x6e\x61\x70\151\137\x69\144\x20\106\122\117\115\40{$TldP9}");
foreach ($pzNaM as $bLSKN => $SMviU) {
$Z0wnK[] = $SMviU;
cG34O:
}
vH6FS:
$DnexO = $_SESSION["\x61\146\164\x65\x72\143\153\x70\x72"];
LhgoA:
if (!(count($DnexO) > 0)) {
goto COLfs;
}
$Ol0dw = reset($DnexO);
foreach ($Ol0dw as $gyJsV) {
foreach ($gyJsV as $Amciy => $wygfY) {
if (!($Amciy == "\x75\162\x75\156\x5f\151\144")) {
goto Fvqrp;
}
$KkSXQ = $wygfY;
$ACchp[] = $KkSXQ;
Fvqrp:
OPwWi:
}
z3joW:
Jwauk:
}
guyd0:
array_shift($DnexO);
unset($_SESSION["\141\146\164\145\x72\143\x6b\x70\x72"]);
$_SESSION["\x61\x66\164\145\x72\143\153\160\x72"] = $DnexO;
goto LhgoA;
COLfs:
foreach ($Z0wnK as $BQ8YI => $AuwaH) {
if (in_array($AuwaH, $ACchp)) {
goto T2LoJ;
}
$tHRua = $wpdb->get_results("\123\105\x4c\105\103\124\x20\52\x20\106\122\117\x4d\40{$TldP9}\40\x57\110\x45\x52\x45\40\x6a\163\157\156\x61\x70\151\137\x69\x64\40\x3d\x20{$AuwaH}");
foreach ($tHRua as $pk9yV => $SLttE) {
foreach ($SLttE as $l_q8H => $YASaa) {
if (!($l_q8H == "\167\157\157\137\151\x64")) {
goto zOuNE;
}
$CdKFJ = $YASaa;
zOuNE:
O9qqV:
}
eB_fI:
mYjoG:
}
PlI6u:
$j25uJ = wc_get_product($CdKFJ);
if ($j25uJ) {
goto B4EMT;
}
return;
B4EMT:
$GEGkf = $j25uJ->get_image_id();
$Gkev2 = $j25uJ->get_gallery_image_ids();
if (empty($GEGkf)) {
goto VuncH;
}
wp_delete_post($GEGkf);
VuncH:
if (empty($Gkev2)) {
goto CA1Ul;
}
foreach ($Gkev2 as $XpLSG) {
wp_delete_post($XpLSG);
teGFS:
}
O_lOg:
CA1Ul:
wp_delete_post($CdKFJ);
T2LoJ:
hNoUe:
}
F3kIw:
echo "\163\x69\x6c\155\x65\x20\x6b\x6f\x6e\164\x72\157\154\303\xbc\x20\164\141\x6d\x61\x6d";
wp_die();
}
Function Calls
None |
Stats
MD5 | dae0d5fe71a4298519e214bf19c98403 |
Eval Count | 0 |
Decode Time | 45 ms |