Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $includes = array(
- 'some text',
- '<?php print "some text"; ?>',
- '<?php print "some text";',
- 'some text<?php',
- 'some text<?php ',
- 'some text<?php;',
- 'some text<?php ?>',
- '<?php ?>some text',
- );
- $tempFile = tempnam('/tmp', 'test_');
- print "\r\n" . "Include:" . "\r\n";
- foreach ($includes as $include)
- {
- file_put_contents($tempFile, $include);
- var_dump(include $tempFile);
- }
- unlink($tempFile);
- print "\r\n" . "Eval 1:" . "\r\n";
- foreach ($includes as $include)
- var_dump(eval('?>' . $include . '<?php '));
- print "\r\n" . "Eval 2:" . "\r\n";
- foreach ($includes as $include)
- var_dump(eval('?>' . $include));
- print "\r\n" . "Eval 3:" . "\r\n";
- foreach ($includes as $include)
- var_dump(eval('?>' . $include . '<?php;'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement