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

Signing you up...

Thank you for signing up!

PHP Decode

#!/usr/bin/php <?php function y($m) { $m = preg_replace("/\./", " x ", $m); $m = preg_re..

Decoded Output download

#!/usr/bin/php 
<?php 
function y($m) { $m = preg_replace("/\./", " x ", $m); $m = preg_replace("/@/", " y", $m); return $m; } 
function x($y, $z) { $a = file_get_contents($y); $a = preg_replace("/(\[x (.*)\])/e", "y(\"\2\")", $a); $a = preg_replace("/\[/", "(", $a); $a = preg_replace("/\]/", ")", $a); return $a; } 
$r = x($argv[1], $argv[2]); print $r; 
?>

Did this file decode correctly?

Original Code

#!/usr/bin/php
<?php
function y($m) { $m = preg_replace("/\./", " x ", $m); $m = preg_replace("/@/", " y", $m); return $m; }
function x($y, $z) { $a = file_get_contents($y); $a = preg_replace("/(\[x (.*)\])/e", "y(\"\\2\")", $a); $a = preg_replace("/\[/", "(", $a); $a = preg_replace("/\]/", ")", $a); return $a; }
$r = x($argv[1], $argv[2]); print $r;
?>

Function Calls

x 1
preg_replace 3
file_get_contents 1

Variables

$a
$r
$y None
$z None

Stats

MD5 c0bc6387716f7084b969511dc811f51e
Eval Count 0
Decode Time 108 ms