Smiley face
Smiley face

Friday, April 11, 2014

Email Extractor

Email-Extractor From DataBase ;)


<?
set_time_limit
(0); error_reporting(0); ?> <html> 
<head> 
<title>Email-Extractor</title> 
</head> 
<style type="text/css"> 
body{ 
background-color: black; 
color: #BBBBBB; 
font-family: Lucida Console,Tahoma; 
font-size: 11px; 
text-align: left; 


input,select,textarea,table,button { 
background: none repeat scroll 0 0 #000000; 
border: 1px solid #990000; 
color: #FFFFFF; 
margin: 0; 
font-family: Lucida Console,Tahoma; 
font-size: 11px; 
padding: 2px 4px; 


input:hover, textarea:hover, select:hover, button:hover { 
background: none repeat scroll 0 0 #220000; 
border: 1px solid #FF0000; 


option { 
background: none repeat scroll 0 0 #000000; 

a{ 
text-decoration: none; 


</style> 
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script> 
<script type="text/JavaScript"> 
$(document).ready(function(){ 
$('pre').fadeIn(3000); 

$('input***91;type="text"***93;').click(function(){ 
$(this).val(''); 
}); 



}); 

</script> 

<body> 

<center><pre style="display: none;"><font color="white"> 
 _____                    _  _         _____        _                      _                
| ____| _ __ ___    __ _ (_)| |       | ____|__  __| |_  _ __  __ _   ___ | |_  ___   _ __  
|  _|  | '_ ` _ \  / _` || || | _____ |  _|  \ \/ /| __|| '__|/ _` | / __|| __|/ _ \ | '__| 
| |___ | | | | | || (_| || || ||_____|| |___  >  < | |_ | |  | (_| || (__ | |_| (_) || |    
|_____||_| |_| |_| \__,_||_||_|       |_____|/_/\_\ \__||_|   \__,_| \___| \__|\___/ |_|    
                                                                                        
</pre></font></center> 
<br/><br/><br/><br/>   
<?php function emailExtractor($host_name,$user,$pass,$dbname,$ColumnName,$TableName)
{

$dz_connect = @mysqli_connect($host_name,$user,$pass);

if(!
$dz_connect){
echo 
"<center><font color='red'><b>Please Check The Information To Connect To The Database! <br /><br /> 
<a href='javascript:history.back()'><input type='button' value='Go Back'></a></b></font></center>"
;
die();
}


$dz_db mysqli_select_db($dz_connect,$dbname);

if(!
$dz_db){
echo 
"<center><font color='red'><b>Please Choose The Right Name Of Database!<br/><br/><a href='javascript:history.back()'><input type='button' value='Go Back'></a></b></font></center>";
die();
}

$get_emails mysqli_query($dz_connect,"SELECT DISTINCT $ColumnName From $TableName") or die("<center><font color='red'><b>Check the Column_Name OR Table_Name!<br/><br/><a href='javascript:history.back()'><input type='button' value='Go Back'></a></b></font></center>"); $num_emails mysqli_affected_rows($dz_connect);

echo 
"<center><font color='white' size='4'>There is : <font color='red' size='4'>$num_emails</font> Email</font><br/><br/></center><center><textarea rows='20' cols='50'>";
while(
$imen mysqli_fetch_array($get_emails)){
echo 
$imen***91;email***93;."\n";
}
echo 
"</textarea></a><br/><br/><a href='javascript:history.back()'><input type='button' value='Go Back'></center>";



}


$host_name  $_POST***91;'host_name'***93;; $username   $_POST***91;'user'***93;; $pass       $_POST***91;'pass'***93;; $dbname     $_POST***91;'dbname'***93;; $columnname $_POST***91;'ColumnName'***93;; $tablename  $_POST***91;'TableName'***93;;

if(isset(
$host_name,$username,$pass,$dbname,$columnname,$tablename) && $_POST***91;'getemails'***93;)
emailExtractor($host_name,$username,$pass,$dbname,$columnname,$tablename);
}else{ 
?> <center> 

<table width="40%" style='border-color:green;background-color:#200000;'> 
<tr><td><center> 
<br/><br/><br/><br/> 

<form action="" method="POST"> 
<input type="text" size="30" name="host_name" title="write the name of the server" value="localhost"> 
<br/><br/> 
<input type="text" size="30" name="user" title="write the username of the database" value="Username"> 
<br/><br/> 
<input type="text" size="30" name="pass" title="write the password of the database" value="Password"> 
<br/><br/> 
<input type="text" size="30" name="dbname" title="write the name of the database" value="Database Name"> 
<br/><br/> 
<input type="text" size="30" name="ColumnName" title="write the column name" value="Column Name"> 
<br/><br/> 
<input type="text" size="30" name="TableName" title="write the table name" value="Table Name"> 
<br/><br/> 
<input type="submit" name="getemails" value="Get the information"> 
</form> 
<br/><br/><br/><br/> 
</center></td></tr> 

</table></center> 
<?}?> <center><b><br />Coded By <a href="https://twitter.com/walidnaceri" target="twitter"><font color="gray">Walid</font></a> Visite us for more tools on  
<a href="http://security-dz.com" target="security-dz"><font color="gray">Security-Dz</font></a><a href="http://security-dz.com/contact-me"> click here to contact me</a></b></center> 


</body> 
</html>


0 Comments:

Post a Comment

Smiley face
Smiley face