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 IP address) --CGI-- --INI-- spx.http_enabled=1 spx.ht..

Decoded Output download

--TEST--
Authentication: KO (invalid IP address)
--CGI--
--INI--
spx.http_enabled=1
spx.http_key="dev"
spx.http_ip_whitelist="127.0.0.1,127.0.0.2,127.0.0.3"
log_errors=on
--ENV--
return <<<END
REMOTE_ADDR=127.0.0.21
REQUEST_URI=/
END;
--GET--
SPX_KEY=dev&SPX_UI_URI=/data/metrics
--FILE--
<?php
echo 'Normal output';
?>
--EXPECT--
Notice: SPX: access not granted: "127.0.0.21" IP is not in white list ("127.0.0.1,127.0.0.2,127.0.0.3") in Unknown on line 0
Normal output

Did this file decode correctly?

Original Code

--TEST--
Authentication: KO (invalid IP address)
--CGI--
--INI--
spx.http_enabled=1
spx.http_key="dev"
spx.http_ip_whitelist="127.0.0.1,127.0.0.2,127.0.0.3"
log_errors=on
--ENV--
return <<<END
REMOTE_ADDR=127.0.0.21
REQUEST_URI=/
END;
--GET--
SPX_KEY=dev&SPX_UI_URI=/data/metrics
--FILE--
<?php
echo 'Normal output';
?>
--EXPECT--
Notice: SPX: access not granted: "127.0.0.21" IP is not in white list ("127.0.0.1,127.0.0.2,127.0.0.3") in Unknown on line 0
Normal output

Function Calls

None

Variables

None

Stats

MD5 b1b53939a4b0a6b71f5b3864ab8acda9
Eval Count 0
Decode Time 83 ms