Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php if (count($HTTP_GET_VARS) > 0) { $_GET = $HTTP_GET_VARS; } ?><html> ..
Decoded Output download
<?php
if (count($HTTP_GET_VARS) > 0) {
$_GET = $HTTP_GET_VARS;
}
?><html>
<head><title>Test of form self submission</title></head>
<body>
<form>
<input type="hidden" name="secret" value="Wrong form">
</form>
<p>[<?php print $_GET['visible']; ?>]</p>
<p>[<?php print $_GET['secret']; ?>]</p>
<p>[<?php print $_GET['again']; ?>]</p>
<form>
<input type="text" name="visible">
<input type="hidden" name="secret" value="Submitted">
<input type="submit" name="again">
</form>
<!-- Bad form closing tag --></form>
</body>
</html>
Did this file decode correctly?
Original Code
<?php
if (count($HTTP_GET_VARS) > 0) {
$_GET = $HTTP_GET_VARS;
}
?><html>
<head><title>Test of form self submission</title></head>
<body>
<form>
<input type="hidden" name="secret" value="Wrong form">
</form>
<p>[<?php print $_GET['visible']; ?>]</p>
<p>[<?php print $_GET['secret']; ?>]</p>
<p>[<?php print $_GET['again']; ?>]</p>
<form>
<input type="text" name="visible">
<input type="hidden" name="secret" value="Submitted">
<input type="submit" name="again">
</form>
<!-- Bad form closing tag --></form>
</body>
</html>
Function Calls
count | 1 |
Stats
MD5 | fa1d902566526b8c5494d734b5631333 |
Eval Count | 0 |
Decode Time | 85 ms |