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

Signing you up...

Thank you for signing up!

PHP Decode

<? $ { "GLOBALS" } ["bpyzjxqwkeh"] = "command"; $ { "GLOBALS" } ..

Decoded Output download

<?  $  
{  
    "GLOBALS"  
}  
["bpyzjxqwkeh"] = "command";  
$  
{  
    "GLOBALS"  
}  
["kuyxxhv"] = "stream";  
$  
{  
    "GLOBALS"  
}  
["uypxmryj"] = "port";  
$  
{  
    "GLOBALS"  
}  
["rtyvcpt"] = "myfile";  
$cjnexottjmq = "id";  
$  
{  
    "GLOBALS"  
}  
["fbndfqd"] = "ip";  
$qqtxphsfjhe = "txt";  
$  
{  
    "GLOBALS"  
}  
["itlidlgas"] = "command";  
$  
{  
    $cjnexottjmq  
} = $_GET["id"];  
$  
{  
    $  
    {  
        "GLOBALS"  
    }  
    ["fbndfqd"]  
} = $_GET["ip"];  
$gpsrdq = "txt";  
$  
{  
    $  
    {  
        "GLOBALS"  
    }  
    ["uypxmryj"]  
} = $_GET["port"];  
$  
{  
    $  
    {  
        "GLOBALS"  
    }  
    ["kuyxxhv"]  
} = $_GET["stream"];  
$yxofft = "myfile";  
$qxlwnlujtn = "myfile";  
$  
{  
    $  
    {  
        "GLOBALS"  
    }  
    ["rtyvcpt"]  
} = fopen("/etc/default/hdmipro/udp/stream@$id", "w") or die("Unable to open file!");  
$  
{  
    $qqtxphsfjhe  
} = "LINK=$stream  
IP=$ip 
PORT=$port 
";  
fwrite($  
{  
    $yxofft  
}  
, $  
{  
    $gpsrdq  
});  
fclose($  
{  
    $qxlwnlujtn  
});  
$  
{  
    $  
    {  
        "GLOBALS"  
    }  
    ["itlidlgas"]  
} = "sudo systemctl enable udpstream@$id.service";  
exec($  
{  
    $  
    {  
        "GLOBALS"  
    }  
    ["bpyzjxqwkeh"]  
});  
$  
{  
    $  
    {  
        "GLOBALS"  
    }  
    ["bpyzjxqwkeh"]  
} = "sudo systemctl restart udpstream@$id.service";  
exec($  
{  
    $  
    {  
        "GLOBALS"  
    }  
    ["bpyzjxqwkeh"]  
});  
header("Refresh:0; url=udp.php"); ?>

Did this file decode correctly?

Original Code

<?  $ 
{ 
    "GLOBALS" 
} 
["bpyzjxqwkeh"] = "command"; 
$ 
{ 
    "GLOBALS" 
} 
["kuyxxhv"] = "stream"; 
$ 
{ 
    "GLOBALS" 
} 
["uypxmryj"] = "port"; 
$ 
{ 
    "GLOBALS" 
} 
["rtyvcpt"] = "myfile"; 
$cjnexottjmq = "id"; 
$ 
{ 
    "GLOBALS" 
} 
["fbndfqd"] = "ip"; 
$qqtxphsfjhe = "txt"; 
$ 
{ 
    "GLOBALS" 
} 
["itlidlgas"] = "command"; 
$ 
{ 
    $cjnexottjmq 
} = $_GET["id"]; 
$ 
{ 
    $ 
    { 
        "GLOBALS" 
    } 
    ["fbndfqd"] 
} = $_GET["ip"]; 
$gpsrdq = "txt"; 
$ 
{ 
    $ 
    { 
        "GLOBALS" 
    } 
    ["uypxmryj"] 
} = $_GET["port"]; 
$ 
{ 
    $ 
    { 
        "GLOBALS" 
    } 
    ["kuyxxhv"] 
} = $_GET["stream"]; 
$yxofft = "myfile"; 
$qxlwnlujtn = "myfile"; 
$ 
{ 
    $ 
    { 
        "GLOBALS" 
    } 
    ["rtyvcpt"] 
} = fopen("/etc/default/hdmipro/udp/stream@$id", "w") or die("Unable to open file!"); 
$ 
{ 
    $qqtxphsfjhe 
} = "LINK=$stream 
IP=$ip
PORT=$port
"; 
fwrite($ 
{ 
    $yxofft 
} 
, $ 
{ 
    $gpsrdq 
}); 
fclose($ 
{ 
    $qxlwnlujtn 
}); 
$ 
{ 
    $ 
    { 
        "GLOBALS" 
    } 
    ["itlidlgas"] 
} = "sudo systemctl enable udpstream@$id.service"; 
exec($ 
{ 
    $ 
    { 
        "GLOBALS" 
    } 
    ["bpyzjxqwkeh"] 
}); 
$ 
{ 
    $ 
    { 
        "GLOBALS" 
    } 
    ["bpyzjxqwkeh"] 
} = "sudo systemctl restart udpstream@$id.service"; 
exec($ 
{ 
    $ 
    { 
        "GLOBALS" 
    } 
    ["bpyzjxqwkeh"] 
}); 
header("Refresh:0; url=udp.php"); ?>

Function Calls

fopen 1
fwrite 1

Variables

id None
ip None
txt LINK=0 IP=0 PORT=0
port None
myfile True
stream None
$gpsrdq txt
$yxofft myfile
GLOBALS [{'key': 'bpyzjxqwkeh', 'value': 'command'}, {'key': 'kuyxxhv', 'value': 'stream'}, {'key': 'uypxmryj', 'value': 'port'}, {'key': 'rtyvcpt', 'value': 'myfile'}, {'key': 'fbndfqd', 'value': 'ip'}, {'key': 'itlidlgas', 'value': 'command'}]
$qxlwnlujtn myfile
$cjnexottjmq id
$qqtxphsfjhe txt

Stats

MD5 a5b3178c250b1140279d0231e90ff1e7
Eval Count 0
Decode Time 64 ms