<?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>Tony Virelli - Web Developer - HTML, xHTML, PHP, MySQL, JavaScript&#187; Blog</title>
	<atom:link href="http://tonyvirelli.com/category/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://tonyvirelli.com</link>
	<description>Tony Virelli - I share the information I have dealing with web design, technology, the internet and more</description>
	<lastBuildDate>Fri, 20 Aug 2010 13:31:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>New Digg v4 &#8211; I got invite codes!</title>
		<link>http://tonyvirelli.com/2010/08/19/new-digg-v4-i-got-invite-codes/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=new-digg-v4-i-got-invite-codes</link>
		<comments>http://tonyvirelli.com/2010/08/19/new-digg-v4-i-got-invite-codes/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 02:48:25 +0000</pubDate>
		<dc:creator>Tony Virelli</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[invite]]></category>
		<category><![CDATA[new]]></category>

		<guid isPermaLink="false">http://tonyvirelli.com/?p=589</guid>
		<description><![CDATA[Want an invite code to the new Digg.com? Of course you do! I got 4 more invites left! I am going to post the link below and the first 4 lucky people who click the link WIN! (Sorry would have had 5 but had to give one to John!) Invite Code Link: http://new.digg.com/login/bd4e2a073cfea23691b29eb6a85be8a07 (You have [...]]]></description>
			<content:encoded><![CDATA[<p>Want an invite code to the new Digg.com? Of course you do!<br />
<span id="more-589"></span><br />
I got 4 more invites left! I am going to post the link below and the first 4 lucky people who click the link WIN! (Sorry would have had 5 but had to give one to John!)</p>
<p>Invite Code Link:<br />
http://new.digg.com/login/bd4e2a073cfea23691b29eb6a85be8a07  (You have to copy and paste it. Don&#8217;t want any bots clicking the link and wasting it!)</p>
<p>If you you get an account via my link above leave a comment to let me know!</p>
<p><!--2c77de14c55e40afb5f2e9db727629a8--></p>
]]></content:encoded>
			<wfw:commentRss>http://tonyvirelli.com/2010/08/19/new-digg-v4-i-got-invite-codes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fix ShadowBox.js In Internet Explorer 8</title>
		<link>http://tonyvirelli.com/2010/05/25/fix-shadowbox-js-in-internet-explorer-8/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=fix-shadowbox-js-in-internet-explorer-8</link>
		<comments>http://tonyvirelli.com/2010/05/25/fix-shadowbox-js-in-internet-explorer-8/#comments</comments>
		<pubDate>Tue, 25 May 2010 18:03:23 +0000</pubDate>
		<dc:creator>Tony Virelli</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[shadow]]></category>
		<category><![CDATA[shadowbox]]></category>

		<guid isPermaLink="false">http://tonyvirelli.com/?p=580</guid>
		<description><![CDATA[So at my office we use ShadowBox a lot. Well with the release of Internet Explorer 8 our sites that use ShadowBox no longer worked. Oh, they worked in IE6, IE7, FireFox, Chrome, Safari &#038; Opera, but not in IE8 (a.k.a. The Broken Browser!). So after some Googling around I found this tip: 1. Go [...]]]></description>
			<content:encoded><![CDATA[<p>So at my office we use <a href="http://www.shadowbox-js.com/" target="_blank">ShadowBox</a> a lot.</p>
<p>Well with the release of Internet Explorer 8 our sites that use ShadowBox no longer worked. Oh, they worked in IE6, IE7, FireFox, Chrome, Safari &#038; Opera, but not in IE8 (a.k.a. The Broken Browser!).<br />
<span id="more-580"></span><br />
So after some Googling around I found this tip:</p>
<p>1. Go to your path where skin.css is on your server: */skin/classic/<br />
2. Open skin.css and add the following lines:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#shadowbox_title</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#shadowbox_info</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>So there you have it! ShadowBox should work in IE8 for you now!</p>
]]></content:encoded>
			<wfw:commentRss>http://tonyvirelli.com/2010/05/25/fix-shadowbox-js-in-internet-explorer-8/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Make 007 Jealous With RSA Encryption</title>
		<link>http://tonyvirelli.com/2010/03/15/make-007-jealous-with-rsa-encryption/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=make-007-jealous-with-rsa-encryption</link>
		<comments>http://tonyvirelli.com/2010/03/15/make-007-jealous-with-rsa-encryption/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 22:50:17 +0000</pubDate>
		<dc:creator>John Hass</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[Encryption]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[RSA]]></category>

		<guid isPermaLink="false">http://tonyvirelli.com/?p=558</guid>
		<description><![CDATA[Make 007 Jealous Public/Private encryption is not a new thing, did you know you can use my favorite swiss army knife to send secret messages to your friends…. Scratch that, I don&#8217;t have any friends… Perl Makes this easy with a little module calls Crypt::RSA, yes RSA is under fire for security blah blah, I [...]]]></description>
			<content:encoded><![CDATA[<p>Make 007 Jealous</p>
<p>Public/Private encryption is not a new thing, did you know you can use my favorite swiss army knife to send secret messages to your friends…. Scratch that, I don&#8217;t have any friends…  Perl Makes this easy with a little module calls Crypt::RSA, yes RSA is under fire for security blah blah, I don&#8217;t care, it&#8217;s still secure, because Mr. S&#8217;s (yes it&#8217;s a dudes name) I can&#8217;t pronounce nor spell, I know it will be fairly decent, I am almost about sure Mr. S should be Dr. S, but that just sounds evil, so without further ado, public/private key encryption with perl.<br />
<span id="more-558"></span><br />
Two people in this Article Tony and John, John wants all correspondence encrypted Tony Encrypts.</p>
<p>I am on my new Mac now, so your mileage may very….</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">perl</span> <span style="color: #660033;">-MCPAN</span> <span style="color: #660033;">-e</span> shell
<span style="color: #c20cb9; font-weight: bold;">install</span> Crypt::RSA</pre></div></div>

<p>it asks you about a ton of dependencies, don&#8217;t do what your high school guidance counselor told you and just say yes.</p>
<p>Create something to make the keys</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span>
<span style="color: #000000; font-weight: bold;">use</span> Crypt<span style="color: #339933;">::</span><span style="color: #006600;">RSA</span><span style="color: #339933;">;</span>
<span style="color: #0000ff;">$rsa</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Crypt<span style="color: #339933;">::</span><span style="color: #006600;">RSA</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">eq</span> <span style="color: #ff0000;">&quot;--makekeys&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$public</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$private</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$rsa</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">keygen</span><span style="color: #009900;">&#40;</span> 
				Size <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">2048</span><span style="color: #339933;">,</span>
				Filename <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;keylock&quot;</span><span style="color: #339933;">,</span>
				<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066;">exit</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>The start of out program generate our rsa key, keylock.private (and keep this private, no touchy no sendy) and keylock.private, send this to everyone</p>
<p>ok send the public key to tony, so he can send us a message….  Tony should create the message now</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">eq</span> <span style="color: #ff0000;">&quot;--createmessage&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #0000ff;">$key</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$message</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">#open the key</span>
	<span style="color: #0000ff;">$akey</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Crypt<span style="color: #339933;">::</span><span style="color: #006600;">RSA</span><span style="color: #339933;">::</span><span style="color: #006600;">Key</span><span style="color: #339933;">::</span><span style="color: #006600;">Public</span> <span style="color: #009900;">&#40;</span>	Filename <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;$key&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$output</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$rsa</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">encrypt</span><span style="color: #009900;">&#40;</span>Message <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">$message</span><span style="color: #339933;">,</span>Key<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">$akey</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">||</span> <span style="color: #000066;">die</span> <span style="color: #0000ff;">$rsa</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">errstr</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066;">open</span> ENC<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;&gt;message&quot;</span> <span style="color: #b1b100;">or</span> <span style="color: #000066;">die</span> <span style="color: #0000ff;">$!</span><span style="color: #339933;">;</span>
	<span style="color: #000066;">binmode</span> ENC<span style="color: #339933;">;</span>
	<span style="color: #000066;">print</span> ENC <span style="color: #0000ff;">$output</span><span style="color: #339933;">;</span>
	<span style="color: #000066;">exit</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>One thing that was a gotcha for me was writing the file, I forgot to tell perl to write it binary, since the encryption is all binary, we must write it so.  We now have a file called &#8220;message&#8221; if you try to edit the file, it&#8217;s all gobble gook.  Tony can now send you this message, and only you can read it, but how?</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #b1b100;">eq</span> <span style="color: #ff0000;">&quot;--readmessage&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #0000ff;">$key</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #0000ff;">$message</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$ARGV</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000066;">open</span> FILE<span style="color: #339933;">,</span> <span style="color: #ff0000;">&quot;$message&quot;</span> <span style="color: #b1b100;">or</span> <span style="color: #000066;">die</span> <span style="color: #0000ff;">$!</span><span style="color: #339933;">;</span> 
	<span style="color: #000066;">binmode</span> FILE<span style="color: #339933;">;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$buf</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$data</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">$n</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$n</span> <span style="color: #339933;">=</span> <span style="color: #000066;">read</span> FILE<span style="color: #339933;">,</span> <span style="color: #0000ff;">$data</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">4</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #0000ff;">$buf</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">$data</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> 
	<span style="color: #000066;">close</span><span style="color: #009900;">&#40;</span>FILE<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
	<span style="color: #0000ff;">$akey</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Crypt<span style="color: #339933;">::</span><span style="color: #006600;">RSA</span><span style="color: #339933;">::</span><span style="color: #006600;">Key</span><span style="color: #339933;">::</span><span style="color: #006600;">Private</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">read</span><span style="color: #009900;">&#40;</span>Filename <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;$key&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$output</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$rsa</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">decrypt</span><span style="color: #009900;">&#40;</span>Cyphertext <span style="color: #339933;">=&gt;</span> <span style="color: #ff0000;">&quot;$buf&quot;</span><span style="color: #339933;">,</span>Key <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">$akey</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">||</span> <span style="color: #000066;">die</span> <span style="color: #0000ff;">$rsa</span><span style="color: #339933;">-&gt;</span><span style="color: #006600;">errstr</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066;">print</span> <span style="color: #0000ff;">$output</span> <span style="color: #339933;">.</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000066;">exit</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>So now we read the file &#8220;message&#8221; in using our private key, since Tony encrypted the message with our public key, we can now read it with the private key….  So how does this work?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">John-Hasss-Mac-Pro:~ john$ .<span style="color: #000000; font-weight: bold;">/</span>keylock.pl <span style="color: #660033;">--makekeys</span>
John-Hasss-Mac-Pro:~ john$ .<span style="color: #000000; font-weight: bold;">/</span>keylock.pl <span style="color: #660033;">--createmessage</span> keylock.public <span style="color: #ff0000;">&quot;007 would be so jealous&quot;</span>
John-Hasss-Mac-Pro:~ john$ <span style="color: #c20cb9; font-weight: bold;">cat</span> message 
?????u?????מ?n???-<span style="color: #000000; font-weight: bold;">@</span>?l?Q??<span style="color: #7a0874; font-weight: bold;">&#41;</span>??~<span style="color: #7a0874; font-weight: bold;">&#125;</span><span style="color: #000000;">3</span>?<span style="color: #ff0000;">&quot;h2??=,??3??݁/m?s?[?M)?F?}?|ߩJ????k;?7??i???D?\w;?U??ʬ??y7ǳ??&amp;?]pXv?-???E@&quot;</span>X?E?HH0?<span style="color: #7a0874; font-weight: bold;">&#40;</span>S?<span style="color: #ff0000;">&quot;?`?,?R??7???ϳ
  ??Ցh???촇??K??Rs??uxs;??r^΀?G?????5??W??Y???4Y??_~?(YͷӍr\űeĥr??John-Hasss-Mac-Pro:~ john$ 
John-Hasss-Mac-Pro:~ john$ 
John-Hasss-Mac-Pro:~ john$ ./keylock.pl --readmessage keylock.private message
007 would be so jealous
John-Hasss-Mac-Pro:~ john$</span></pre></div></div>

<p>Welcome to the magic of public private key encryption!</p>
<p>Have fun!</p>
<a class="downloadlink" href="http://tonyvirelli.com/downloads/keylock.zip" title=" downloaded 7 times" >keylock.zip (7)</a>
]]></content:encoded>
			<wfw:commentRss>http://tonyvirelli.com/2010/03/15/make-007-jealous-with-rsa-encryption/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Clearing Out Postfix Deferred Mail Queue</title>
		<link>http://tonyvirelli.com/2010/03/05/clearing-out-postfix-deferred-mail-queue/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=clearing-out-postfix-deferred-mail-queue</link>
		<comments>http://tonyvirelli.com/2010/03/05/clearing-out-postfix-deferred-mail-queue/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 17:06:16 +0000</pubDate>
		<dc:creator>Tony Virelli</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[mail queue]]></category>
		<category><![CDATA[mailq]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://tonyvirelli.com/?p=550</guid>
		<description><![CDATA[I had a bit of a situation with my Postfix Mail Queue. Mail stopped sending and the queue built up. When I did a mailq I found a lot of double-bounce@domain.com emails in my queue. I knew it would take forever for those to clear and get the good mail flowing again. So after doing [...]]]></description>
			<content:encoded><![CDATA[<p>I had a bit of a situation with my Postfix Mail Queue. Mail stopped sending and the queue built up. When I did a mailq I found a lot of double-bounce@domain.com emails in my queue. I knew it would take forever for those to clear and get the good mail flowing again.<br />
<span id="more-550"></span><br />
So after doing some searching on Google I found this site:<br />
<a href="http://www.cyberciti.biz/tips/howto-postfix-flush-mail-queue.html">http://www.cyberciti.biz/tips/howto-postfix-flush-mail-queue.html</a></p>
<p>It has some of the common Postfix commands, but what interested me was the Perl script to delete mailqs that matched regular expressions.</p>
<p><strong>postfix-delete.pl script</strong></p>
<p>The following script deletes all mail from the mailq which matches the regular expression specified as the first argument.</p>
<p><em>(Credit: Vivek Gite of cyberciti.biz.  His credit: Credit: ??? &#8211; I found it on old good newsgroup)</em></p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/usr/bin/perl</span>
&nbsp;
<span style="color: #0000ff;">$REGEXP</span> <span style="color: #339933;">=</span> <span style="color: #000066;">shift</span> <span style="color: #339933;">||</span> <span style="color: #000066;">die</span> <span style="color: #ff0000;">&quot;no email-adress given (regexp-style, e.g. bl.*<span style="color: #000099; font-weight: bold;">\@</span>yahoo.com)!&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #0000ff;">@data</span> <span style="color: #339933;">=</span> <span style="color: #000066;">qx</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">@data</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/^(\w+)(\*|\!)?\s/</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #0000ff;">$queue_id</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">$1</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">$queue_id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/$REGEXP/i</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #0000ff;">$Q</span><span style="color: #009900;">&#123;</span><span style="color: #0000ff;">$queue_id</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
      <span style="color: #0000ff;">$queue_id</span> <span style="color: #339933;">=</span> <span style="color: #ff0000;">&quot;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#open(POSTSUPER,&quot;|cat&quot;) || die &quot;couldn't open postsuper&quot; ;</span>
<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span>POSTSUPER<span style="color: #339933;">,</span><span style="color: #ff0000;">&quot;|postsuper -d -&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #000066;">die</span> <span style="color: #ff0000;">&quot;couldn't open postsuper&quot;</span> <span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000066;">keys</span> <span style="color: #0000ff;">%Q</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000066;">print</span> POSTSUPER <span style="color: #ff0000;">&quot;$_<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #000066;">close</span><span style="color: #009900;">&#40;</span>POSTSUPER<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>For example, delete all queued messages from or to the domain called double-bounce@domain.com, enter:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>postfix-delete.pl double-bounce<span style="color: #000000; font-weight: bold;">@</span>domain.com</pre></div></div>

<p>Delete all queued messages that contain the word &#8220;xyz&#8221; in the e-mail address:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>postfix-delete.pl xyz</pre></div></div>

<p>For more information about this script make sure and checkout <a href="http://www.cyberciti.biz/tips/howto-postfix-flush-mail-queue.html">http://www.cyberciti.biz/tips/howto-postfix-flush-mail-queue.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tonyvirelli.com/2010/03/05/clearing-out-postfix-deferred-mail-queue/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Improve Droid Sound Quality</title>
		<link>http://tonyvirelli.com/2010/03/01/improve-droid-sound-quality/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=improve-droid-sound-quality</link>
		<comments>http://tonyvirelli.com/2010/03/01/improve-droid-sound-quality/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 18:16:02 +0000</pubDate>
		<dc:creator>Tony Virelli</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[call quality]]></category>
		<category><![CDATA[cell phone]]></category>
		<category><![CDATA[droid]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://tonyvirelli.com/?p=535</guid>
		<description><![CDATA[Today I got a text message from a reader wanting to know how to improve the sound quality of their droid. Here is a quick step-by-step guide to doing that. However, keep in mind that sound quality is a thing of opinion and results may very! Click the phone icon Dial ##7764726 Click the Green [...]]]></description>
			<content:encoded><![CDATA[<p>Today I got a text message from a reader wanting to know how to improve the sound quality of their droid.</p>
<p>Here is a quick step-by-step guide to doing that. However, keep in mind that sound quality is a thing of opinion and results may very!<br />
<span id="more-535"></span></p>
<ol>
<li>Click the phone icon</li>
<li>Dial ##7764726</li>
<li>Click the Green Phone Icon or Call Button</li>
<li>You will then be asked for a SPC password</li>
<li>Enter 000000  (That is 6 Zeros)</li>
<li>Then click the Verify button</li>
<li>You will then see the programming Menu</li>
<li>Select option 04 or whatever option is titled &#8220;Vocode&#8221;</li>
<li>By default the option &#8220;EVRC&#8221; should be selected</li>
<li>To &#8220;improve&#8221; call quality select &#8220;EVRC-B&#8221; and click Apply</li>
<li>Then click the back button on the phone</li>
<li>Your phone will then reboot</li>
<li>When it comes back up you are done!</li>
</ol>
<p>So now you can be the judge as to whether or not your call quality is better.</p>
<p>Be advised that this will cause your battery to drain faster&#8230; yes, even faster than it already does!</p>
]]></content:encoded>
			<wfw:commentRss>http://tonyvirelli.com/2010/03/01/improve-droid-sound-quality/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update Your Website Copyright With Some Simple PHP</title>
		<link>http://tonyvirelli.com/2010/02/26/update-your-website-copyright-with-some-simple-php/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=update-your-website-copyright-with-some-simple-php</link>
		<comments>http://tonyvirelli.com/2010/02/26/update-your-website-copyright-with-some-simple-php/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 07:00:24 +0000</pubDate>
		<dc:creator>Tony Virelli</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[copyright]]></category>
		<category><![CDATA[year]]></category>

		<guid isPermaLink="false">http://tonyvirelli.com/?p=521</guid>
		<description><![CDATA[Ok, so every year web designers have the all dreaded task of updating the copyright on their designs. This isn&#8217;t so bad if you work for 1 company, but if you work for a design firm like I do and have tons of clients websites to update it can be a time eating task. So [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so every year web designers have the all dreaded task of updating the copyright on their designs. This isn&#8217;t so bad if you work for 1 company, but if you work for a design firm like I do and have tons of clients websites to update it can be a time eating task.<br />
<span id="more-521"></span><br />
So to fix this problem I wrote this super small, super easy bit of code. It&#8217;s nothing special, but it gets the job done.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$startYear</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">2010</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Enter the starting year of the copyright.</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$startYear</span> <span style="color: #339933;">&lt;</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Y&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$startYear</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;-&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Y&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$startYear</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>And for the function lovers</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> updateCopyright<span style="color: #009900;">&#40;</span><span style="color: #000088;">$startYear</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$startYear</span> <span style="color: #339933;">&lt;</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Y&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$startYear</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;-&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Y&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$startYear</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
//Usage: Copyright &amp;copy; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> updateCopyright<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2010</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Company Name</pre></div></div>

<p>There ya go!</p>
<p>Isn&#8217;t making your life easier fun!? I sure think so!</p>
]]></content:encoded>
			<wfw:commentRss>http://tonyvirelli.com/2010/02/26/update-your-website-copyright-with-some-simple-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Get a Custom Boot Screen on Droid</title>
		<link>http://tonyvirelli.com/2009/12/31/how-to-get-a-custom-boot-screen-on-droid/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-get-a-custom-boot-screen-on-droid</link>
		<comments>http://tonyvirelli.com/2009/12/31/how-to-get-a-custom-boot-screen-on-droid/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 06:44:29 +0000</pubDate>
		<dc:creator>Tony Virelli</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[droid]]></category>
		<category><![CDATA[motorola]]></category>

		<guid isPermaLink="false">http://tonyvirelli.com/?p=484</guid>
		<description><![CDATA[**************************************************************************** UPDATE: FBG Studios.com seems to be down right now. Also the video tutorial is set to private. So until further notice the only instructions are the written. **************************************************************************** Yesterday I was searching around the web and found this video on fbgstudios.com. It is a tutorial on how to add a custom boot screen to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>****************************************************************************</strong><br />
<strong>UPDATE:</strong> FBG Studios.com seems to be down right now. Also the video tutorial is set to private. So until further notice the only instructions are the written.<br />
<strong>****************************************************************************</strong></p>
<p>Yesterday I was searching around the web and found this video on <a href="http://fbgstudios.com" target="_blank">fbgstudios.com</a>. It is a tutorial on how to add a custom boot screen to your Motorola Droid. It does require you to root your Droid, but hey, if you are ballsy enough to change your boot screen I bet you already have your Droid rooted!<br />
<span id="more-484"></span><br />
<strong>Here is the video tutorial:</strong></p>
<div style="text-align: center;"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="295" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/JhccSkNcUx8&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x3a3a3a&amp;color2=0x999999&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="295" src="http://www.youtube.com/v/JhccSkNcUx8&amp;hl=en_US&amp;fs=1&amp;rel=0&amp;color1=0x3a3a3a&amp;color2=0x999999&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<p><strong>Here is the text tutorial:</strong></p>
<p>1. Make sure that your phone is rooted, if it is not watch this video tutorial: http://www.youtube.com/watch?v=4QVm4SxH8Pw</p>
<p>2. Download an animation and make sure that it is named bootanimation.zip.</p>
<p>Here are some you can download (but there are plenty more online so you can google them):</p>
<ul>
<li><a href="http://alldroid.org/download/file.php?id=726" target="_blank">Nexus One</a></li>
<li><a href="http://alldroid.org/download/file.php?id=752" target="_blank">3d Android</a></li>
<li><a href="http://alldroid.org/download/file.php?id=916" target="_blank">R2-D2</a> (MAKE SURE TO RENAME IT TO “BootAnimation”)</li>
</ul>
<p>3 OPTIONAL</p>
<p>* a) To customize the animation just add the text or image you want. Remember that each picture is a frame and that each frame moves very quickly so if you want solid text make sure to put it on for more than 15 frames. Also keep in mind that there are two animations (part0 and part1) and part is the one that repeats.<br />
* b) Now highlight folders part0 and part1 as well as desc.txt file.<br />
* c) Using WinRAR right click and select “Add to archive…”. IMPORTANT: Make sure that the file is named “bootanimation” and the file format is .zip!</p>
<p>4. Connect your USB on your Droid and make sure it is mounted!</p>
<p>5. Go to your SD card of your phone and drag the bootanimation.zip into the root folder.</p>
<p>6. Eject your phone</p>
<p>7. Download Terminal Emulator for you phone then open it up</p>
<p>8. Type in the following (EXACTLY THE WAY YOU SEE IT; press enter after each line):</p>
<p>su<br />
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system<br />
dd if=/sdcard/bootanimation.zip of=/system/media/bootanimation.zip<br />
Reboot</p>
<p>9. Your phone will be rebooted and now you can enjoy your new custom bootscreen!</p>
<p>Again I want to give credit to <a href="http://fbgstudios.com" target="_blank">FBG Studios.com</a>, so make sure and visit their site.</p>
<p>Here is a direct link to the tutorial: <a href="http://fbgstudios.com/how-to-get-a-custom-boot-screen-on-droid/2009/12/">http://fbgstudios.com/how-to-get-a-custom-boot-screen-on-droid/2009/12/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tonyvirelli.com/2009/12/31/how-to-get-a-custom-boot-screen-on-droid/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Using NMAP To Detect Server Type</title>
		<link>http://tonyvirelli.com/2009/12/28/using-nmap-to-detect-server-type/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=using-nmap-to-detect-server-type</link>
		<comments>http://tonyvirelli.com/2009/12/28/using-nmap-to-detect-server-type/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 14:33:55 +0000</pubDate>
		<dc:creator>John Hass</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[evil]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[msrpc]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[Service Pack 2]]></category>
		<category><![CDATA[smb]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://tonyvirelli.com/?p=295</guid>
		<description><![CDATA[When you talk power utilities on any *nix it&#8217;s hard to skip nmap. Ever since it&#8217;s introduction nmap has been used for good and evil. If you&#8217;ve ever had a server hacked chances are they used nmap or some sort of nmap code to get the job done. Just how easy is it to detect [...]]]></description>
			<content:encoded><![CDATA[<p>When you talk power utilities on any *nix it&#8217;s hard to skip nmap. Ever since it&#8217;s introduction nmap has been used for good and evil. If you&#8217;ve ever had a server hacked chances are they used nmap or some sort of nmap code to get the job done.  Just how easy is it to detect the server type from nmap? Try my windows 2003 server (I know kick me in the nuts and call me sally).<br />
<span id="more-295"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nmap</span> <span style="color: #660033;">-A</span> <span style="color: #660033;">-T4</span> 192.168.10.1</pre></div></div>

<p>it took over a minute to get the results, but here is what I got.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Starting Nmap <span style="color: #000000;">5.00</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span> http:<span style="color: #000000; font-weight: bold;">//</span>nmap.org <span style="color: #7a0874; font-weight: bold;">&#41;</span> at <span style="color: #000000;">2009</span>-<span style="color: #000000;">12</span>-<span style="color: #000000;">15</span> <span style="color: #000000;">15</span>:<span style="color: #000000;">42</span> CST
Interesting ports on server1.local.example.com <span style="color: #7a0874; font-weight: bold;">&#40;</span>192.168.10.1<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
Not shown: <span style="color: #000000;">963</span> closed ports
PORT      STATE SERVICE       VERSION
<span style="color: #000000;">21</span><span style="color: #000000; font-weight: bold;">/</span>tcp    open  <span style="color: #c20cb9; font-weight: bold;">ftp</span>           Microsoft ftpd
<span style="color: #000000;">25</span><span style="color: #000000; font-weight: bold;">/</span>tcp    open  smtp          Microsoft ESMTP 6.0.3790.3959
<span style="color: #000000; font-weight: bold;">|</span>  smtp-commands: EHLO example.com Hello <span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.10.34<span style="color: #7a0874; font-weight: bold;">&#93;</span>, TURN, SIZE, ETRN, PIPELINING, DSN, ENHANCEDSTATUSCODES, 8bitmime, BINARYMIME, CHUNKING, VRFY, X-EXPS GSSAPI NTLM LOGIN, X-EXPS=LOGIN, AUTH GSSAPI NTLM LOGIN, <span style="color: #007800;">AUTH</span>=LOGIN, X-LINK2STATE, XEXCH50
<span style="color: #000000; font-weight: bold;">|</span>_ HELP This server supports the following commands: HELO EHLO STARTTLS RCPT DATA RSET MAIL QUIT HELP AUTH TURN ETRN BDAT VRFY
<span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">/</span>tcp    open  http          Microsoft IIS webserver <span style="color: #000000;">6.0</span>
<span style="color: #000000; font-weight: bold;">|</span>_ html-title: Under Construction
<span style="color: #000000;">110</span><span style="color: #000000; font-weight: bold;">/</span>tcp   open  pop3          MS Exchange <span style="color: #000000;">2003</span> pop3d 6.5.7638.1
<span style="color: #000000; font-weight: bold;">|</span>_ pop3-capabilities: USER EXPIRE<span style="color: #7a0874; font-weight: bold;">&#40;</span>NEVER<span style="color: #7a0874; font-weight: bold;">&#41;</span> UIDL PIPELINING TOP SASL<span style="color: #7a0874; font-weight: bold;">&#40;</span>NTLM<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000;">135</span><span style="color: #000000; font-weight: bold;">/</span>tcp   open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">139</span><span style="color: #000000; font-weight: bold;">/</span>tcp   open  netbios-ssn
<span style="color: #000000;">143</span><span style="color: #000000; font-weight: bold;">/</span>tcp   open  imap          Microsoft Exchange Server <span style="color: #000000;">2003</span> imapd 6.5.7638.1
<span style="color: #000000; font-weight: bold;">|</span>_ imap-capabilities: LOGIN-REFERRALS IMAP4 <span style="color: #007800;">AUTH</span>=NTLM IMAP4rev1 MAILBOX-REFERRALS UIDPLUS LITERAL+ IDLE NAMESPACE CHILDREN
<span style="color: #000000;">445</span><span style="color: #000000; font-weight: bold;">/</span>tcp   open  microsoft-ds  Microsoft Windows <span style="color: #000000;">2003</span> microsoft-ds
<span style="color: #000000;">593</span><span style="color: #000000; font-weight: bold;">/</span>tcp   open  ncacn_http    Microsoft Windows RPC over HTTP <span style="color: #000000;">1.0</span>
<span style="color: #000000;">691</span><span style="color: #000000; font-weight: bold;">/</span>tcp   open  resvc         Microsoft Exchange routing server 6.5.7638.138.1
<span style="color: #000000;">993</span><span style="color: #000000; font-weight: bold;">/</span>tcp   open  tcpwrapped
<span style="color: #000000;">995</span><span style="color: #000000; font-weight: bold;">/</span>tcp   open  tcpwrapped
<span style="color: #000000;">1037</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">1073</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">1074</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">1076</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">1088</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">1089</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">1137</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">1801</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  unknown
<span style="color: #000000;">2103</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">2105</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">2107</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">3389</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  microsoft-rdp Microsoft Terminal Service
<span style="color: #000000;">4343</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  ssl<span style="color: #000000; font-weight: bold;">/</span>http      Microsoft IIS webserver <span style="color: #000000;">6.0</span>
<span style="color: #000000; font-weight: bold;">|</span>_ sslv2: server still supports SSLv2
<span style="color: #000000; font-weight: bold;">|</span>  http-auth: HTTP Service requires authentication
<span style="color: #000000; font-weight: bold;">|</span>    Auth <span style="color: #7a0874; font-weight: bold;">type</span>: Negotiate
<span style="color: #000000; font-weight: bold;">|</span>_   Auth <span style="color: #7a0874; font-weight: bold;">type</span>: NTLM
<span style="color: #000000; font-weight: bold;">|</span>_ html-title: You are not authorized to view this page
<span style="color: #000000;">5900</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  vnc           VNC <span style="color: #7a0874; font-weight: bold;">&#40;</span>protocol <span style="color: #000000;">3.8</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000;">6001</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  ncacn_http    Microsoft Windows RPC over HTTP <span style="color: #000000;">1.0</span>
<span style="color: #000000;">6002</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  ncacn_http    Microsoft Windows RPC over HTTP <span style="color: #000000;">1.0</span>
<span style="color: #000000;">6004</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  ncacn_http    Microsoft Windows RPC over HTTP <span style="color: #000000;">1.0</span>
<span style="color: #000000;">8080</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  http          Microsoft IIS webserver <span style="color: #000000;">6.0</span>
<span style="color: #000000; font-weight: bold;">|</span>  http-auth: HTTP Service requires authentication
<span style="color: #000000; font-weight: bold;">|</span>    Auth <span style="color: #7a0874; font-weight: bold;">type</span>: Negotiate
<span style="color: #000000; font-weight: bold;">|</span>_   Auth <span style="color: #7a0874; font-weight: bold;">type</span>: NTLM
<span style="color: #000000; font-weight: bold;">|</span>_ html-title: You are not authorized to view this page
<span style="color: #000000;">8181</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  http          Apache Tomcat<span style="color: #000000; font-weight: bold;">/</span>Coyote JSP engine <span style="color: #000000;">1.1</span>
<span style="color: #000000; font-weight: bold;">|</span>_ html-title: Site doesn<span style="color: #ff0000;">'t have a title (text/html).
8443/tcp  open  ssl/http      Apache Tomcat/Coyote JSP engine 1.1
|_ html-title: Site doesn'</span>t have a title <span style="color: #7a0874; font-weight: bold;">&#40;</span>text<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
<span style="color: #000000;">9000</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  http          Veritas backup <span style="color: #7a0874; font-weight: bold;">exec</span> continuous protection httpd
<span style="color: #000000; font-weight: bold;">|</span>_ html-title: Site doesn<span style="color: #ff0000;">'t have a title (text/xml).
9001/tcp  open  http          Veritas backup exec continuous protection httpd
|_ html-title: Site doesn'</span>t have a title <span style="color: #7a0874; font-weight: bold;">&#40;</span>text<span style="color: #000000; font-weight: bold;">/</span>plain<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
<span style="color: #000000;">9002</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  http          Veritas backup <span style="color: #7a0874; font-weight: bold;">exec</span> continuous protection httpd <span style="color: #7a0874; font-weight: bold;">&#40;</span>unauthorized<span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #000000; font-weight: bold;">|</span>_ html-title: Site doesn<span style="color: #ff0000;">'t have a title (text/html).
9003/tcp  open  http          Veritas backup exec continuous protection httpd (unauthorized)
|_ html-title: Site doesn'</span>t have a title <span style="color: #7a0874; font-weight: bold;">&#40;</span>text<span style="color: #000000; font-weight: bold;">/</span>plain<span style="color: #7a0874; font-weight: bold;">&#41;</span>.
<span style="color: #000000;">10000</span><span style="color: #000000; font-weight: bold;">/</span>tcp open  backupexec    Veritas Backup Exec <span style="color: #000000;">9.0</span>
Service Info: OS: Windows
Host script results:
<span style="color: #000000; font-weight: bold;">|</span>  smb-os-discovery: Windows Server <span style="color: #000000;">2003</span> <span style="color: #000000;">3790</span> Service Pack <span style="color: #000000;">2</span>
<span style="color: #000000; font-weight: bold;">|</span>  LAN Manager: Windows Server <span style="color: #000000;">2003</span> <span style="color: #000000;">5.2</span>
<span style="color: #000000; font-weight: bold;">|</span>  Name: example\SERVER1
<span style="color: #000000; font-weight: bold;">|</span>_ System <span style="color: #000000; font-weight: bold;">time</span>: <span style="color: #000000;">2009</span>-<span style="color: #000000;">12</span>-<span style="color: #000000;">15</span> <span style="color: #000000;">15</span>:<span style="color: #000000;">38</span>:06 UTC-<span style="color: #000000;">6</span>
<span style="color: #000000; font-weight: bold;">|</span>_ nbstat: NetBIOS name: SERVER1, NetBIOS user: , NetBIOS MAC: 00:<span style="color: #000000;">11</span>:<span style="color: #000000;">43</span>:e3:d5:f2
Service detection performed. Please report any incorrect results at http:<span style="color: #000000; font-weight: bold;">//</span>nmap.org<span style="color: #000000; font-weight: bold;">/</span>submit<span style="color: #000000; font-weight: bold;">/</span> .
Nmap <span style="color: #000000; font-weight: bold;">done</span>: <span style="color: #000000;">1</span> IP address <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span> host up<span style="color: #7a0874; font-weight: bold;">&#41;</span> scanned <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">68.23</span> seconds</pre></div></div>

<p>Surely this can&#8217;t work in Windows Server 2008?</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Starting Nmap <span style="color: #000000;">5.00</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span> http:<span style="color: #000000; font-weight: bold;">//</span>nmap.org <span style="color: #7a0874; font-weight: bold;">&#41;</span> at <span style="color: #000000;">2009</span>-<span style="color: #000000;">12</span>-<span style="color: #000000;">15</span> <span style="color: #000000;">15</span>:<span style="color: #000000;">47</span> CST
Interesting ports on server.local.example.com <span style="color: #7a0874; font-weight: bold;">&#40;</span>192.168.10.5<span style="color: #7a0874; font-weight: bold;">&#41;</span>:
Not shown: <span style="color: #000000;">970</span> closed ports
PORT     STATE SERVICE       VERSION
<span style="color: #000000;">25</span><span style="color: #000000; font-weight: bold;">/</span>tcp   open  smtp          Microsoft ESMTP
<span style="color: #000000; font-weight: bold;">|</span>  smtp-commands: EHLO exchange.example.com Hello <span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.10.34<span style="color: #7a0874; font-weight: bold;">&#93;</span>, SIZE <span style="color: #000000;">41943040</span>, PIPELINING, DSN, ENHANCEDSTATUSCODES, AUTH, 8BITMIME, BINARYMIME, CHUNKING, XEXCH50
<span style="color: #000000; font-weight: bold;">|</span>_ HELP This server supports the following commands: HELO EHLO STARTTLS RCPT DATA RSET MAIL QUIT HELP AUTH BDAT
<span style="color: #000000;">80</span><span style="color: #000000; font-weight: bold;">/</span>tcp   open  http          Microsoft IIS webserver <span style="color: #000000;">7.0</span>
<span style="color: #000000; font-weight: bold;">|</span>_ html-title: <span style="color: #000000;">403</span> - Forbidden: Access is denied.
<span style="color: #000000;">88</span><span style="color: #000000; font-weight: bold;">/</span>tcp   open  kerberos-sec  Microsoft Windows kerberos-sec
<span style="color: #000000;">110</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  pop3          MS Exchange <span style="color: #000000;">2007</span> pop3d
<span style="color: #000000; font-weight: bold;">|</span>_ pop3-capabilities: USER SASL<span style="color: #7a0874; font-weight: bold;">&#40;</span>NTLM GSSAPI PLAIN<span style="color: #7a0874; font-weight: bold;">&#41;</span> TOP UIDL
<span style="color: #000000;">135</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">139</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  netbios-ssn
<span style="color: #000000;">143</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  imap          Microsoft Exchange <span style="color: #000000;">2007</span> imapd
<span style="color: #000000; font-weight: bold;">|</span>_ imap-capabilities: IMAP4rev1 <span style="color: #007800;">AUTH</span>=GSSAPI LITERAL+ IMAP4 <span style="color: #007800;">AUTH</span>=NTLM <span style="color: #007800;">AUTH</span>=PLAIN NAMESPACE IDLE
<span style="color: #000000;">389</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  ldap
<span style="color: #000000;">443</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  ssl<span style="color: #000000; font-weight: bold;">/</span>http      Microsoft IIS webserver <span style="color: #000000;">7.0</span>
<span style="color: #000000; font-weight: bold;">|</span>_ sslv2: server still supports SSLv2
<span style="color: #000000; font-weight: bold;">|</span>_ html-title: IIS7
<span style="color: #000000;">445</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  microsoft-ds  Microsoft Windows <span style="color: #000000;">2003</span> microsoft-ds
<span style="color: #000000;">464</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  kpasswd5?
<span style="color: #000000;">587</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  smtp          Microsoft ESMTP
<span style="color: #000000; font-weight: bold;">|</span>  smtp-commands: EHLO exchange.example.com Hello <span style="color: #7a0874; font-weight: bold;">&#91;</span>192.168.10.34<span style="color: #7a0874; font-weight: bold;">&#93;</span>, SIZE <span style="color: #000000;">41943040</span>, PIPELINING, DSN, ENHANCEDSTATUSCODES, AUTH GSSAPI NTLM, 8BITMIME, BINARYMIME, CHUNKING
<span style="color: #000000; font-weight: bold;">|</span>_ HELP This server supports the following commands: HELO EHLO STARTTLS RCPT DATA RSET MAIL QUIT HELP AUTH BDAT
<span style="color: #000000;">593</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  ncacn_http    Microsoft Windows RPC over HTTP <span style="color: #000000;">1.0</span>
<span style="color: #000000;">636</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  tcpwrapped
<span style="color: #000000;">993</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  imaps?
<span style="color: #000000;">995</span><span style="color: #000000; font-weight: bold;">/</span>tcp  open  pop3s?
<span style="color: #000000;">1025</span><span style="color: #000000; font-weight: bold;">/</span>tcp open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">1026</span><span style="color: #000000; font-weight: bold;">/</span>tcp open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">1027</span><span style="color: #000000; font-weight: bold;">/</span>tcp open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">1029</span><span style="color: #000000; font-weight: bold;">/</span>tcp open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">1030</span><span style="color: #000000; font-weight: bold;">/</span>tcp open  ncacn_http    Microsoft Windows RPC over HTTP <span style="color: #000000;">1.0</span>
<span style="color: #000000;">1031</span><span style="color: #000000; font-weight: bold;">/</span>tcp open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">1048</span><span style="color: #000000; font-weight: bold;">/</span>tcp open  msrpc         Microsoft Windows RPC
<span style="color: #000000;">3268</span><span style="color: #000000; font-weight: bold;">/</span>tcp open  ldap
<span style="color: #000000;">3269</span><span style="color: #000000; font-weight: bold;">/</span>tcp open  tcpwrapped
<span style="color: #000000;">3389</span><span style="color: #000000; font-weight: bold;">/</span>tcp open  microsoft-rdp Microsoft Terminal Service
<span style="color: #000000;">6001</span><span style="color: #000000; font-weight: bold;">/</span>tcp open  ncacn_http    Microsoft Windows RPC over HTTP <span style="color: #000000;">1.0</span>
<span style="color: #000000;">6002</span><span style="color: #000000; font-weight: bold;">/</span>tcp open  ncacn_http    Microsoft Windows RPC over HTTP <span style="color: #000000;">1.0</span>
<span style="color: #000000;">6004</span><span style="color: #000000; font-weight: bold;">/</span>tcp open  ncacn_http    Microsoft Windows RPC over HTTP <span style="color: #000000;">1.0</span>
<span style="color: #000000;">2</span> services unrecognized despite returning data. If you know the service<span style="color: #000000; font-weight: bold;">/</span>version, please submit the following fingerprints at http:<span style="color: #000000; font-weight: bold;">//</span>www.insecure.org<span style="color: #000000; font-weight: bold;">/</span>cgi-bin<span style="color: #000000; font-weight: bold;">/</span>servicefp-submit.cgi :
==============NEXT SERVICE FINGERPRINT <span style="color: #7a0874; font-weight: bold;">&#40;</span>SUBMIT INDIVIDUALLY<span style="color: #7a0874; font-weight: bold;">&#41;</span>==============
SF-Port993-TCP:<span style="color: #007800;">V</span>=<span style="color: #000000;">5.00</span><span style="color: #000000; font-weight: bold;">%</span><span style="color: #007800;">I</span>=<span style="color: #000000;">7</span><span style="color: #000000; font-weight: bold;">%</span><span style="color: #007800;">D</span>=<span style="color: #000000;">12</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">15</span><span style="color: #000000; font-weight: bold;">%</span><span style="color: #007800;">Time</span>=4B2803DB<span style="color: #000000; font-weight: bold;">%</span><span style="color: #007800;">P</span>=x86_64-unknown-linux-gnu
SF:<span style="color: #000000; font-weight: bold;">%</span>r<span style="color: #7a0874; font-weight: bold;">&#40;</span>NULL,<span style="color: #000000;">20</span>,<span style="color: #ff0000;">&quot;\*\x20BYE\x20Connection\x20is\x20closed\.\x2014<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
==============NEXT SERVICE FINGERPRINT <span style="color: #7a0874; font-weight: bold;">&#40;</span>SUBMIT INDIVIDUALLY<span style="color: #7a0874; font-weight: bold;">&#41;</span>==============
SF-Port995-TCP:<span style="color: #007800;">V</span>=<span style="color: #000000;">5.00</span><span style="color: #000000; font-weight: bold;">%</span><span style="color: #007800;">I</span>=<span style="color: #000000;">7</span><span style="color: #000000; font-weight: bold;">%</span><span style="color: #007800;">D</span>=<span style="color: #000000;">12</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">15</span><span style="color: #000000; font-weight: bold;">%</span><span style="color: #007800;">Time</span>=4B2803DB<span style="color: #000000; font-weight: bold;">%</span><span style="color: #007800;">P</span>=x86_64-unknown-linux-gnu
SF:<span style="color: #000000; font-weight: bold;">%</span>r<span style="color: #7a0874; font-weight: bold;">&#40;</span>NULL,1F,<span style="color: #ff0000;">&quot;-ERR\x20Connection\x20is\x20closed\.\x2013<span style="color: #000099; font-weight: bold;">\r</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
Service Info: Host: exchange.example.com; OS: Windows
Host script results:
<span style="color: #000000; font-weight: bold;">|</span>_ nbstat: NetBIOS name: SERVER, NetBIOS user: , NetBIOS MAC: 00:<span style="color: #000000;">22</span>:<span style="color: #000000;">19</span>:<span style="color: #000000;">54</span>:ea:4d
<span style="color: #000000; font-weight: bold;">|</span>  smb-os-discovery: Windows Server <span style="color: #7a0874; font-weight: bold;">&#40;</span>R<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">2008</span> Standard <span style="color: #000000;">6001</span> Service Pack <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">|</span>  LAN Manager: Windows Server <span style="color: #7a0874; font-weight: bold;">&#40;</span>R<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">2008</span> Standard <span style="color: #000000;">6.0</span>
<span style="color: #000000; font-weight: bold;">|</span>  Name: example\SERVER
<span style="color: #000000; font-weight: bold;">|</span>_ System <span style="color: #000000; font-weight: bold;">time</span>: <span style="color: #000000;">2009</span>-<span style="color: #000000;">12</span>-<span style="color: #000000;">15</span> <span style="color: #000000;">15</span>:<span style="color: #000000;">42</span>:<span style="color: #000000;">39</span> UTC-<span style="color: #000000;">6</span></pre></div></div>

<p>And Next time, don&#8217;t call me Shirley!</p>
<p>Now I am sure Linux is immune to this though!</p>
<p>Now I don&#8217;t want to brag, but all the linux servers first responded with</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Starting Nmap <span style="color: #000000;">5.00</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span> http:<span style="color: #000000; font-weight: bold;">//</span>nmap.org <span style="color: #7a0874; font-weight: bold;">&#41;</span> at <span style="color: #000000;">2009</span>-<span style="color: #000000;">12</span>-<span style="color: #000000;">15</span> <span style="color: #000000;">15</span>:<span style="color: #000000;">53</span> CST
All <span style="color: #000000;">1000</span> scanned ports on 192.168.10.20 are filtered
Service detection performed. Please report any incorrect results at http:<span style="color: #000000; font-weight: bold;">//</span>nmap.org<span style="color: #000000; font-weight: bold;">/</span>submit<span style="color: #000000; font-weight: bold;">/</span> .
Nmap <span style="color: #000000; font-weight: bold;">done</span>: <span style="color: #000000;">1</span> IP address <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1</span> host up<span style="color: #7a0874; font-weight: bold;">&#41;</span> scanned <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">32.04</span> seconds</pre></div></div>

<p>This was from default Ubuntu installs, eventually I did a scan on our webserver</p>

<div class="wp_syntax"><div class="code"><pre class="perl" style="font-family:monospace;">Starting Nmap <span style="color: #cc66cc;">5.00</span> <span style="color: #009900;">&#40;</span> http<span style="color: #339933;">://</span>nmap<span style="color: #339933;">.</span>org <span style="color: #009900;">&#41;</span> at <span style="color: #cc66cc;">2009</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">12</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">15</span> <span style="color: #cc66cc;">15</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">54</span> CST
Interesting ports on mail<span style="color: #339933;">.</span>sipmeeting<span style="color: #339933;">.</span>com <span style="color: #009900;">&#40;</span>example<span style="color: #339933;">.</span>com<span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>
Not shown<span style="color: #339933;">:</span> <span style="color: #cc66cc;">988</span> closed ports
PORT     STATE SERVICE   VERSION
<span style="color: #cc66cc;">21</span><span style="color: #339933;">/</span>tcp   <span style="color: #000066;">open</span>  ftp       ProFTPD 1<span style="color: #339933;">.</span>3<span style="color: #339933;">.</span>0a
<span style="color: #cc66cc;">22</span><span style="color: #339933;">/</span>tcp   <span style="color: #000066;">open</span>  ssh       OpenSSH <span style="color: #cc66cc;">4.6</span> <span style="color: #009900;">&#40;</span>protocol <span style="color: #cc66cc;">1.99</span><span style="color: #009900;">&#41;</span>
<span style="color: #339933;">|</span>_ sshv1<span style="color: #339933;">:</span> Server supports SSHv1
<span style="color: #339933;">|</span>  ssh<span style="color: #339933;">-</span>hostkey<span style="color: #339933;">:</span> <span style="color: #cc66cc;">2048</span> da<span style="color: #339933;">:</span>5e<span style="color: #339933;">:</span>f2<span style="color: #339933;">:</span>1e<span style="color: #339933;">:</span><span style="color: #cc66cc;">63</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">47</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">14</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">29</span><span style="color: #339933;">:</span>bd<span style="color: #339933;">:</span>f9<span style="color: #339933;">:</span>e3<span style="color: #339933;">:</span>ca<span style="color: #339933;">:</span>aa<span style="color: #339933;">:</span>4e<span style="color: #339933;">:</span>2b<span style="color: #339933;">:</span><span style="color: #cc66cc;">20</span> <span style="color: #009900;">&#40;</span>RSA1<span style="color: #009900;">&#41;</span>
<span style="color: #339933;">|</span>  <span style="color: #cc66cc;">1024</span> 4a<span style="color: #339933;">:</span>6d<span style="color: #339933;">:</span>a3<span style="color: #339933;">:</span><span style="color: #cc66cc;">75</span><span style="color: #339933;">:</span>d9<span style="color: #339933;">:</span>8d<span style="color: #339933;">:</span>c8<span style="color: #339933;">:</span>dc<span style="color: #339933;">:</span><span style="color: #cc66cc;">32</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">82</span><span style="color: #339933;">:</span>6d<span style="color: #339933;">:</span><span style="color: #cc66cc;">81</span><span style="color: #339933;">:</span>d8<span style="color: #339933;">:</span><span style="color: #cc66cc;">39</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">81</span><span style="color: #339933;">:</span>d4 <span style="color: #009900;">&#40;</span>DSA<span style="color: #009900;">&#41;</span>
<span style="color: #339933;">|</span>_ <span style="color: #cc66cc;">2048</span> <span style="color: #cc66cc;">92</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">90</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">42</span><span style="color: #339933;">:</span>06<span style="color: #339933;">:</span><span style="color: #cc66cc;">61</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">70</span><span style="color: #339933;">:</span>f8<span style="color: #339933;">:</span>a0<span style="color: #339933;">:</span><span style="color: #cc66cc;">38</span><span style="color: #339933;">:</span>f6<span style="color: #339933;">:</span>2c<span style="color: #339933;">:</span><span style="color: #cc66cc;">54</span><span style="color: #339933;">:</span><span style="color: #cc66cc;">27</span><span style="color: #339933;">:</span>b2<span style="color: #339933;">:</span>2b<span style="color: #339933;">:</span>a8 <span style="color: #009900;">&#40;</span>RSA<span style="color: #009900;">&#41;</span>
<span style="color: #cc66cc;">25</span><span style="color: #339933;">/</span>tcp   <span style="color: #000066;">open</span>  smtp      Sendmail 8<span style="color: #339933;">.</span>14<span style="color: #339933;">.</span>1<span style="color: #339933;">/</span>8<span style="color: #339933;">.</span>14<span style="color: #339933;">.</span>1
<span style="color: #339933;">|</span>  smtp<span style="color: #339933;">-</span>commands<span style="color: #339933;">:</span> EHLO mail<span style="color: #339933;">.</span>example<span style="color: #339933;">.</span>com Hello <span style="color: #009900;">&#91;</span>1<span style="color: #339933;">.</span>1<span style="color: #339933;">.</span>1<span style="color: #339933;">.</span>1<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> pleased to meet you<span style="color: #339933;">,</span> ENHANCEDSTATUSCODES<span style="color: #339933;">,</span> PIPELINING<span style="color: #339933;">,</span> 8BITMIME<span style="color: #339933;">,</span> SIZE<span style="color: #339933;">,</span> DSN<span style="color: #339933;">,</span> ETRN<span style="color: #339933;">,</span> AUTH DIGEST<span style="color: #339933;">-</span>MD5 CRAM<span style="color: #339933;">-</span>MD5<span style="color: #339933;">,</span> DELIVERBY<span style="color: #339933;">,</span> HELP
<span style="color: #339933;">|</span>_ HELP 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 This is sendmail version 8<span style="color: #339933;">.</span>14<span style="color: #339933;">.</span>1 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 Topics<span style="color: #339933;">:</span> 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 HELO EHLO MAIL RCPT DATA 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 RSET NOOP QUIT HELP VRFY 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 EXPN VERB ETRN DSN AUTH 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 STARTTLS 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 For more info <span style="color: #000000; font-weight: bold;">use</span> <span style="color: #ff0000;">&quot;HELP &quot;</span><span style="color: #339933;">.</span> 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 To report bugs in the implementation see 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 http<span style="color: #339933;">://</span>www<span style="color: #339933;">.</span>sendmail<span style="color: #339933;">.</span>org<span style="color: #339933;">/</span>email<span style="color: #339933;">-</span>addresses<span style="color: #339933;">.</span>html 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 For <span style="color: #000066;">local</span> information <span style="color: #000066;">send</span> email to Postmaster at your site<span style="color: #339933;">.</span> 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 End of HELP info
<span style="color: #cc66cc;">37</span><span style="color: #339933;">/</span>tcp   <span style="color: #000066;">open</span>  <span style="color: #000066;">time</span>      <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">32</span> bits<span style="color: #009900;">&#41;</span>
<span style="color: #cc66cc;">80</span><span style="color: #339933;">/</span>tcp   <span style="color: #000066;">open</span>  http      Apache httpd 2<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>4 <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>Unix<span style="color: #009900;">&#41;</span> DAV<span style="color: #339933;">/</span><span style="color: #cc66cc;">2</span> PHP<span style="color: #339933;">/</span>5<span style="color: #339933;">.</span>2<span style="color: #339933;">.</span>4<span style="color: #009900;">&#41;</span>
<span style="color: #339933;">|</span>  html<span style="color: #339933;">-</span>title<span style="color: #339933;">:</span> Online Global Resource
<span style="color: #339933;">|</span>_ Requested resource was http<span style="color: #339933;">://</span>example<span style="color: #339933;">.</span>com<span style="color: #339933;">/</span>src<span style="color: #339933;">/</span>login<span style="color: #339933;">.</span>php
<span style="color: #cc66cc;">110</span><span style="color: #339933;">/</span>tcp  <span style="color: #000066;">open</span>  pop3      Openwall popa3d
<span style="color: #339933;">|</span>_ pop3<span style="color: #339933;">-</span>capabilities<span style="color: #339933;">:</span> capa
<span style="color: #cc66cc;">111</span><span style="color: #339933;">/</span>tcp  <span style="color: #000066;">open</span>  rpcbind
<span style="color: #339933;">|</span>  rpcinfo<span style="color: #339933;">:</span>
<span style="color: #339933;">|</span>  <span style="color: #cc66cc;">100000</span>  <span style="color: #cc66cc;">2</span>        <span style="color: #cc66cc;">111</span><span style="color: #339933;">/</span>udp  rpcbind
<span style="color: #339933;">|</span>  <span style="color: #cc66cc;">100011</span>  <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span>      <span style="color: #cc66cc;">929</span><span style="color: #339933;">/</span>udp  rquotad
<span style="color: #339933;">|</span>  <span style="color: #cc66cc;">100003</span>  <span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span>   <span style="color: #cc66cc;">2049</span><span style="color: #339933;">/</span>udp  nfs
<span style="color: #339933;">|</span>  <span style="color: #cc66cc;">100024</span>  <span style="color: #cc66cc;">1</span>      <span style="color: #cc66cc;">55627</span><span style="color: #339933;">/</span>udp  status
<span style="color: #339933;">|</span>  <span style="color: #cc66cc;">100021</span>  <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span>  <span style="color: #cc66cc;">55629</span><span style="color: #339933;">/</span>udp  nlockmgr
<span style="color: #339933;">|</span>  <span style="color: #cc66cc;">100005</span>  <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span>  <span style="color: #cc66cc;">55630</span><span style="color: #339933;">/</span>udp  mountd
<span style="color: #339933;">|</span>  <span style="color: #cc66cc;">100000</span>  <span style="color: #cc66cc;">2</span>        <span style="color: #cc66cc;">111</span><span style="color: #339933;">/</span>tcp  rpcbind
<span style="color: #339933;">|</span>  <span style="color: #cc66cc;">100011</span>  <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span>      <span style="color: #cc66cc;">932</span><span style="color: #339933;">/</span>tcp  rquotad
<span style="color: #339933;">|</span>  <span style="color: #cc66cc;">100003</span>  <span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span>   <span style="color: #cc66cc;">2049</span><span style="color: #339933;">/</span>tcp  nfs
<span style="color: #339933;">|</span>  <span style="color: #cc66cc;">100024</span>  <span style="color: #cc66cc;">1</span>      <span style="color: #cc66cc;">50902</span><span style="color: #339933;">/</span>tcp  status
<span style="color: #339933;">|</span>  <span style="color: #cc66cc;">100021</span>  <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">4</span>  <span style="color: #cc66cc;">51522</span><span style="color: #339933;">/</span>tcp  nlockmgr
<span style="color: #339933;">|</span>_ <span style="color: #cc66cc;">100005</span>  <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">3</span>  <span style="color: #cc66cc;">60993</span><span style="color: #339933;">/</span>tcp  mountd
<span style="color: #cc66cc;">143</span><span style="color: #339933;">/</span>tcp  <span style="color: #000066;">open</span>  imap      UW imapd <span style="color: #cc66cc;">2004.357</span>
<span style="color: #339933;">|</span>_ imap<span style="color: #339933;">-</span>capabilities<span style="color: #339933;">:</span> BINARY THREAD<span style="color: #339933;">=</span>ORDEREDSUBJECT IMAP4REV1 STARTTLS LOGIN<span style="color: #339933;">-</span>REFERRALS UNSELECT SCAN SASL<span style="color: #339933;">-</span>IR THREAD<span style="color: #339933;">=</span>REFERENCES MAILBOX<span style="color: #339933;">-</span>REFERRALS SORT AUTH<span style="color: #339933;">=</span>LOGIN LITERAL<span style="color: #339933;">+</span> IDLE NAMESPACE MULTIAPPEND
<span style="color: #cc66cc;">587</span><span style="color: #339933;">/</span>tcp  <span style="color: #000066;">open</span>  smtp      Sendmail 8<span style="color: #339933;">.</span>14<span style="color: #339933;">.</span>1<span style="color: #339933;">/</span>8<span style="color: #339933;">.</span>14<span style="color: #339933;">.</span>1
<span style="color: #339933;">|</span>  smtp<span style="color: #339933;">-</span>commands<span style="color: #339933;">:</span> EHLO mail<span style="color: #339933;">.</span>example<span style="color: #339933;">.</span>com Hello <span style="color: #009900;">&#91;</span>1<span style="color: #339933;">.</span>1<span style="color: #339933;">.</span>1<span style="color: #339933;">.</span>1<span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> pleased to meet you<span style="color: #339933;">,</span> ENHANCEDSTATUSCODES<span style="color: #339933;">,</span> PIPELINING<span style="color: #339933;">,</span> 8BITMIME<span style="color: #339933;">,</span> SIZE<span style="color: #339933;">,</span> DSN<span style="color: #339933;">,</span> AUTH DIGEST<span style="color: #339933;">-</span>MD5 CRAM<span style="color: #339933;">-</span>MD5<span style="color: #339933;">,</span> DELIVERBY<span style="color: #339933;">,</span> HELP
<span style="color: #339933;">|</span>_ HELP 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 This is sendmail version 8<span style="color: #339933;">.</span>14<span style="color: #339933;">.</span>1 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 Topics<span style="color: #339933;">:</span> 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 HELO EHLO MAIL RCPT DATA 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 RSET NOOP QUIT HELP VRFY 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 EXPN VERB ETRN DSN AUTH 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 STARTTLS 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 For more info <span style="color: #000000; font-weight: bold;">use</span> <span style="color: #ff0000;">&quot;HELP &quot;</span><span style="color: #339933;">.</span> 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 To report bugs in the implementation see 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 http<span style="color: #339933;">://</span>www<span style="color: #339933;">.</span>sendmail<span style="color: #339933;">.</span>org<span style="color: #339933;">/</span>email<span style="color: #339933;">-</span>addresses<span style="color: #339933;">.</span>html 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 For <span style="color: #000066;">local</span> information <span style="color: #000066;">send</span> email to Postmaster at your site<span style="color: #339933;">.</span> 2<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>0 End of HELP info
<span style="color: #cc66cc;">2000</span><span style="color: #339933;">/</span>tcp <span style="color: #000066;">open</span>  callbook<span style="color: #339933;">?</span>
<span style="color: #cc66cc;">2049</span><span style="color: #339933;">/</span>tcp <span style="color: #000066;">open</span>  rpcbind
<span style="color: #cc66cc;">3306</span><span style="color: #339933;">/</span>tcp <span style="color: #000066;">open</span>  mysql     MySQL 5<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>37
<span style="color: #339933;">|</span>  mysql<span style="color: #339933;">-</span>info<span style="color: #339933;">:</span> Protocol<span style="color: #339933;">:</span> <span style="color: #cc66cc;">10</span>
<span style="color: #339933;">|</span>  Version<span style="color: #339933;">:</span> 5<span style="color: #339933;">.</span>0<span style="color: #339933;">.</span>37
<span style="color: #339933;">|</span>  Thread ID<span style="color: #339933;">:</span> <span style="color: #cc66cc;">2757516</span>
<span style="color: #339933;">|</span>  Some Capabilities<span style="color: #339933;">:</span> Connect with DB<span style="color: #339933;">,</span> Compress<span style="color: #339933;">,</span> Transactions<span style="color: #339933;">,</span> Secure Connection
<span style="color: #339933;">|</span>  Status<span style="color: #339933;">:</span> Autocommit
<span style="color: #339933;">|</span>_ Salt<span style="color: #339933;">:</span> qD<span style="color: #0000ff;">@R</span><span style="color: #0000ff;">\V</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">,</span>c2kG_<span style="color: #339933;">+</span>SA<span style="color: #339933;">/</span>b<span style="color: #666666; font-style: italic;">#%</span>
Service Info<span style="color: #339933;">:</span> Host<span style="color: #339933;">:</span> mail<span style="color: #339933;">.</span>example<span style="color: #339933;">.</span>com<span style="color: #339933;">;</span> OS<span style="color: #339933;">:</span> Unix
Service detection performed<span style="color: #339933;">.</span> Please report any incorrect results at http<span style="color: #339933;">://</span>nmap<span style="color: #339933;">.</span>org<span style="color: #339933;">/</span>submit<span style="color: #339933;">/</span> <span style="color: #339933;">.</span>
Nmap done<span style="color: #339933;">:</span> <span style="color: #cc66cc;">1</span> IP address <span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span> host up<span style="color: #009900;">&#41;</span> scanned in <span style="color: #cc66cc;">31.31</span> seconds</pre></div></div>

<p>It was only able to detect Unix not Slackware Linux. Have fun and don&#8217;t do anything I wouldn&#8217;t do!</p>
]]></content:encoded>
			<wfw:commentRss>http://tonyvirelli.com/2009/12/28/using-nmap-to-detect-server-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>URL Shortening, for the Faint of Heart</title>
		<link>http://tonyvirelli.com/2009/12/24/url-shortening-for-the-faint-of-heart/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=url-shortening-for-the-faint-of-heart</link>
		<comments>http://tonyvirelli.com/2009/12/24/url-shortening-for-the-faint-of-heart/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 14:30:53 +0000</pubDate>
		<dc:creator>John Hass</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[bit.ly]]></category>
		<category><![CDATA[short]]></category>
		<category><![CDATA[shorten]]></category>
		<category><![CDATA[shortner]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://tonyvirelli.com/?p=312</guid>
		<description><![CDATA[Hello, Hello, Hello. Quick tut on bit.ly in PHP, nothing more nothing less (and yes I said PHP not Perl like I am so fond of). In order to use this code you need a bit.ly account. Visit http://bit.ly/account/register?rd=/ to get a login and a API Key. Here is the function: &#60;?php function shortenURL&#40;$url&#41; &#123; [...]]]></description>
			<content:encoded><![CDATA[<p>Hello, Hello, Hello.  Quick tut on bit.ly in PHP, nothing more nothing less (and yes I said PHP not Perl like I am so fond of). In order to use this code you need a bit.ly account. Visit <a href="http://bit.ly/account/register?rd=/">http://bit.ly/account/register?rd=/</a> to get a login and a API Key.<br />
<span id="more-312"></span><br />
Here is the function:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> shortenURL<span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$login</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;yourlogin&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$apikey</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;your api key&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$newurl</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;http://api.bit.ly/shorten?version=2.0.1&amp;longUrl=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$url</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;login=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$login</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;apiKey=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$apikey</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">json_decode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$newurl</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$error</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;errorCode&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$error</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$newurl</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$content</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;results&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;shortUrl&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000088;">$newurl</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">return</span> <span style="color: #000088;">$newurl</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Just include this file in any script and call</p>
<p>and boom it&#8217;s shortened.</p>
<p>Merry Christmas you filthy animal.</p>
]]></content:encoded>
			<wfw:commentRss>http://tonyvirelli.com/2009/12/24/url-shortening-for-the-faint-of-heart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test Your Network With Ping</title>
		<link>http://tonyvirelli.com/2009/12/23/test-your-network-with-ping/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=test-your-network-with-ping</link>
		<comments>http://tonyvirelli.com/2009/12/23/test-your-network-with-ping/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 14:30:05 +0000</pubDate>
		<dc:creator>John Hass</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[slider]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://tonyvirelli.com/?p=289</guid>
		<description><![CDATA[Ping is a great utility to use to test if a server is up or if a server is responding in the correct time, but what if you could use ping to actually test your network infrastructure. Lets call it a &#8220;poor mans test&#8221;. Linux ping allows you to specify the number of bytes that [...]]]></description>
			<content:encoded><![CDATA[<p>Ping is a great utility to use to test if a server is up or if a server is responding in the correct time, but what if you could use ping to actually test your network infrastructure.  Lets call it a <em>&#8220;poor mans test&#8221;</em>.</p>
<p>Linux ping allows you to specify the number of bytes that are sent to the server your pinging.<br />
<span id="more-289"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ping</span> <span style="color: #660033;">-s</span>  127.0.0.1</pre></div></div>

<p>The maximum packet size it 65507, this is 63.9990234 kilobytes, not a very big packet at all, but what if you sent hundreds of them a second?</p>
<p>Enter ping flood.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ping</span> <span style="color: #660033;">-s</span> <span style="color: #000000;">65507</span> <span style="color: #660033;">-f</span> 127.0.0.1</pre></div></div>

<p>To quote the ping man page:</p>
<blockquote><p>Flood ping. For every ECHO_REQUEST sent a period &#8220;.&#8221; is printed, while for ever ECHO_REPLY received a backspace is printed.  This provides a rapid display of how  many  packets are being dropped.  If interval is not given, it sets interval to zero and outputs packets as fast as they come back or one hundred times per second, whichever is more.  Only the super-user may use this option with zero interval.</p></blockquote>
<p>Here is an example of the output</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ping</span> 192.168.10.27 <span style="color: #660033;">-s</span> <span style="color: #000000;">65507</span> <span style="color: #660033;">-f</span>
PING 192.168.10.27 <span style="color: #7a0874; font-weight: bold;">&#40;</span>192.168.10.27<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">65507</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">65535</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> bytes of data.
.
<span style="color: #660033;">---</span> 192.168.10.27 <span style="color: #c20cb9; font-weight: bold;">ping</span> statistics <span style="color: #660033;">---</span>
<span style="color: #000000;">267</span> packets transmitted, <span style="color: #000000;">266</span> received, <span style="color: #000000;">0</span><span style="color: #000000; font-weight: bold;">%</span> packet loss, <span style="color: #000000; font-weight: bold;">time</span> 4321ms
rtt min<span style="color: #000000; font-weight: bold;">/</span>avg<span style="color: #000000; font-weight: bold;">/</span>max<span style="color: #000000; font-weight: bold;">/</span>mdev = <span style="color: #000000;">11.476</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">14.489</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">30.344</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5.301</span> ms, pipe <span style="color: #000000;">3</span>, ipg<span style="color: #000000; font-weight: bold;">/</span>ewma <span style="color: #000000;">16.245</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">11.551</span> ms</pre></div></div>

<p>If I had lost a packet it should show a packet loss. As you can see, the server is sitting on the same switch as my desktop. It dropped 0 packets and had a rtt of 11.476 ms.</p>
<p><strong>Not bad!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://tonyvirelli.com/2009/12/23/test-your-network-with-ping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
