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 reverse proxy IP address) --CGI-- --INI-- spx.http_en..
Decoded Output download
--TEST--
Authentication: KO (invalid reverse proxy IP address)
--CGI--
--INI--
spx.http_enabled=1
spx.http_key="dev"
spx.http_ip_var="HTTP_X_FORWARDED_FOR"
spx.http_trusted_proxies="127.0.0.2,127.0.0.3,127.0.0.4"
spx.http_ip_whitelist="127.0.0.5"
log_errors=on
--ENV--
return <<<END
REMOTE_ADDR=127.0.0.31
HTTP_X_FORWARDED_FOR=127.0.0.5
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.31' is not a trusted proxy in Unknown on line 0
Normal output
Did this file decode correctly?
Original Code
--TEST--
Authentication: KO (invalid reverse proxy IP address)
--CGI--
--INI--
spx.http_enabled=1
spx.http_key="dev"
spx.http_ip_var="HTTP_X_FORWARDED_FOR"
spx.http_trusted_proxies="127.0.0.2,127.0.0.3,127.0.0.4"
spx.http_ip_whitelist="127.0.0.5"
log_errors=on
--ENV--
return <<<END
REMOTE_ADDR=127.0.0.31
HTTP_X_FORWARDED_FOR=127.0.0.5
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.31' is not a trusted proxy in Unknown on line 0
Normal output
Function Calls
None |
Stats
MD5 | 1c8c728e84cc8f44d53f2c7f1986564c |
Eval Count | 0 |
Decode Time | 75 ms |