<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>scriptorlog</title>
	<atom:link href="http://scriptorlog.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://scriptorlog.wordpress.com</link>
	<description>Shell Scripting Blog</description>
	<lastBuildDate>Tue, 04 Oct 2011 18:31:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='scriptorlog.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>scriptorlog</title>
		<link>http://scriptorlog.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://scriptorlog.wordpress.com/osd.xml" title="scriptorlog" />
	<atom:link rel='hub' href='http://scriptorlog.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Run Process monitor remotely on Windows 7 via psexec</title>
		<link>http://scriptorlog.wordpress.com/2011/10/04/run-process-monitor-remotely-on-windows-7-via-psexec/</link>
		<comments>http://scriptorlog.wordpress.com/2011/10/04/run-process-monitor-remotely-on-windows-7-via-psexec/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 18:31:48 +0000</pubDate>
		<dc:creator>irobx</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://scriptorlog.wordpress.com/?p=204</guid>
		<description><![CDATA[In order to account for session 0 isolation you need to use the following commands: psexec -s -i 0 \\computername c:\reskit\procmon /backingfile c:\temp\procmon /quiet and then to stop collection: psexec -s -i 0 \\computername c:\reskit\procmon /terminate It is critically important &#8230; <a href="http://scriptorlog.wordpress.com/2011/10/04/run-process-monitor-remotely-on-windows-7-via-psexec/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=204&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In order to account for session 0 isolation you need to use the following commands:</p>
<p>psexec -s -i 0 \\computername c:\reskit\procmon /backingfile c:\temp\procmon /quiet</p>
<p>and then to stop collection:</p>
<p>psexec -s -i 0 \\computername c:\reskit\procmon /terminate</p>
<p>It is critically important that you stop the procmon collection process by using the terminate command. If you simply kill the process or reboot while it is running the log file will be corrupted and unusable.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scriptorlog.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scriptorlog.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scriptorlog.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scriptorlog.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/scriptorlog.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/scriptorlog.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/scriptorlog.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/scriptorlog.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scriptorlog.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scriptorlog.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scriptorlog.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scriptorlog.wordpress.com/204/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scriptorlog.wordpress.com/204/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scriptorlog.wordpress.com/204/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=204&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://scriptorlog.wordpress.com/2011/10/04/run-process-monitor-remotely-on-windows-7-via-psexec/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b06c4506be666e5bc1ac03b5c1c0ce7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">irobx</media:title>
		</media:content>
	</item>
		<item>
		<title>OpenSSL certificate information commands</title>
		<link>http://scriptorlog.wordpress.com/2011/09/08/openssl-certificate-information-commands/</link>
		<comments>http://scriptorlog.wordpress.com/2011/09/08/openssl-certificate-information-commands/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 13:00:17 +0000</pubDate>
		<dc:creator>irobx</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://scriptorlog.wordpress.com/?p=205</guid>
		<description><![CDATA[This is a series of commands to get information from a certificate file. This coomand returns all the information at once: openssl x509 -text -in cert.pem The following command return specific pieces of information from the certificate in question: # &#8230; <a href="http://scriptorlog.wordpress.com/2011/09/08/openssl-certificate-information-commands/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=205&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a series of commands to get information from a certificate file. This coomand returns all the information at once:</p>
<p>openssl x509 -text -in cert.pem</p>
<p>The following command return specific pieces of information from the certificate in question:</p>
<p># who issued the cert?<br />
openssl x509 -noout -in cert.pem -issuer</p>
<p># to whom was it issued?<br />
openssl x509 -noout -in cert.pem -subject</p>
<p># for what dates is it valid?<br />
openssl x509 -noout -in cert.pem -dates</p>
<p># the above, all at once<br />
openssl x509 -noout -in cert.pem -issuer -subject -dates</p>
<p># what is its hash value?<br />
openssl x509 -noout -in cert.pem -hash</p>
<p># what is its MD5 fingerprint?<br />
openssl x509 -noout -in cert.pem -fingerprint</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scriptorlog.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scriptorlog.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scriptorlog.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scriptorlog.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/scriptorlog.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/scriptorlog.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/scriptorlog.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/scriptorlog.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scriptorlog.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scriptorlog.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scriptorlog.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scriptorlog.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scriptorlog.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scriptorlog.wordpress.com/205/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=205&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://scriptorlog.wordpress.com/2011/09/08/openssl-certificate-information-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b06c4506be666e5bc1ac03b5c1c0ce7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">irobx</media:title>
		</media:content>
	</item>
		<item>
		<title>Tshark command to show user agents</title>
		<link>http://scriptorlog.wordpress.com/2011/07/26/tshark-command-to-show-user-agents/</link>
		<comments>http://scriptorlog.wordpress.com/2011/07/26/tshark-command-to-show-user-agents/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 20:23:57 +0000</pubDate>
		<dc:creator>irobx</dc:creator>
				<category><![CDATA[Linux Shell Scripts]]></category>

		<guid isPermaLink="false">http://scriptorlog.wordpress.com/?p=202</guid>
		<description><![CDATA[This is handy when looking at http traffic on an IDS: tshark -T fields -e http.user_agent<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=202&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is handy when looking at http traffic on an IDS:</p>
<p>tshark -T fields -e http.user_agent</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scriptorlog.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scriptorlog.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scriptorlog.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scriptorlog.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/scriptorlog.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/scriptorlog.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/scriptorlog.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/scriptorlog.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scriptorlog.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scriptorlog.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scriptorlog.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scriptorlog.wordpress.com/202/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scriptorlog.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scriptorlog.wordpress.com/202/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=202&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://scriptorlog.wordpress.com/2011/07/26/tshark-command-to-show-user-agents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b06c4506be666e5bc1ac03b5c1c0ce7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">irobx</media:title>
		</media:content>
	</item>
		<item>
		<title>Netsh command to dump firewall rules</title>
		<link>http://scriptorlog.wordpress.com/2011/07/11/netsh-command-to-dump-firewall-rules/</link>
		<comments>http://scriptorlog.wordpress.com/2011/07/11/netsh-command-to-dump-firewall-rules/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 19:49:04 +0000</pubDate>
		<dc:creator>irobx</dc:creator>
				<category><![CDATA[NT Shell Scripts]]></category>

		<guid isPermaLink="false">http://scriptorlog.wordpress.com/?p=200</guid>
		<description><![CDATA[A quick netsh command to dump out your firewall rules: netsh advfirewall firewall show rule name=all<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=200&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A quick netsh command to dump out your firewall rules:</p>
<p>netsh advfirewall firewall show rule name=all</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scriptorlog.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scriptorlog.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scriptorlog.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scriptorlog.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/scriptorlog.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/scriptorlog.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/scriptorlog.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/scriptorlog.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scriptorlog.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scriptorlog.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scriptorlog.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scriptorlog.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scriptorlog.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scriptorlog.wordpress.com/200/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=200&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://scriptorlog.wordpress.com/2011/07/11/netsh-command-to-dump-firewall-rules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b06c4506be666e5bc1ac03b5c1c0ce7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">irobx</media:title>
		</media:content>
	</item>
		<item>
		<title>Active Directory Last Logon Time</title>
		<link>http://scriptorlog.wordpress.com/2011/07/07/194/</link>
		<comments>http://scriptorlog.wordpress.com/2011/07/07/194/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 14:57:19 +0000</pubDate>
		<dc:creator>irobx</dc:creator>
				<category><![CDATA[VBscript]]></category>

		<guid isPermaLink="false">http://scriptorlog.wordpress.com/?p=194</guid>
		<description><![CDATA[This script retreives the LastLogon Active Directory attribute for a user and returns the date in human readable format. Note the script takes the users CN rather than samid or UPN, which in some cases can be different. If Wscript.Arguments.Count &#8230; <a href="http://scriptorlog.wordpress.com/2011/07/07/194/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=194&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This script retreives the LastLogon Active Directory attribute for a user and returns the date in human readable format. Note the script takes the users CN rather than samid or UPN, which in some cases can be different.</p>
<pre style="width:550px;height:400px;overflow:auto;"><span style="background-color:transparent;color:blue;font-size:85%;">If Wscript.Arguments.Count = 0 Then
  Wscript.Echo "Must supply Username."
  Wscript.Quit(1)
End If

username= Wscript.Arguments(0)
' Bind to Active Directory object.
On Error Resume Next

stradspath=CheckForUser(username)
wscript.echo stradspath

Set objUser = GetObject("LDAP://" &amp; strAdsPath)
Set objLastLogon = objUser.Get("lastLogonTimestamp")

intLastLogonTime = objLastLogon.HighPart * (2^32) + objLastLogon.LowPart
intLastLogonTime = intLastLogonTime / (60 * 10000000)
intLastLogonTime = intLastLogonTime / 1440

Wscript.Echo "Last logon time: " &amp; intLastLogonTime + #1/1/1601#

function CheckForUser(samAccountName)
    dtStart = TimeValue(Now())
    strUserName = samAccountName
    Set objConnection = CreateObject("ADODB.Connection")
    objConnection.Open "Provider=ADsDSOObject;"

    Set objCommand = CreateObject("ADODB.Command")
    objCommand.ActiveConnection = objConnection

    objCommand.CommandText = _
        ";(&amp;(objectCategory=*)(cn=" &amp; strUserName &amp; "));distinguishedName,sAMAccountName;subtree"

    Set objRecordSet = objCommand.Execute

    If objRecordset.RecordCount = 0 Then
        WScript.Echo "sAMAccountName: " &amp; strUserName &amp; " does not exist."
	wscript.quit
    Else
        'WScript.Echo strUserName &amp; " exists."
    End If
    'wscript.echo objRecordset(0)
    'wscript.echo "sAMAccountName: " &amp; objRecordset(1)
    CheckForUser=objRecordset(0)
    objConnection.Close
    'WScript.Echo "Script completed in " &amp; Second(TimeValue(now()) - dtStart) &amp; " second or less."
End function

Set objUser = Nothing
Set objLastLogon = Nothing</span></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scriptorlog.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scriptorlog.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scriptorlog.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scriptorlog.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/scriptorlog.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/scriptorlog.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/scriptorlog.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/scriptorlog.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scriptorlog.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scriptorlog.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scriptorlog.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scriptorlog.wordpress.com/194/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scriptorlog.wordpress.com/194/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scriptorlog.wordpress.com/194/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=194&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://scriptorlog.wordpress.com/2011/07/07/194/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b06c4506be666e5bc1ac03b5c1c0ce7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">irobx</media:title>
		</media:content>
	</item>
		<item>
		<title>Site Move Completed</title>
		<link>http://scriptorlog.wordpress.com/2011/07/06/site-move-completed/</link>
		<comments>http://scriptorlog.wordpress.com/2011/07/06/site-move-completed/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 23:47:01 +0000</pubDate>
		<dc:creator>irobx</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://scriptorlog.wordpress.com/?p=182</guid>
		<description><![CDATA[I have finished moving my posts over from Serendipity on my irobx.net site over to cloud based WordPress site. Yes, I have moved to the cloud. I can just feel the ROI flooding in. Not to say the process was &#8230; <a href="http://scriptorlog.wordpress.com/2011/07/06/site-move-completed/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=182&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have finished moving my posts over from Serendipity on my irobx.net site over to cloud based WordPress site. Yes, I have moved to the cloud. I can just feel the ROI flooding in. Not to say the process was seamless or easy. I had to export an RSS feed into outlook and forward emails to the posting address for the WordPress site, then hand edit the formatting differences. If I had many more posts I probably would have come up with a scripted solution, as it was my site is just small enough that the time spent manually importing was less than creating a scripted solution. It may sound strange for someone who enjoys scripting, but I will rarely use a script to do a task that is quicker done with a manual process. I *will* script small routines that I know I will repeat many times, usually after having repeated them enough times for them to become annoying. Nice to have it finished in any event.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scriptorlog.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scriptorlog.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scriptorlog.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scriptorlog.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/scriptorlog.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/scriptorlog.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/scriptorlog.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/scriptorlog.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scriptorlog.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scriptorlog.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scriptorlog.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scriptorlog.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scriptorlog.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scriptorlog.wordpress.com/182/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=182&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://scriptorlog.wordpress.com/2011/07/06/site-move-completed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b06c4506be666e5bc1ac03b5c1c0ce7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">irobx</media:title>
		</media:content>
	</item>
		<item>
		<title>Read Grep exit codes</title>
		<link>http://scriptorlog.wordpress.com/2011/07/06/read-grep-exit-codes/</link>
		<comments>http://scriptorlog.wordpress.com/2011/07/06/read-grep-exit-codes/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 18:56:53 +0000</pubDate>
		<dc:creator>irobx</dc:creator>
				<category><![CDATA[Linux Shell Scripts]]></category>

		<guid isPermaLink="false">http://scriptorlog.wordpress.com/?p=180</guid>
		<description><![CDATA[for x in `cat /tmp/t1.txt` do grep -q $x /tmp/t.txt if [[ $? -ne 0 ]] then echo $x fi done<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=180&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre style="color:blue;">for x in `cat /tmp/t1.txt`
	do grep -q $x /tmp/t.txt
		if [[ $? -ne 0 ]]
			then echo $x
		fi
	done</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scriptorlog.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scriptorlog.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scriptorlog.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scriptorlog.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/scriptorlog.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/scriptorlog.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/scriptorlog.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/scriptorlog.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scriptorlog.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scriptorlog.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scriptorlog.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scriptorlog.wordpress.com/180/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scriptorlog.wordpress.com/180/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scriptorlog.wordpress.com/180/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=180&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://scriptorlog.wordpress.com/2011/07/06/read-grep-exit-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b06c4506be666e5bc1ac03b5c1c0ce7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">irobx</media:title>
		</media:content>
	</item>
		<item>
		<title>SED one-liner to comment out all lines containing a string</title>
		<link>http://scriptorlog.wordpress.com/2011/07/06/sed-one-liner-to-comment-out-all-lines-containing-a-string/</link>
		<comments>http://scriptorlog.wordpress.com/2011/07/06/sed-one-liner-to-comment-out-all-lines-containing-a-string/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 18:55:24 +0000</pubDate>
		<dc:creator>irobx</dc:creator>
				<category><![CDATA[Linux Shell Scripts]]></category>

		<guid isPermaLink="false">http://scriptorlog.wordpress.com/?p=175</guid>
		<description><![CDATA[sed -i &#8216;s/.*ET P2P.*/#&#38;/g&#8217; /etc/suricata/rules/emerging-all.rules<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=175&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> sed -i &#8216;s/.*ET P2P.*/#&amp;/g&#8217; /etc/suricata/rules/emerging-all.rules</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scriptorlog.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scriptorlog.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scriptorlog.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scriptorlog.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/scriptorlog.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/scriptorlog.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/scriptorlog.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/scriptorlog.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scriptorlog.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scriptorlog.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scriptorlog.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scriptorlog.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scriptorlog.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scriptorlog.wordpress.com/175/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=175&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://scriptorlog.wordpress.com/2011/07/06/sed-one-liner-to-comment-out-all-lines-containing-a-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b06c4506be666e5bc1ac03b5c1c0ce7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">irobx</media:title>
		</media:content>
	</item>
		<item>
		<title>Netstat output showing process names for established connections</title>
		<link>http://scriptorlog.wordpress.com/2011/05/11/netstat-output-showing-process-names-for-established-connections/</link>
		<comments>http://scriptorlog.wordpress.com/2011/05/11/netstat-output-showing-process-names-for-established-connections/#comments</comments>
		<pubDate>Wed, 11 May 2011 18:39:16 +0000</pubDate>
		<dc:creator>irobx</dc:creator>
				<category><![CDATA[NT Shell Scripts]]></category>

		<guid isPermaLink="false">http://scriptorlog.wordpress.com/2011/07/06/netstat-output-showing-process-names-for-established-connections/</guid>
		<description><![CDATA[Feed: Scriptorlog Posted on: Friday, March 11, 2011 1:39 PM Author: iRobx Subject: Netstat output showing process names for established connections The -b switch on netstat is a great thing. It shows you which process is using which socket or &#8230; <a href="http://scriptorlog.wordpress.com/2011/05/11/netstat-output-showing-process-names-for-established-connections/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=67&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Feed:</strong> Scriptorlog<br />
<strong>Posted on:</strong> Friday, March 11, 2011 1:39 PM<br />
<strong>Author:</strong> iRobx<br />
<strong>Subject:</strong> Netstat output showing process names for established connections</p>
<p>The -b switch on netstat is a great thing. It shows you which process is using which socket or listening on a port. Used to was you could get this information using the -o switch which returned only the Process ID numbers (PID). Back in those olden days of yore I wrote my portbuster script which show process names for each listening port. Now since vista using the -b switch requires elevation. Also, the -b switch puts the process name on different lines than the ip information which makes the output un-grepable. One way to get around this is to adapt my portbuster script to show process name for all established connections. That is what I have done:</p>
<p>connected-procs<br />
============</p>
<pre style="width:550px;height:100px;overflow:auto;">
<span style="background-color:transparent;color:blue;font-size:85%;">@echo off
for /f &quot;skip=4 tokens=1,2,3,4,5&quot; %%i in ('netstat -a -n -o^|findstr ESTABLISHED') do (
if %%i==TCP for /f &quot;tokens=1-3&quot; %%u in ('tasklist /fi &quot;PID eq &quot;%%m /nh /svc') do echo %%u,%%i,%%j,%%k,%%v
)</span></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scriptorlog.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scriptorlog.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scriptorlog.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scriptorlog.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/scriptorlog.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/scriptorlog.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/scriptorlog.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/scriptorlog.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scriptorlog.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scriptorlog.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scriptorlog.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scriptorlog.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scriptorlog.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scriptorlog.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=67&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://scriptorlog.wordpress.com/2011/05/11/netstat-output-showing-process-names-for-established-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b06c4506be666e5bc1ac03b5c1c0ce7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">irobx</media:title>
		</media:content>
	</item>
		<item>
		<title>Dump DHCP Client info for all hosts using netsh</title>
		<link>http://scriptorlog.wordpress.com/2011/04/29/dump-dhcp-client-info-for-all-hosts-using-netsh/</link>
		<comments>http://scriptorlog.wordpress.com/2011/04/29/dump-dhcp-client-info-for-all-hosts-using-netsh/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 19:57:16 +0000</pubDate>
		<dc:creator>irobx</dc:creator>
				<category><![CDATA[NT Shell Scripts]]></category>

		<guid isPermaLink="false">http://scriptorlog.wordpress.com/2011/07/06/dump-dhcp-client-info-for-all-hosts-using-netsh/</guid>
		<description><![CDATA[Feed: Scriptorlog Posted on: Friday, April 29, 2011 2:57 PM Author: iRobx Subject: Dump DHCP Client info for all hosts using netsh for /f %i in ('netsh dhcp server \\MYDHCPSERVERNAME show scope ^&#124;findstr &#34;255.0&#34;') do netsh dhcp server \\MYDHCPSERVERNAME scope &#8230; <a href="http://scriptorlog.wordpress.com/2011/04/29/dump-dhcp-client-info-for-all-hosts-using-netsh/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=74&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Feed:</strong> Scriptorlog<br />
<strong>Posted on:</strong> Friday, April 29, 2011 2:57 PM<br />
<strong>Author:</strong> iRobx<br />
<strong>Subject:</strong> Dump DHCP Client info for all hosts using netsh</p>
<pre style="color:blue;">for /f %i in ('netsh dhcp server \\MYDHCPSERVERNAME show scope ^|findstr &quot;255.0&quot;') do netsh dhcp server \\MYDHCPSERVERNAME scope %i show clients

for /f %i in ('netsh dhcp server \\MYDHCPSERVERNAME show scope ^|findstr &quot;255.0&quot;') do netsh dhcp server \\MYDHCPSERVERNAME scope %i show reservedip</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scriptorlog.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scriptorlog.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scriptorlog.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scriptorlog.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/scriptorlog.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/scriptorlog.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/scriptorlog.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/scriptorlog.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scriptorlog.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scriptorlog.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scriptorlog.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scriptorlog.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scriptorlog.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scriptorlog.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scriptorlog.wordpress.com&amp;blog=24863542&amp;post=74&amp;subd=scriptorlog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://scriptorlog.wordpress.com/2011/04/29/dump-dhcp-client-info-for-all-hosts-using-netsh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/4b06c4506be666e5bc1ac03b5c1c0ce7?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">irobx</media:title>
		</media:content>
	</item>
	</channel>
</rss>
