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

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Authentication: KO (invalid key) --CGI-- --INI-- spx.http_enabled=1 spx.http_key=..

Decoded Output download

--TEST--
Authentication: KO (invalid key)
--CGI--
--INI--
spx.http_enabled=1
spx.http_key="dev"
spx.http_ip_whitelist="127.0.0.1"
log_errors=on
--ENV--
return <<<END
REMOTE_ADDR=127.0.0.1
REQUEST_URI=/
END;
--GET--
SPX_KEY=dev1&SPX_UI_URI=/data/metrics
--FILE--
<?php
echo 'Normal output';
?>
--EXPECT--
Notice: SPX: access not granted: server ("dev") & client ("dev1") key mismatch in Unknown on line 0
Normal output

Did this file decode correctly?

Original Code

--TEST--
Authentication: KO (invalid key)
--CGI--
--INI--
spx.http_enabled=1
spx.http_key="dev"
spx.http_ip_whitelist="127.0.0.1"
log_errors=on
--ENV--
return <<<END
REMOTE_ADDR=127.0.0.1
REQUEST_URI=/
END;
--GET--
SPX_KEY=dev1&SPX_UI_URI=/data/metrics
--FILE--
<?php
echo 'Normal output';
?>
--EXPECT--
Notice: SPX: access not granted: server ("dev") & client ("dev1") key mismatch in Unknown on line 0
Normal output

Function Calls

None

Variables

None

Stats

MD5 6ea436cfb464f5af32256c03e2747d95
Eval Count 0
Decode Time 78 ms