Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


#!/usr/bin/php -q


 goto ZjU6Y; vd4F8: foreach ($mJ9KD as $MLu05 => $vmsvp) { goto cl37C; WOUJ8: $YXcCo = ''; goto QaDaM; vOgf5: usleep(50000); goto mVmil; gVfeo: usleep(50000); goto RwnyC; IwAbP: ryOh_($MLu05); goto mI_Po; TKJaF: $xpDZ0 = true; goto WOUJ8; fEiOs: if ($YXcCo == "dn") { goto kHWO5; } goto ZmvQH; C__C7: XB8ac: goto W_L8l; aWN7W: kNEWb("<span style='color:red'>Création d'une alarme sur l'entree {$MLu05}</span>"); goto T7uta; vx7pZ: k9NWN: goto d6LFT; qkjYj: tVvs8("ALARMENCOURS" . $MLu05, "1"); goto meRQU; t4ZsI: $Y36oO = microtime(true); goto TKJaF; t_0Om: ATB0J: goto C__C7; GRilU: N5z3A: goto QI1J5; oHWyb: yiKD8: goto ZNFv_; d6LFT: if (KXepQ($MLu05) == false) { goto phI8p; } goto pJjDE; hsY6Y: goto KhpHe; goto GRilU; mI_Po: goto ATB0J; goto ZzB5K; mVmil: $YXcCo = NsLLv($MLu05); goto aWugJ; tYGO3: LSehs("/home/videonet/core/processevent.php " . $MLu05, "eventlog" . $MLu05, "pideventlog"); goto yYGZ5; QI1J5: if (!(kxepQ($MLu05) == false)) { goto elGES; } goto gVfeo; T7uta: KNEwb("Verrouillage de l'entrée " . $MLu05); goto qkjYj; KZg64: if ($YXcCo == "dn") { goto N5z3A; } goto BZxUK; meRQU: LFA0h($MLu05); goto tYGO3; p3dm3: kHWO5: goto Iz2U9; Iz2U9: if (Vt1D_("ALARMENCOURS" . $MLu05) != "1") { goto k9NWN; } goto pTczi; yYGZ5: bYglk: goto OJJE3; ZzB5K: Q0ZTw: goto t4ZsI; BZxUK: KNEwb("Annulation de l'alarme sur {$MLu05} durée de commutation 1 insuffisante ({$YXcCo}) " . round((microtime(true) - $Y36oO) * 1000) . " ms"); goto hsY6Y; pTczi: goto Qf8Oa; goto vx7pZ; BNWzY: phI8p: goto aWN7W; Itmz2: elGES: goto fEiOs; IQhN5: goto yiKD8; goto p3dm3; aWugJ: ZW7W1: goto KZg64; ZNFv_: KhpHe: goto t_0Om; pJjDE: goto bYglk; goto BNWzY; RwnyC: $YXcCo = NsLLv($MLu05); goto Itmz2; cl37C: if ($vmsvp == "dn" && $MLu05 <= $vkML3["NBCANAUX"]) { goto Q0ZTw; } goto IwAbP; QaDaM: if (!(kxepq($MLu05) == false)) { goto ZW7W1; } goto vOgf5; ZmvQH: kNewB("Annulation de l'alarme sur {$MLu05} durée de commutation 2 insuffisante ({$YXcCo}) " . round((microtime(true) - $Y36oO) * 1000) . " ms"); goto IQhN5; OJJE3: Qf8Oa: goto oHWyb; W_L8l: } goto IASGj; VdjZX: m_9Uc(); goto kK3DP; S0G2H: $M4Hi4 = microtime(true); goto miMnB; t4ORn: $BP3Kv = ''; goto FwpmX; L3bGa: chdir("/home/videonet/core/"); goto gdISR; Ej2zD: include "./config.php"; goto VdjZX; IydEl: function h47Bn($KEh_N) { goto tDTwc; YKv2b: $l1wve = microtime(true); goto bH_l6; tDTwc: global $M4Hi4; goto KEK4Z; U4k3G: $TSSEP = microtime(true); goto cXgzY; cXgzY: echo "\xa" . round(($TSSEP - $M4Hi4) * 1000) . " (+" . round(($TSSEP - $l1wve) * 1000) . ") : " . $KEh_N . "
"; goto YKv2b; KEK4Z: global $l1wve; goto U4k3G; bH_l6: } goto NjEwa; odXvQ: include "./config.php"; goto wnCyh; miMnB: $l1wve = $M4Hi4; goto IydEl; WZr3v: goto oVC3d; goto V03W6; wnCyh: $mJ9KD = nsLlv("all"); goto rWhPs; UZ8Nd: error_reporting(0); goto L3bGa; Bc3f_: oVC3d: goto Z4MdO; rWhPs: file_put_contents("/home/videonet/core/pid2/veno.serialize", serialize($mJ9KD), LOCK_EX) or print_r(error_get_last()); goto vd4F8; CkAJe: function NSLLV($Gn8CP = "all") { goto MLdPI; Zrrkp: file_put_contents("./pid2/data1", $f3ERR); goto jLC4d; n1q2F: $oeqdT = $oeqdT + 8; goto PHr5c; Fa01H: return $mJ9KD; goto PgnsD; twA3t: if (is_numeric($Gn8CP)) { goto c_jiq; } goto Fa01H; PHr5c: F1Kf3: goto PoJ8A; zX0En: $HZPda++; goto z60Gm; wd7Ju: $Ej5Mr = tOsWb("./serialuniv " . escapeshellarg($wrMsO), 0.5); goto STVaK; Jaov_: azHt3: goto IFNTD; gcwWh: $Ej5Mr = toSWb("./serialuniv " . escapeshellarg($wrMsO), 0.5); goto nlXr6; JWm14: if (!file_exists("/dev/serial/by-path/pcih00:.0-usbh:1:1.0-port0")) { goto FhKO3; } goto pv3xy; BroVZ: $Ej5Mr = toSWb("./serialuniv " . escapeshellarg($wrMsO), 0.5); goto CUeiz; PoJ8A: if (!file_exists("/dev/serial/by-path/pci-0000:00:1dp-usb-0:1.1t:1.0-port0")) { goto XfY7b; } goto hwH5d; IpNqP: cWG61: goto BxM3R; g2OYP: c_jiq: goto yCyx0; x9Ixm: $HZPda = 0; goto Pl77c; ZXES1: $f3ERR = array_map("trim", $f3ERR); goto OBttC; xIpZm: $Ej5Mr = array_filter($Ej5Mr); goto n1q2F; hR9wc: if (!file_exists("/dev/serial/by-path/pci-000:1d.0-usb-0:1.1.2:1.0-port0")) { goto F1Kf3; } goto f1mf0; xXVO5: if (!(count($Ej5Mr) == 8)) { goto MRXbr; } goto NUyum; XQyfn: $LxnEU = 3.8; goto x9Ixm; WP7bM: $HZPda++; goto Cy5c6; qdSFv: DEojs: goto hR9wc; hwH5d: $wrMsO = "/dev/serial/by-path/pci-00:00:1d.0-usb-0:1.1.4:1.0-port0"; goto xOKMF; VAol3: if (!file_exists("/dev/serial/by-path/pcih000:00:14.0-usb-0:1r:1p-port0")) { goto DEojs; } goto Ipr2N; aeqtR: $wrMsO = "/dev/serial/by-path/pci-0000::15.0-usb-0:2.0-port0"; goto ig_e3; nlXr6: $Ej5Mr = explode(PHP_EOL, $Ej5Mr); goto f0yaF; Cy5c6: $f3ERR = TOSWB("./serialuniv " . escapeshellarg($Qzk4t), 0.5); goto CAPIQ; tVTXB: Fkxf7: goto JWm14; pv3xy: $Qzk4t = "/dev/serial/by-path/pci-00:00:15.0-usb-0:1.0-port0"; goto Avkrv; BWZ80: $Ej5Mr = array_filter($f3ERR); goto Sgrca; inQBT: $oeqdT = $oeqdT + 8; goto mvdcq; FMEDa: $HZPda++; goto GBXzB; myW1e: $f3ERR = array_map("trim", $f3ERR); goto Tdegf; YQI0z: $mJ9KD = (array) null; goto XQyfn; OBttC: $f3ERR = array_filter($f3ERR); goto RPdmb; iqxeY: $REvFA = 8; goto VAol3; n52HB: $oeqdT = 0; goto BRwER; z60Gm: $Ej5Mr = tosWb("./serialuniv " . escapeshellarg($wrMsO), 0.5); goto muRLa; muRLa: $Ej5Mr = explode(PHP_EOL, $Ej5Mr); goto EqbnO; R5zCG: LL5AI: goto AX43C; QO_mE: $Ej5Mr = array_filter($Ej5Mr); goto inQBT; yCyx0: return $mJ9KD[$Gn8CP]; goto IpNqP; S4dn1: $f3ERR = array_filter($f3ERR); goto RuY88; JHzLV: $oeqdT = $oeqdT + 8; goto tVTXB; RPdmb: $oeqdT = $oeqdT + 8; goto R5zCG; G7Yxm: $f3ERR = array_filter($f3ERR); goto JHzLV; UC3Xm: $f3ERR = tOSWB("./serialuniv " . escapeshellarg($Qzk4t), 0.5); goto rdC_R; wqzXo: $Qzk4t = "/dev/serial/by-path/pcih0::1dp-usbh:1.1.3:1.0-port0"; goto FMEDa; INPCw: MRXbr: goto twA3t; EqbnO: $Ej5Mr = array_map("trim", $Ej5Mr); goto xIpZm; RuY88: $oeqdT = $oeqdT + 8; goto Jaov_; YRN97: MZDp1: goto iqxeY; xOKMF: $HZPda++; goto gcwWh; Tdegf: $f3ERR = array_filter($f3ERR); goto EvncB; QFqI0: $Qzk4t = "/dev/serial/by-path/pci-00::14.0-usbh.1:1.0-port0"; goto WP7bM; IFNTD: if (!file_exists("/dev/serial/by-path/pci-000:1d.0-usb-0:1q.1:1.0-port0")) { goto LL5AI; } goto B7u_H; T7z3d: $f3ERR = array_map("trim", $f3ERR); goto G7Yxm; MLdPI: $REvFA = 0; goto n52HB; B7u_H: $Qzk4t = "/dev/serial/by-path/pci-:00:1d.0-usb-0.1q:1.0-port0"; goto mJOp3; Ts6T8: $f3ERR = explode(PHP_EOL, $f3ERR); goto ZXES1; UoHVL: $HZPda++; goto BroVZ; mJOp3: $HZPda++; goto KJzPk; qSgEr: FhKO3: goto iLbSg; l2gbm: $Ej5Mr = array_map("trim", $f3ERR); goto BWZ80; sC1VN: XfY7b: goto t03I1; iaNoD: $oeqdT = $oeqdT + 8; goto sC1VN; Pl77c: if (!file_exists("/dev/serial/by-path/pci-0000::14p-usb-0:1.1:1.0-port0")) { goto azHt3; } goto QFqI0; f1mf0: $wrMsO = "/dev/serial/by-path/pci-0000:00d.0-usbh:1q.2:1p-port0"; goto zX0En; iLbSg: if (!(count($f3ERR) == 8)) { goto MZDp1; } goto Zrrkp; rdC_R: $f3ERR = explode(PHP_EOL, $f3ERR); goto myW1e; EvncB: $oeqdT = $oeqdT + 8; goto qSgEr; mvdcq: jUsxB: goto xXVO5; KJzPk: $f3ERR = toswB("./serialuniv " . escapeshellarg($Qzk4t), 0.5); goto Ts6T8; kvE9S: $Ej5Mr = array_map("trim", $Ej5Mr); goto QO_mE; jLC4d: foreach ($f3ERR as $s3Wix => $yxGfo) { goto VasE4; mesrQ: Hs8L3: goto H5y25; H7GHe: jx6G7: goto Ng5lE; H5y25: WjFWz: goto eptDX; reWCq: goto VQCjk; goto H7GHe; zdIDU: $mJ9KD[$REvFA] = "up"; goto reWCq; tsgoJ: if (floatval($yxGfo) < $LxnEU) { goto jx6G7; } goto zdIDU; VasE4: if (!($s3Wix >= 0 && $s3Wix < $oeqdT)) { goto Hs8L3; } goto qtslg; qtslg: $REvFA++; goto tsgoJ; Ng5lE: $mJ9KD[$REvFA] = "dn"; goto k2T_k; k2T_k: VQCjk: goto mesrQ; eptDX: } goto b2AzO; b2AzO: ddVlz: goto YRN97; f0yaF: $Ej5Mr = array_map("trim", $Ej5Mr); goto cV020; ig_e3: $HZPda++; goto wd7Ju; PgnsD: goto cWG61; goto g2OYP; BRwER: $f3ERR = ''; goto TzISm; fS8wH: $f3ERR = explode(PHP_EOL, $f3ERR); goto T7z3d; u172H: foreach ($Ej5Mr as $s3Wix => $yxGfo) { goto uoGIm; fKFOx: if (floatval($yxGfo) < $LxnEU) { goto hkX4M; } goto WBOqz; VVzk3: $REvFA++; goto fKFOx; A7hsV: nPUBf: goto NA9JD; ZJ8x3: $mJ9KD[$REvFA] = "dn"; goto A7hsV; uoGIm: if (!($s3Wix >= 0 && $s3Wix < $oeqdT)) { goto ZjXGj; } goto VVzk3; jF1zy: hkX4M: goto ZJ8x3; Y610A: goto nPUBf; goto jF1zy; NA9JD: ZjXGj: goto H9W8w; WBOqz: $mJ9KD[$REvFA] = "up"; goto Y610A; H9W8w: QfqjJ: goto SZjGq; SZjGq: } goto ZZCtL; Sgrca: $oeqdT = $oeqdT + 8; goto qdSFv; ZZCtL: DnbTA: goto INPCw; CAPIQ: $f3ERR = explode(PHP_EOL, $f3ERR); goto PKIFf; PKIFf: $f3ERR = array_map("trim", $f3ERR); goto S4dn1; Avkrv: $HZPda++; goto UC3Xm; Ipr2N: $wrMsO = "/dev/serial/by-path/pci-00:00:14.0-usb-0:1.2:1p-port0"; goto UoHVL; GBXzB: $f3ERR = tOSwb("./serialuniv " . escapeshellarg($Qzk4t), 0.5); goto fS8wH; TzISm: $Ej5Mr = ''; goto YQI0z; STVaK: $Ej5Mr = explode(PHP_EOL, $Ej5Mr); goto kvE9S; cV020: $Ej5Mr = array_filter($Ej5Mr); goto iaNoD; CUeiz: $Ej5Mr = explode(PHP_EOL, $f3ERR); goto l2gbm; AX43C: if (!file_exists("/dev/serial/by-path/pci-00:00:1d.0-usb-0.1.3:1.0-port0")) { goto Fkxf7; } goto wqzXo; NUyum: file_put_contents("./pid2/data2", $Ej5Mr); goto u172H; t03I1: if (!file_exists("/dev/serial/by-path/pcih00:.0-usb-0:2:1.0-port0")) { goto jUsxB; } goto aeqtR; BxM3R: } goto Bc3f_; A1XYO: file_put_contents("./pid2/currentserialized.php", serialize($mJ9KD)); goto NpIuL; q4y0_: include "./config.php"; goto S0G2H; NjEwa: function ab6Lg($cpOV_) { goto RRgyP; RRgyP: $Gn8CP = "<table>"; goto O6hM3; aS6DX: BNDoZ: goto s1H4Z; s1H4Z: $Gn8CP .= "</table>"; goto lOgrZ; lOgrZ: return $Gn8CP; goto ZLPH9; O6hM3: foreach ($cpOV_ as $s3Wix => $L06Rc) { goto dMbwC; J6KbB: $Gn8CP .= "</tr>"; goto hqs1Y; wa5OD: $Gn8CP .= "<td>" . $s3Wix . "</td><td>" . $L06Rc . "</td>"; goto J6KbB; hqs1Y: jelkx: goto ywHPh; dMbwC: $Gn8CP .= "<tr>"; goto wa5OD; ywHPh: } goto aS6DX; ZLPH9: } goto CkAJe; IASGj: N2kcP: goto xMvFe; Y33_i: $REvFA = 0; goto t4ORn; WpiM4: $oeqdT = 0; goto Y33_i; gdISR: include "../web/fonctions.php"; goto q4y0_; kK3DP: $E5FEV = ''; goto rhgrV; xMvFe: file_put_contents("./pid2/current.php", ab6LG($mJ9KD)); goto A1XYO; JK0iK: ini_set("display_startup_errors", 0); goto UZ8Nd; Z4MdO: if (!1) { goto nibGn; } goto Ej2zD; rhgrV: unset($mJ9KD); goto WpiM4; ZjU6Y: ini_set("display_errors", 0); goto JK0iK; NpIuL: usleep(100000); goto WZr3v; FwpmX: $HZPda = 0; goto odXvQ; V03W6: nibGn:



© 2023 Quttera Ltd. All rights reserved.