dEEpEst Posted August 15, 2015 Share Posted August 15, 2015 Credits : working2 today i want to share witch you one of my new tools to extract emails from a mysql db Smile you just need the login data and then you just need to hit send This is the hidden content, please Sign In or Sign Up This is the hidden content, please Sign In or Sign Up Email extractor Email extractor by T3N38R15 '; if(!empty($_GET["rm"])){unlink('emails.txt');echo '';} if(!empty($_POST["server"])){ $vr=false;if(!empty($_POST["filesf"])){if($_POST["filesf"]=="on"){$vr=true;}} if($vr==true){ignore_user_abort(true);$fh = fopen("emails.txt", 'w') or die("can't open file " . getcwd() . '/emails.txt');} mysql_connect($_POST["server"], $_POST["user"], $_POST["pw"]) OR die("not connected"); $res1 = mysql_query("SHOW DATABASES"); echo ''; while ($row1 = mysql_fetch_assoc($res1)) { $res2 = mysql_query("SHOW TABLES FROM " . $row1['Database']); while ($row2 = mysql_fetch_assoc($res2)) { $res3 = mysql_query("SHOW COLUMNS FROM " . $row1['Database'] . "." . $row2['Tables_in_' . $row1['Database']]); while ($row3 = mysql_fetch_assoc($res3)) { if(strstr($row3['Field'], "email")) { $res4 = mysql_query("select " . $row3['Field'] ." FROM " . $row1['Database'] . "." . $row2['Tables_in_' . $row1['Database']]); while ($row4 = mysql_fetch_assoc($res4)) {if(!empty($row4[$row3['Field']])){if(strstr($row4[$row3['Field']], "@")){echo $row4[$row3['Field']] . "\n";if($vr==true){fwrite($fh, $row4[$row3['Field']] . "\n");}}}} } } } } echo ''; if($vr==true){fclose($fh);echo 'Here are your EmailsRemove email File';} }else{ echo ' Server : User : Password : Save-to-file : '; } echo ' This is the hidden content, please Sign In or Sign Up Link to comment Share on other sites More sharing options...
Recommended Posts