<?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>Packetslave Industries &#187; Code</title>
	<atom:link href="http://www.packetslave.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.packetslave.com</link>
	<description>This is my blog.  There are many like it, but this one is mine.</description>
	<lastBuildDate>Fri, 03 Sep 2010 03:39:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>AppleScript to telnet to a remote host via a bastion</title>
		<link>http://www.packetslave.com/2008/07/29/applescript-to-telnet-to-a-remote-host-via-a-bastion/</link>
		<comments>http://www.packetslave.com/2008/07/29/applescript-to-telnet-to-a-remote-host-via-a-bastion/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 19:52:32 +0000</pubDate>
		<dc:creator>blanders</dc:creator>
				<category><![CDATA[Code]]></category>

		<guid isPermaLink="false">http://www.packetslave.com/2008/07/29/applescript-to-telnet-to-a-remote-host-via-a-bastion/</guid>
		<description><![CDATA[AppleScript to SSH to my bastion host, then telnet to a remote host. Works best if you have RSA/DSA public-key authentication and an ssh-agent configured. Could probably use some better error handling. set myBastion to "public.example.com" tell application "iTerm"  activate display dialog "Enter hostname:" default answer "none" set theResult to result set theHost to text [...]]]></description>
			<content:encoded><![CDATA[<p>AppleScript to SSH to my bastion host, then telnet to a remote host. Works best if you have RSA/DSA public-key authentication and an ssh-agent configured. Could probably use some better error handling.</p>
<pre>set myBastion to "public.example.com"

tell application "iTerm"
  activate

  display dialog "Enter hostname:" default answer "none"
  set theResult to result
  set theHost to text returned of theResult

  set aTerm to (current terminal)

  if (count of terminal) = 0 then
    set aTerm to (make new terminal)
  end if

  tell aTerm
    set aSession to (make new session at end of sessions)

    tell aSession
      set name to theHost
      exec command "ssh -t " &amp; myBastion &amp; " telnet " &amp; theHost
    end tell
  snd tell

end tell</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.packetslave.com/2008/07/29/applescript-to-telnet-to-a-remote-host-via-a-bastion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Republished my ADExport Script</title>
		<link>http://www.packetslave.com/2007/04/24/republished-my-adexport-script/</link>
		<comments>http://www.packetslave.com/2007/04/24/republished-my-adexport-script/#comments</comments>
		<pubDate>Tue, 24 Apr 2007 14:50:28 +0000</pubDate>
		<dc:creator>blanders</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://www.packetslave.com/?p=8</guid>
		<description><![CDATA[Realized that at some point my script for exporting all email addresses from Microsoft Exchange got moved out of the document root. It&#8217;s back, and you can find it here. I haven&#8217;t tested it in a while (since we moved from Sendmail/SpamAssassin to IronPort at work), but it worked well enough when we were using [...]]]></description>
			<content:encoded><![CDATA[<p>Realized that at some point my script for exporting all email addresses from Microsoft Exchange got moved out of the document root.  It&#8217;s back, and you can find it <a href="http://www.packetslave.com/code/adexport.txt">here</a>.  I haven&#8217;t tested it in a while (since we moved from Sendmail/SpamAssassin to IronPort at work), but it worked well enough when we were using it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.packetslave.com/2007/04/24/republished-my-adexport-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
