<?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.rayfoo] &#187; afterglow</title>
	<atom:link href="http://blog.rayfoo.info/tag/afterglow/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.rayfoo.info</link>
	<description>Infosec, DFIR, tech geekery, thoughts and whatnot</description>
	<lastBuildDate>Wed, 25 Jan 2012 00:36:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Visualizing sshd brute-force attempts (part 2)</title>
		<link>http://blog.rayfoo.info/2010/06/visualizing-sshd-brute-force-attempts-part-2</link>
		<comments>http://blog.rayfoo.info/2010/06/visualizing-sshd-brute-force-attempts-part-2#comments</comments>
		<pubDate>Wed, 02 Jun 2010 16:42:57 +0000</pubDate>
		<dc:creator>ray</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[afterglow]]></category>
		<category><![CDATA[brute forcing]]></category>
		<category><![CDATA[data visualization]]></category>
		<category><![CDATA[graphviz]]></category>
		<category><![CDATA[log analysis]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[Splunk]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://blog.rayfoo.info/?p=581</guid>
		<description><![CDATA[It's always better to Read The Fine Manual (or run perl afterglow.pl -h for the more updated helpfile)...though it's not really that well documented  Afterglow allows for two column inputs, rather than us having to do weird tricks to make them 3-column. (Note to self: get the raw data with fields in the order that [...]]]></description>
			<content:encoded><![CDATA[<p>It's always better to Read The Fine <a href="http://afterglow.sourceforge.net/manual.html#6">Manual</a> (or run <span style="color: #339966;">perl afterglow.pl -h</span> for the more updated helpfile)...though it's not really <em>that</em> well documented <img src='http://blog.rayfoo.info/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />   Afterglow allows for two column inputs, rather than us having to do weird tricks to make them 3-column.</p>
<p>(Note to self: get the raw data with fields in the order that you want where possible/faster, rather than pumping it through <span style="color: #339966;">sed</span>.  Makes for good practice though.)</p>
<p>Using the csv file containing userids (visualized in yellow) and IPs (visualized in green) over the past few months from Splunk, here're the results of some of the experiments.</p>
<p>Oh, for the Windows users, you can use <span style="color: #339966;">type</span> instead of <span style="color: #339966;">cat</span> <img src='http://blog.rayfoo.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>First test using <a href="http://www.graphviz.org/About.php">GraphViz's</a> neato to layout:</p>
<p style="text-align: center;"><span style="color: #339966;">perl afterglow.pl -b 1 -i &lt;infile&gt; -c color.properties -t | neato -Tgif -o output.gif</span></p>
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://lh4.ggpht.com/_evPUEWAwFrY/TAaB9H39-rI/AAAAAAAAI_E/bjhxhWE5vUc/test-neato.png"><img class="    " title="test afterglow neato" src="http://lh4.ggpht.com/_evPUEWAwFrY/TAaB9H39-rI/AAAAAAAAI_E/bjhxhWE5vUc/s400/test-neato.png" alt="" width="400" height="356" /></a><p class="wp-caption-text">Huge, but better visualized with -e 5 option (Resulting image for that is too huge to upload though <img src='http://blog.rayfoo.info/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ).  Note the single IP in the middle (the yellow explosion) that had been trying a LOT of userids to date.</p></div>
<p>Second test using fdp:</p>
<p style="text-align: center;"><span style="color: #339966;">perl afterglow.pl -b 1 -i &lt;infile&gt; -c color.properties -t | fdp -Tgif -o output.gif</span></p>
<div class="wp-caption aligncenter" style="width: 226px"><a href="http://lh6.ggpht.com/_evPUEWAwFrY/TAaCCQCGs8I/AAAAAAAAI_I/Sogy7NxglyE/test-fdp.png"><img title="test afterglow fdp" src="http://lh6.ggpht.com/_evPUEWAwFrY/TAaCCQCGs8I/AAAAAAAAI_I/Sogy7NxglyE/s400/test-fdp.png" alt="" width="216" height="400" /></a><p class="wp-caption-text">fdp doesn&#39;t seem to be well suited for this</p></div>
<p>Third test using sfdp:</p>
<p>No command here, you should have noticed the pattern from the first two...</p>
<div class="wp-caption aligncenter" style="width: 410px"><a href="http://lh5.ggpht.com/_evPUEWAwFrY/TAaCESgte6I/AAAAAAAAI_M/Z-jVk3Xf3AE/test-sfdp.png"><img title="test afterglow sfdp" src="http://lh5.ggpht.com/_evPUEWAwFrY/TAaCESgte6I/AAAAAAAAI_M/Z-jVk3Xf3AE/s400/test-sfdp.png" alt="" width="400" height="394" /></a><p class="wp-caption-text">_even_ less suited for this type of data...</p></div>
<p>Last test using twopi:</p>
<p>According to the <a href="http://www.graphviz.org/About.php">GraphViz</a> site, twopi's more suited for visualizing stuff like telecommunications flows.</p>
<div class="wp-caption aligncenter" style="width: 386px"><a href="http://lh4.ggpht.com/_evPUEWAwFrY/TAaCFUsQLcI/AAAAAAAAI_Q/9Y9wHwDpzrI/test-twopi.png"><img title="test afterglow twopi" src="http://lh4.ggpht.com/_evPUEWAwFrY/TAaCFUsQLcI/AAAAAAAAI_Q/9Y9wHwDpzrI/s400/test-twopi.png" alt="" width="376" height="400" /></a><p class="wp-caption-text">twopi</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.rayfoo.info/2010/06/visualizing-sshd-brute-force-attempts-part-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Afterglow tests</title>
		<link>http://blog.rayfoo.info/2010/05/afterglow-tests</link>
		<comments>http://blog.rayfoo.info/2010/05/afterglow-tests#comments</comments>
		<pubDate>Sun, 30 May 2010 15:04:36 +0000</pubDate>
		<dc:creator>ray</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[afterglow]]></category>
		<category><![CDATA[cut]]></category>
		<category><![CDATA[data visualization]]></category>
		<category><![CDATA[graphviz]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[neato]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[tcpdump]]></category>
		<category><![CDATA[tee]]></category>
		<category><![CDATA[uniq]]></category>

		<guid isPermaLink="false">http://blog.rayfoo.info/?p=564</guid>
		<description><![CDATA[Just tryin'... Connections from/to laptop sudo tcpdump -i wlan0 -p&#124;cut -d' ' -f3,5&#124;cut -d':' -f1&#124;tee dump cat dump &#124;uniq &#124;sed -r 's/^(.*)\.[^.]+ (.*)\.([^.]+)/\1,\3,\2/' &#62; local.csv cat local.csv &#124;./afterglow.pl &#124;neato -Tgif -o test.gif Connections from laptop Let's try again, this time only focusing on the outgoing connections initiated:]]></description>
			<content:encoded><![CDATA[<p>Just tryin'...</p>
<h2>Connections from/to laptop</h2>
<pre>sudo tcpdump -i wlan0 -p|cut -d' ' -f3,5|cut -d':' -f1|tee dump</pre>
<pre>cat dump |uniq |sed -r 's/^(.*)\.[^.]+ (.*)\.([^.]+)/\1,\3,\2/' &gt; local.csv</pre>
<pre>cat local.csv |./afterglow.pl |neato -Tgif -o test.gif</pre>
<div id="attachment_572" class="wp-caption aligncenter" style="width: 254px"><a href="http://blog.rayfoo.info/wp-content/uploads/2010/05/test.gif"><img class="size-medium wp-image-572" title="Connections to/from laptop" src="http://blog.rayfoo.info/wp-content/uploads/2010/05/test-244x300.gif" alt="Connections to/from laptop" width="244" height="300" /></a><p class="wp-caption-text">What a mess!</p></div>
<h2>Connections from laptop</h2>
<h2><span style="font-weight: normal; font-size: 13px;">Let's try again, this time only focusing on the outgoing connections initiated:</span></h2>
<p><span style="font-weight: normal; font-size: 13px;"> </span></p>
<div id="attachment_573" class="wp-caption aligncenter" style="width: 239px"><a href="http://blog.rayfoo.info/wp-content/uploads/2010/05/test1.gif"><img class="size-medium wp-image-573" title="Connections from laptop" src="http://blog.rayfoo.info/wp-content/uploads/2010/05/test1-229x300.gif" alt="Connections from laptop" width="229" height="300" /></a><p class="wp-caption-text">Much better...</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.rayfoo.info/2010/05/afterglow-tests/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

