<?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>Blog &#124; jim80.net &#187; Toolbox</title>
	<atom:link href="http://blog.jim80.net/category/toolbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jim80.net</link>
	<description>Security, Systems, and Storage</description>
	<lastBuildDate>Fri, 30 Apr 2010 19:46:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Quick and Dirty Port Check (ch.pl v 0.1)</title>
		<link>http://blog.jim80.net/2009/08/07/quick-and-dirty-port-check-ch-pl-v-0-1/</link>
		<comments>http://blog.jim80.net/2009/08/07/quick-and-dirty-port-check-ch-pl-v-0-1/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 21:13:40 +0000</pubDate>
		<dc:creator>jim</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Toolbox]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.jim80.net/?p=314</guid>
		<description><![CDATA[The core of the following script is based off work first started by my coworker Trent. The gist of the little script is to perform a quick scan of a hostname or IP by simply attempting to open a socket. I use this when I want to run a quick &#8220;is it online&#8221; scan of [...]]]></description>
			<content:encoded><![CDATA[<p>The core of the following script is based off work first started by my coworker Trent. The gist of the little script is to perform a quick scan of a hostname or IP by simply attempting to open a socket. I use this when I want to run a quick &#8220;is it online&#8221; scan of a server and determine if ports of interest are available to me. I added the bit that would let me open them directly from the script without having to type in an alternate command.</p>
<p>This is very much a poorly written hack-job script, and I very much expect that some of you will be able to identify some serious n00b mistakes (probably in that I still haven&#8217;t figured out how to properly localize variables), but hey, I don&#8217;t think this is half bad for my first PERL script. Yes, PERL. I&#8217;ve already been lectured about learning Python instead, but while that&#8217;s definitely on the to-do list, this script needed finishing, and I was already halfway through. It&#8217;s a tool that&#8217;s customized for me, so please hack away, and let me know what you do, as I may like it too!</p>
<p>So, I present, for your consideration and for your critique (please do), <a href="ftp://ftp.jim80.net/bin/ch.pl">&#8216;ch.pl&#8217; v 0.1</a>.</p>
<p>I generally alias ch=/usr/local/bin/ch.pl for this script in Linux and MacOS, as this lets me leave the file extension the same for when I use it in Windows. To use this in Windows, you&#8217;ll need to install PERL first. I use <a href="http://www.activestate.com">ActivePerl</a>. However please note, I&#8217;m still working on making this script Windows friendly.</p>
<p>To install in Linux/MacOS:</p>
<ul>
<li>download ch.pl using <a href="ftp://ftp.jim80.net/bin/ch.pl">FTP</a> or <a href="http://www.jim80.net/ftp/bin/ch.pl">wget</a> to /usr/local/bin/</li>
<li>chmod +x /usr/local/bin/ch.pl</li>
<li>modify your ~/.bash_aliases file (ubuntu), or your ~/.bashrc (RedHat) to include the following:
<ul>
<li>&#8216;alias ch=/usr/local/bin/ch.pl&#8217;</li>
</ul>
</li>
</ul>
<p>Usage: ch [hostname or IP]<em> [optional: port(s) to check, separated by commas]</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jim80.net/2009/08/07/quick-and-dirty-port-check-ch-pl-v-0-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
