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-- Python: Default streams --SKIPIF-- <?php if (!extension_loaded('python')) die("sk..
Decoded Output download
--TEST--
Python: Default streams
--SKIPIF--
<?php if (!extension_loaded('python')) die("skip
");
--FILE--
<?php
$py = <<<EOT
print "Line 1"
print "Line 2"
print "Line 3"
EOT;
echo "Output Buffering - Start
";
ob_start();
python_exec($py);
$output = ob_get_contents();
echo "Output Buffering - End
";
echo "Captured Output
";
echo $output;
--EXPECT--
Output Buffering - Start
Line 1
Line 2
Line 3
Output Buffering - End
Captured Output
Line 1
Line 2
Line 3
?>
Did this file decode correctly?
Original Code
--TEST--
Python: Default streams
--SKIPIF--
<?php if (!extension_loaded('python')) die("skip\n");
--FILE--
<?php
$py = <<<EOT
print "Line 1"
print "Line 2"
print "Line 3"
EOT;
echo "Output Buffering - Start\n";
ob_start();
python_exec($py);
$output = ob_get_contents();
echo "Output Buffering - End\n";
echo "Captured Output\n";
echo $output;
--EXPECT--
Output Buffering - Start
Line 1
Line 2
Line 3
Output Buffering - End
Captured Output
Line 1
Line 2
Line 3
Function Calls
None |
Stats
MD5 | 02c3e29b001917dd01fe89983fec5fe8 |
Eval Count | 0 |
Decode Time | 98 ms |