<?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; information gathering</title>
	<atom:link href="http://blog.rayfoo.info/tag/information-gathering/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>Interesting scanner</title>
		<link>http://blog.rayfoo.info/2010/07/interesting-scanner</link>
		<comments>http://blog.rayfoo.info/2010/07/interesting-scanner#comments</comments>
		<pubDate>Sat, 17 Jul 2010 16:26:26 +0000</pubDate>
		<dc:creator>ray</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[information gathering]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[scanners]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[TODO]]></category>
		<category><![CDATA[web application]]></category>

		<guid isPermaLink="false">http://blog.rayfoo.info/?p=652</guid>
		<description><![CDATA[I know I'm probably the only one in this island that thinks this as interesting, but nevertheless... It's normal for the web server to get scanned by other "inquisitive" people/machines/bots, but this tool looks pretty interesting...  Will dig deeper into this later. The scanners typically try to detect whether I'm running certain vulnerable versions of [...]]]></description>
			<content:encoded><![CDATA[<p>I know I'm probably the only one in this island that thinks this as interesting, but nevertheless...</p>
<p>It's normal for the web server to get scanned by other "inquisitive" people/machines/bots, but this tool looks pretty interesting...  Will dig deeper into this later.</p>
<p>The scanners typically try to detect whether I'm running certain vulnerable versions of web apps for them to exploit.  So when the web app does not exist, guess what happens? <img src='http://blog.rayfoo.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>This particular scan was interesting, because of the <span style="color: #ff0000;">user agent</span> field.  Check it out:</p>
<p>200.6.121.56 - - [17/Jul/2010:14:51:06 +0800] "GET /roundcubemail-0.1//bin/msgimport HTTP/1.1" 404 136 "-" "<span style="color: #ff0000;">Toata dragostea mea pentru diavola</span>"<br />
200.6.121.56 - - [17/Jul/2010:14:51:06 +0800] "GET /bin/msgimport HTTP/1.1" 404 136 "-" "Toata dragostea mea pentru diavola"<br />
200.6.121.56 - - [17/Jul/2010:14:51:06 +0800] "GET /wm//bin/msgimport HTTP/1.1" 404 136 "-" "Toata dragostea mea pentru diavola"<br />
200.6.121.56 - - [17/Jul/2010:14:51:06 +0800] "GET /webmail//bin/msgimport HTTP/1.1" 404 136 "-" "Toata dragostea mea pentru diavola"<br />
200.6.121.56 - - [17/Jul/2010:14:51:06 +0800] "GET /webmail2//bin/msgimport HTTP/1.1" 404 136 "-" "Toata dragostea mea pentru diavola"<br />
200.6.121.56 - - [17/Jul/2010:14:51:05 +0800] "GET /rms//bin/msgimport HTTP/1.1" 404 136 "-" "Toata dragostea mea pentru diavola"<br />
200.6.121.56 - - [17/Jul/2010:14:51:05 +0800] "GET /roundcubemail//bin/msgimport HTTP/1.1" 404 136 "-" "Toata dragostea mea pentru diavola"<br />
200.6.121.56 - - [17/Jul/2010:14:51:05 +0800] "GET /mail2//bin/msgimport HTTP/1.1" 404 136 "-" "Toata dragostea mea pentru diavola"<br />
200.6.121.56 - - [17/Jul/2010:14:51:05 +0800] "GET /mail//bin/msgimport HTTP/1.1" 404 136 "-" "Toata dragostea mea pentru diavola"<br />
200.6.121.56 - - [17/Jul/2010:14:51:04 +0800] "GET /mss2//bin/msgimport HTTP/1.1" 404 136 "-" "Toata dragostea mea pentru diavola"<br />
200.6.121.56 - - [17/Jul/2010:14:51:04 +0800] "GET /rc//bin/msgimport HTTP/1.1" 404 136 "-" "Toata dragostea mea pentru diavola"</p>
<p>If anyone knows more about this particular scanner, feel free to comment and share!</p>
<p>Edit (19 Jul): it seems that I've joined <a href="http://www.google.com/search?q=Toata+dragostea+mea+pentru+diavola">the ranks</a> of those who've been scanned one way or another.  Apparently <a href="http://translate.google.com/#auto|en|Toata%20dragostea%20mea%20pentru%20diavola">it is in Romanian</a>, meaning "All my love for the devil".</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rayfoo.info/2010/07/interesting-scanner/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Profiling client internet connections</title>
		<link>http://blog.rayfoo.info/2010/07/profiling-client-internet-connections</link>
		<comments>http://blog.rayfoo.info/2010/07/profiling-client-internet-connections#comments</comments>
		<pubDate>Thu, 08 Jul 2010 10:20:57 +0000</pubDate>
		<dc:creator>ray</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[data mining]]></category>
		<category><![CDATA[data visualization]]></category>
		<category><![CDATA[information gathering]]></category>
		<category><![CDATA[log analysis]]></category>
		<category><![CDATA[p0f]]></category>
		<category><![CDATA[Splunk]]></category>

		<guid isPermaLink="false">http://blog.rayfoo.info/?p=628</guid>
		<description><![CDATA[Some more fun with p0f and Splunk...Now with profiling of client internet connections! Setup of the p0f and logging is the same as in the OS Profiling post. The Splunk search string has been extended to extract the source's internet link as a field too (go for the portion in bold for the field extracting [...]]]></description>
			<content:encoded><![CDATA[<p>Some more fun with p0f and Splunk...Now with profiling of client internet connections!</p>
<p>Setup of the p0f and logging is the same as in the <a href="http://blog.rayfoo.info/2010/07/os-profiling">OS Profiling</a> post.</p>
<p>The Splunk search string has been extended to extract the source's internet link as a field too (go for the portion in <strong>bold</strong> for the field extracting commands):</p>
<p><span style="color: #339966;">| file /home/path/to/p0f.log | <strong>rex field=_raw "&gt; (?&lt;srcip&gt;[^:]+):(?&lt;srcport&gt;[^ ]+) – (?&lt;srcos&gt;.+?) \(" | rex field=_raw "-&gt; (?&lt;dstip&gt;[^:]+):(?&lt;dstport&gt;[^ ]+) " | rex field=_raw "link: (?&lt;srclink&gt;.*)\)$"</strong> |  regex srclink!="(unspecified|unknown)" | top limit=0 srclink</span></p>
<p>The fields that I extract with this:</p>
<ul>
<li>srcip -&gt; source IP</li>
<li>srcport -&gt; source TCP port</li>
<li>srcos -&gt; source's OS (woot!)</li>
<li>dstip -&gt; destination IP (which is my machine's)</li>
<li>dstport -&gt; the destination port which the TCP connection was initiated to</li>
<li>srclink -&gt; the internet link of the source machine</li>
</ul>
<p>After filtering out the "unspecified" and "unknown" links, the list of the detected links are as follows:</p>
<p style="text-align: center;"><a href="http://blog.rayfoo.info/wp-content/uploads/2010/07/p0fsplunk-connectionlink.png"><img class="size-full wp-image-629 aligncenter" title="p0fsplunk-connectionlink" src="http://blog.rayfoo.info/wp-content/uploads/2010/07/p0fsplunk-connectionlink.png" alt="" width="600" height="310" /></a></p>
<p style="text-align: left;">"ethernet/modem" points to mostly cable connections.  There're some interesting entries in the list though, like <a href="http://en.wikipedia.org/wiki/VTun">vtun</a>, <a href="http://en.wikipedia.org/wiki/Point-to-Point_Protocol_over_Ethernet">pppoe</a>, Google/AOL, <a href="http://en.wikipedia.org/wiki/IP_tunnel">IPv6</a>/<a href="http://www.linuxfoundation.org/collaborate/workgroups/networking/tunneling">IPIP</a> (early adopters? haha).  Don't have any idea on what's IPSec/GRE, or vLAN here in this context though.</p>
<p style="text-align: left;">Just for the heck of it, here's the chart for this table, generated from the reports link in Splunk.</p>
<p style="text-align: left;"><a href="http://blog.rayfoo.info/wp-content/uploads/2010/07/p0fsplunk-connectionchart.png"><img class="aligncenter size-full wp-image-630" title="p0fsplunk-connectionchart" src="http://blog.rayfoo.info/wp-content/uploads/2010/07/p0fsplunk-connectionchart.png" alt="" width="600" height="377" /></a></p>
<p style="text-align: left;">I like the charts, because they allow some interaction with the charts for simple datasets, but I digress <img src='http://blog.rayfoo.info/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p style="text-align: center;"><a href="http://blog.rayfoo.info/wp-content/uploads/2010/07/p0fsplunk-connectionchartmouseover.png"><img class="aligncenter size-full wp-image-631" title="p0fsplunk-connectionchartmouseover" src="http://blog.rayfoo.info/wp-content/uploads/2010/07/p0fsplunk-connectionchartmouseover.png" alt="" width="600" height="369" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rayfoo.info/2010/07/profiling-client-internet-connections/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS Profiling</title>
		<link>http://blog.rayfoo.info/2010/07/os-profiling</link>
		<comments>http://blog.rayfoo.info/2010/07/os-profiling#comments</comments>
		<pubDate>Tue, 06 Jul 2010 16:00:24 +0000</pubDate>
		<dc:creator>ray</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[data mining]]></category>
		<category><![CDATA[information gathering]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[log analysis]]></category>
		<category><![CDATA[p0f]]></category>
		<category><![CDATA[Splunk]]></category>
		<category><![CDATA[tee]]></category>

		<guid isPermaLink="false">http://blog.rayfoo.info/?p=605</guid>
		<description><![CDATA[Trying out p0f along with Splunk.. p0f allows you to determine the OS of the remote machine based on the TCP fields characteristics.  It can also tell whether the machine is behind a firewall, what kind of internet connection it is running from...pretty useful for information junkies like me Here's what I did: ./p0f -t [...]]]></description>
			<content:encoded><![CDATA[<p>Trying out <a href="http://lcamtuf.coredump.cx/p0f.shtml">p0f</a> along with <a href="http://www.splunk.com/download">Splunk</a>..</p>
<p>p0f allows you to determine the OS of the remote machine based on the TCP fields characteristics.  It can also tell whether the machine is behind a firewall, what kind of internet connection it is running from...pretty useful for information junkies like me <img src='http://blog.rayfoo.info/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Here's what I did:</p>
<p><span style="color: #339966;">./p0f -t -u MyUseridHere -i eth0 'src not MyIPAddressHere' | tee -a p0f.log</span></p>
<p>Runs p0f, logging with actual timestamps (-t), chroot and setuid to MyUserIdHere (-u), listening on eth0 (-i), and filtering out packets for connections initiated from my machine itself (since I'm not interested in profiling my own machine).</p>
<p><a href="http://en.wikipedia.org/wiki/Tee_(command)">tee</a> is a (really nifty!) linux command.  What it does is to "split" the input (stdin) to two parts: stdout and the file specified.  The -a option tells it to append to the file instead of overwriting it.</p>
<p>Using this, p0f outputs logs like this one:</p>
<p><span style="color: #339966;">&lt;Sat Jul  3 07:03:56 2010&gt; 175.40.12.47:1095 - Windows 2000 SP2+, XP SP1+ (seldom 98)<br />
-&gt; 74.207.229.183:80 (distance 12, link: sometimes DSL (2))</span></p>
<p>One of the Splunk queries that I poked around with:</p>
<p><span style="color: #339966;">| file /path/to/p0f.log | rex field=_raw "&gt; (?&lt;srcip&gt;[^:]+):(?&lt;srcport&gt;[^ ]+) - (?&lt;srcos&gt;.+?) \(" | rex field=_raw "-&gt; (?&lt;dstip&gt;[^:]+):(?&lt;dstport&gt;[^ ]+) " | regex srcos!="UNKNOWN" | top limit=0 srcos</span></p>
<p>This query extracts out the source and destination IP and port, and the source OS.  Then after filtering out the OS tagged with UNKNOWN, the remaining entries are ranked...</p>
<p>The resulting chart, of not much real interest by itself, just shows that other than that the connections are predominantly from linux machines (hurhur), and there's a connection from a really old Netware machine (<a href="http://en.wikipedia.org/wiki/Novell_NetWare#NetWare_5.x">5 was released in Oct 1998!</a>).</p>
<p style="text-align: center;"><a href="http://blog.rayfoo.info/wp-content/uploads/2010/07/p0fsplunk.png"><img class="aligncenter size-full wp-image-606" title="p0fsplunk" src="http://blog.rayfoo.info/wp-content/uploads/2010/07/p0fsplunk.png" alt="" width="480" height="250" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rayfoo.info/2010/07/os-profiling/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Useful Firefox Plugins</title>
		<link>http://blog.rayfoo.info/2010/03/useful-firefox-plugins</link>
		<comments>http://blog.rayfoo.info/2010/03/useful-firefox-plugins#comments</comments>
		<pubDate>Wed, 03 Mar 2010 15:46:23 +0000</pubDate>
		<dc:creator>ray</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[information gathering]]></category>
		<category><![CDATA[penetration testing]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[web application]]></category>

		<guid isPermaLink="false">http://blog.rayfoo.info/?p=474</guid>
		<description><![CDATA[Sharing my list of favourite Firefox plugins.  Some are used more for only when doing web application penetration testing, whereas some are useful for everyday awareness/protection when surfing around the interwebs.  Do leave comments if this helps, or you have any complaints/suggestions to help improve the list Adblock Plus: you know what this is for... [...]]]></description>
			<content:encoded><![CDATA[<p>Sharing my list of favourite Firefox plugins.  Some are used more for only when doing web application penetration testing, whereas some are useful for everyday awareness/protection when surfing around the interwebs.  Do leave comments if this helps, or you have any complaints/suggestions to help improve the list <img src='http://blog.rayfoo.info/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<ul>
<li><a href="https://addons.mozilla.org/firefox/addon/1865">Adblock Plus</a>: you know what this is for...  Remember to disable when performing penetration testing.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/2489">CacheViewer</a>: Allows for viewing and sorting of cache files.  Seldom used, but a great tool nonetheless when the need comes for it.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/2166">Domain Details</a>: Displays plenty of information about the server (type, headers, IP, location) that you're accessing.  Good for basic information awareness during normal surfing.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/26">Download Statusbar</a>: View and manage downloads from a tidy statusbar.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/201">DownThemAll</a>: For fast grabbing of files from a directory.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/1843">Firebug</a>: Powerful tool for web developers that allows you to freely manipulate/view the loaded objects for a page.  I haven't really figured out how to use this for penetration testing yet though.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/748">Greasemonkey</a>: Could come in very handy if you want to do some mods to a site's page automatically, remember to enable/disable the scripts that aren't needed when on a penetration testing job.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/10909">IE Tab</a>: Don't really use this, unless I get a site that's coded to work only with "browsers like IE".</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/3863">iMacros for Firefox</a>: Another powerful macro editing/playback tool, I don't use this though <img src='http://blog.rayfoo.info/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/216">JavaScript Debugger</a>: JS debugger and profiler, more useful for web developers I think.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/3829">Live HTTP headers</a>: Great for showing basic information about the HTTP headers being exchanged.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/722">NoScript</a>: A MUST-HAVE for Forefox.  Whitelists the scripts and objects that are allowed to load for a domain, amongst other protection features against other nasties out there.  Remember to disable for penetration testing engagements.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/13308">People Search and Public Record Toolbar</a>: Great tool for information gathering, pity I never had the chance to <em>really</em> use it <img src='http://blog.rayfoo.info/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/8186">ScrapBook</a>: Aids in archiving and organizing pages.  I use it to profile a site's workflow.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/125">SwitchProxy</a> / <a href="https://addons.mozilla.org/en-US/firefox/addon/2464">FoxyProxy</a>: A must-have for changing between the many proxy tools that I use.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/966">Tamper Data</a>: I use this to grab extra timeline information about the loading of pages.  Also allows you to do request/response editing.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/59">User Agent Switcher</a>: Self explanatory.  Useful for certain situations only.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/2214">View Dependencies</a>: A must-have for organizing image/JavaScript/CSS resources for a page in a tidy manner.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/697">View formatted source</a>: Formats HTML source neatly for viewing.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/655">View Source Chart</a>: Formats final document DOM (after all the loading/JavaScript events have finished firing) for easy viewing.  Also for when View formatted source isn't available for the version of Firefox that you're using.</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/60">Web Developer</a>: Great for manipulating the forms/cookies/JavaScript/whatnot on a page.  A definite must-have for penetration testing.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.rayfoo.info/2010/03/useful-firefox-plugins/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

