<?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>Cатсн²² (in)sесuяitу / ChrisJohnRiley</title>
	<atom:link href="http://blog.c22.cc/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.c22.cc</link>
	<description>Because we&#039;re damned if we do, and we&#039;re damned if we don&#039;t!</description>
	<lastBuildDate>Fri, 11 May 2012 05:47:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.c22.cc' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/1b6c05a022094e3a7342e6b645c9cfce?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Cатсн²² (in)sесuяitу / ChrisJohnRiley</title>
		<link>http://blog.c22.cc</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.c22.cc/osd.xml" title="Cатсн²² (in)sесuяitу / ChrisJohnRiley" />
	<atom:link rel='hub' href='http://blog.c22.cc/?pushpress=hub'/>
		<item>
		<title>ITWeb Security Summit</title>
		<link>http://blog.c22.cc/2012/05/10/itweb-security-summit/</link>
		<comments>http://blog.c22.cc/2012/05/10/itweb-security-summit/#comments</comments>
		<pubDate>Thu, 10 May 2012 12:45:35 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ITWebsec]]></category>
		<category><![CDATA[sap]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=4089</guid>
		<description><![CDATA[It&#8217;s been a while since I last posted&#8230; between a trip to the UK (for BSides London) and a few days in bed with con-flu, it&#8217;s been a busy few weeks. I&#8217;m flying out to South Africa this weekend to take part in the ITWeb Security Summit in Johannesburg. There are a lot of great [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=4089&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since I last posted&#8230; between a trip to the UK (<em>for BSides London</em>) and a few days in bed with con-flu, it&#8217;s been a busy few weeks.</p>
<p>I&#8217;m flying out to South Africa this weekend to take part in the <a href="http://www.itweb.co.za/index.php?option=com_content&amp;view=article&amp;id=48391&amp;Itemid=2506" target="_blank">ITWeb Security Summit</a> in Johannesburg. There are a lot of great speakers talking, and I was honoured to be asked to present some of my SAP research as part of the &#8220;Enterprise Resource Planning&#8221; track.</p>
<p style="text-align:center;"><img class="aligncenter  wp-image-4090" style="margin-top:4px;margin-bottom:4px;" title="SS2012_webban" src="http://c22blog.files.wordpress.com/2012/05/ss2012_webban.jpg?w=477&h=141" alt="" width="477" height="141" /></p>
<p>This will be the last time I&#8217;ll be presenting this material, so hopefully it will go down well. This research has been ongoing for the last year or so, and it was time to move my focus off onto some other projects I&#8217;ve got running. Plus, nobody likes to see research that&#8217;s old and busted. The information I&#8217;ll be presenting is &#8220;out there&#8221; for the community, so I&#8217;m happy to cover it one last time before I put it to bed. So much hacking, so little time <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>If you&#8217;re attending the conference please come up and say hi&#8230; I only bite on request!</p>
<br /> Tagged: <a href='http://blog.c22.cc/tag/conference/'>Conference</a>, <a href='http://blog.c22.cc/tag/itwebsec/'>ITWebsec</a>, <a href='http://blog.c22.cc/tag/sap/'>sap</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/4089/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/4089/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/4089/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/4089/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/4089/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/4089/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/4089/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/4089/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/4089/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/4089/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/4089/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/4089/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/4089/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/4089/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=4089&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2012/05/10/itweb-security-summit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/05/ss2012_webban.jpg" medium="image">
			<media:title type="html">SS2012_webban</media:title>
		</media:content>
	</item>
		<item>
		<title>Security Forum 2012</title>
		<link>http://blog.c22.cc/2012/04/19/security-forum-2012/</link>
		<comments>http://blog.c22.cc/2012/04/19/security-forum-2012/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 12:30:53 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Conference]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[hagenberg]]></category>
		<category><![CDATA[SecurityForum]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=4075</guid>
		<description><![CDATA[The Security Forum is the annual IT-Security Conference in Hagenberg that addresses current issues in this domain. Traditionally it takes place over the course of two days in April. On the first day visitors are offered technical as well as management-oriented papers by representatives of business, research and public service. After last years security forum [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=4075&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>The Security Forum is the annual IT-Security Conference in Hagenberg that addresses current issues in this domain. Traditionally it takes place over the course of two days in April. On the first day visitors are offered technical as well as management-oriented papers by representatives of business, research and public service.</p></blockquote>
<p><img class="alignright  wp-image-2713" style="margin:6px;" title="logo_schrift_unten" src="http://c22blog.files.wordpress.com/2011/04/logo_schrift_unten.png?w=210&h=240" alt="" width="210" height="240" /></p>
<p>After last years security forum I couldn&#8217;t very well miss this years event, and it didn&#8217;t disappoint. Although a number of the presentations were a little too management focused and light on technical details for my liking, these were overshadowed by great presentations from Scott Behrens from Neohapsis and the short but very interesting Security Insight talks that took place in the evening.</p>
<p>Just like last year the real benefit I feel came from the discussions between sessions. Talking to the presenters and attendees is always the high-point of these conferences I find.</p>
<p>Below is a few brief notes on the presentations I managed to attend and think are worth noting. Slides aren&#8217;t yet available for most talks as far as I&#8217;m aware.</p>
<p><strong>Webshell Detection using NeoPI </strong>(Scott Behrens)</p>
<p>(<a href="https://www.securityforum.at/agenda-2/neopi/">https://www.securityforum.at/agenda-2/neopi/</a>)</p>
<p>This talk concentrated on the issue of detecting webshells when performing incident response. When faced with a collection of servers and maybe more than 20,000 files present in a webroot, how can you find the needle amongst the needles. Scott demonstrated a number of analysis techniques that can be used to better discover webshells present on a system, and showed the abilities of the NeoPI script to dig into a webroot and point out discrepancies and possibly malicious webshells.</p>
<p>The NeoPI script is currently available on the <a href="https://github.com/Neohapsis/NeoPI" target="_blank">Neohapsis github page</a> and is looking for people to assist in future development and testing.</p>
<p><strong>Security Insights</strong> (evening talks)</p>
<p>(<a href="https://www.securityforum.at/security-insights/">https://www.securityforum.at/security-insights/</a>)</p>
<p>The evening talks moved away from the more management style presentations during the day and focused more on technical projects. Three of the talks were of particular interest.</p>
<p><strong>Sicherheit in der Bürgerkartenumgebung</strong> (Wolfgang Ettlinger)</p>
<p>In this talk Wolfgang discussed some of the issues he discovered when testing the security of the Austrian Citizen Card. In Austria this card can be used to officially sign documents and prove the identity of the holder. This includes the ability to sign-in to online banking using the card and a pin to prove the holder is who they say they are. Wolfgang showed a number of vulnerabilities in the BKU (<em>the Java based environment that deals with PIN authentication and card communication</em>) and showed the ability for an attacker to steal the PIN and use it to sign documents or perform actions as the user. A more detailed write-up is available on <a href="http://ettisan.wordpress.com/2012/02/29/implementation-of-an-universal-forgery-on-the-austrian-burgerkarte/" target="_blank">Wolfgang&#8217;s blog</a>.</p>
<p><strong>Covert Channel Protocol – verdeckte Informationsübertragung</strong> (Florian Preinstorfer)</p>
<p>Florian discussed his ongoing research into covert channels and in particular discussed his (<em>PoC</em>) implementation that uses both HTTP, ICMP and  DNS to transfer data covertly by using client and server-side proxies to alter traffic. Although the work is still ongoing I&#8217;m looking forward to seeing what the final result it, as the premise seems interesting. As soon as code is released or more information becomes available I&#8217;ll make sure to post it up in my <a href="http://feed.c22.cc" target="_blank">[SuggestedReading]</a> feed.</p>
<p><strong>Oh noes! Another Android Malware Talk</strong> (Thomas Eder, Michael Rodler)</p>
<p>The final presentation of the night walked us through an analysis of Android malware (<em>in particular an SMS application that sends premium rate SMS messages</em>). The tools discussed were the usual fare, however the presenters are working together with a larger team to implemented a more automated and structured way to analyse Android malware called <a href="http://www.fh-ooe.at/campus-hagenberg/studiengaenge/bachelor-studien/sichere-informationssysteme/projekte-praktika/studienprojekte/projekt/23019/" target="_blank">EPIC</a> (DE). The project is still in it&#8217;s PoC phase, but seems to be something to keep an eye on!</p>
<p>Special thanks to the Hagenberger Kreis for making the conference such an enjoyable experience&#8230; Hope to see you all next year!</p>
<br /> Tagged: <a href='http://blog.c22.cc/tag/hagenberg/'>hagenberg</a>, <a href='http://blog.c22.cc/tag/securityforum/'>SecurityForum</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/4075/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/4075/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/4075/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/4075/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/4075/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/4075/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/4075/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/4075/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/4075/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/4075/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/4075/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/4075/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/4075/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/4075/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=4075&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2012/04/19/security-forum-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2011/04/logo_schrift_unten.png?w=262" medium="image">
			<media:title type="html">logo_schrift_unten</media:title>
		</media:content>
	</item>
		<item>
		<title>PrintJob MITM &#8211; Testers Wanted</title>
		<link>http://blog.c22.cc/2012/04/11/printjob-mitm-testers-wanted/</link>
		<comments>http://blog.c22.cc/2012/04/11/printjob-mitm-testers-wanted/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 12:00:27 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Metasploit]]></category>
		<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[IPP]]></category>
		<category><![CDATA[mitm]]></category>
		<category><![CDATA[pcl]]></category>
		<category><![CDATA[postscript]]></category>
		<category><![CDATA[print]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=4051</guid>
		<description><![CDATA[I had some time over the long weekend to tweak a Metasploit script I&#8217;ve had lying around for a few months years. When I wrote the Python prn-2-me script I also drew up the basics of a printjob MITM module for Metasploit but never managed to finish it up. The Python version is limited in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=4051&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://c22blog.files.wordpress.com/2012/04/hp-deskjet-3050-printer.jpg"><img class="alignright  wp-image-4053" style="margin:5px;" title="hp-deskjet-3050-printer" src="http://c22blog.files.wordpress.com/2012/04/hp-deskjet-3050-printer.jpg?w=192&h=192" alt="" width="192" height="192" /></a>I had some time over the long weekend to tweak a Metasploit script I&#8217;ve had lying around for a few <del>months</del> years. When I wrote the Python <a href="http://blog.c22.cc/2010/11/23/printer-mitm-revisited-prn-2-me/" target="_blank">prn-2-me</a> script I also drew up the basics of a printjob MITM module for Metasploit but never managed to finish it up.</p>
<p>The Python version is limited in that it was designed to handle RAW print streams only&#8230; it was also really badly written (<em>like most of my <del>early</del> Python stuff</em>). The Metasploit Module I&#8217;m testing currently should also handle LPR/LPD printjobs by sitting in the middle and passing communications backwards and forwards between the client and the printer. I&#8217;ve also begun to look at implementing some IPP sniffing as well, using the same technique as LPR/LPD (<em>streaming the data to the printer and sniffing out the printjob and Metadata</em>).</p>
<p>This is still a work in progress, and handling LPR/LPD and IPP is a bit more tricky than RAW printjobs.</p>
<p>A couple of helpful folks have been testing out the module for me&#8230; if you want to assist please take a look at the module and see what you think (<em>download link below</em>). If you have any problems please do a packet capture so I can see what&#8217;s not working correctly and adapt the module. As the various printers and drivers handle things slightly differently the idea is to look at as many models as possibly (<em>not just HP!</em>).</p>
<p style="text-align:center;"><a href="http://c22blog.files.wordpress.com/2012/04/print_capture.png"><img class="aligncenter" style="margin-top:6px;margin-bottom:6px;" title="print_capture" src="http://c22blog.files.wordpress.com/2012/04/print_capture.png?w=697&h=470" alt="" width="697" height="470" /></a></p>
<p><strong>Links</strong>:</p>
<ul>
<li>Python prn-2-me  (<a href="http://blog.c22.cc/2010/11/23/printer-mitm-revisited-prn-2-me/" target="_blank">HERE</a>)</li>
<li>Metasploit <a href="https://github.com/ChrisJohnRiley/metasploit-framework/blob/printjob_snarfer/modules/auxiliary/server/capture/printjob_capture.rb" target="_blank">auxiliary/server/capture/printjob_capture.rb</a> &#8211;&gt; In Development!</li>
</ul>
<br /> Tagged: <a href='http://blog.c22.cc/tag/ipp/'>IPP</a>, <a href='http://blog.c22.cc/tag/metasploit/'>Metasploit</a>, <a href='http://blog.c22.cc/tag/mitm/'>mitm</a>, <a href='http://blog.c22.cc/tag/pcl/'>pcl</a>, <a href='http://blog.c22.cc/tag/postscript/'>postscript</a>, <a href='http://blog.c22.cc/tag/print/'>print</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/4051/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/4051/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/4051/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/4051/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/4051/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/4051/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/4051/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/4051/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/4051/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/4051/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/4051/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/4051/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/4051/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/4051/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=4051&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2012/04/11/printjob-mitm-testers-wanted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/04/hp-deskjet-3050-printer.jpg" medium="image">
			<media:title type="html">hp-deskjet-3050-printer</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/04/print_capture.png" medium="image">
			<media:title type="html">print_capture</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting your message across: Screenshots</title>
		<link>http://blog.c22.cc/2012/04/07/getting-your-message-across-screenshots/</link>
		<comments>http://blog.c22.cc/2012/04/07/getting-your-message-across-screenshots/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 15:21:45 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[penetration testing]]></category>
		<category><![CDATA[Reporting]]></category>
		<category><![CDATA[Reports]]></category>
		<category><![CDATA[Screenshots]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=3993</guid>
		<description><![CDATA[Since I&#8217;ve finally started doing something with pentestreports.com I thought it was time to write-up some interesting content. Seeing as this one has been bugging me for a while, I thought it would make an interesting starting point. As always, comments are welcomed and encouraged! Getting the message across in a penetration testing report isn&#8217;t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=3993&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Since I&#8217;ve finally started doing something with pentestreports.com I thought it was time to write-up some interesting content. Seeing as this one has been bugging me for a while, I thought it would make an interesting starting point. As always, comments are welcomed and encouraged!</p>
<p>Getting the message across in a penetration testing report isn&#8217;t always the easiest thing. Explain in 500 words or less, to somebody who may or may not know what TCP is, how you used a forged HTTP request header to inject falsified log requests into their database and perform stored cross-site scripting on administrators&#8230; yeah, it&#8217;s not easy. So, a picture is worth a thousand words, and we&#8217;re going to need to use all the options available to us to convey the issue at hand.</p>
<p>The problem is&#8230; people don&#8217;t always spend as much time thinking about that picture as they would writing 500 words! and they should! Here&#8217;s a few of the screenshot-crimes I&#8217;ve seen over the last 10 years or so in technology. These aren&#8217;t restricted to Penetration Testing&#8230; so should be applicable for any graphical representation!</p>
<h3>The lazyboy</h3>
<p><a href="http://c22blog.files.wordpress.com/2012/03/lazyboy.png"><img class="aligncenter size-full wp-image-4036" title="lazyboy" src="http://c22blog.files.wordpress.com/2012/03/lazyboy.png?w=630" alt=""   /></a></p>
<p>Well I guess it gets the message across&#8230; but I&#8217;m not really sure what that message really is! A screenshot is designed to help get a message across and prove that something was achieved. This kind of screenshot does nothing more than show that you can press a few keys and take a screenshot. Did I perform an XSS in your website, was it reflective? stored? second-order? Who knows&#8230;</p>
<p>This screenshot shows nothing.</p>
<h3>Full-on</h3>
<p style="text-align:center;"><a href="http://c22blog.files.wordpress.com/2012/03/fullon.png"><img class="aligncenter  wp-image-4037" title="fullon" src="http://c22blog.files.wordpress.com/2012/03/fullon.png?w=500&h=259" alt="" width="500" height="259" /></a></p>
<p>Is that bigfoot? Nope, it&#8217;s hard to see, but that&#8217;s actually a screenshot! Crop people&#8230; no, don&#8217;t think, just crop. At least you&#8217;re getting more of the message across than the lazyboy, but you&#8217;re not helping yourself here. Make sure that when you take a screenshot everything you NEED to show is in a small area that will be easily visible and readable when the screenshot is cropped. A full screen capture is fine for note taking, but the final version needs to be cropped and annotated if needed.</p>
<h3>The OTT</h3>
<p style="text-align:center;"><a href="http://c22blog.files.wordpress.com/2012/03/ott_all.png"><img class="aligncenter  wp-image-4038" title="OTT_all" src="http://c22blog.files.wordpress.com/2012/03/ott_all.png?w=500&h=239" alt="" width="500" height="239" /></a></p>
<p>OMG where do I look first! 3 screenshots layered one on top of the other&#8230; does it tell a story? without any annotation or further information then it&#8217;s just a jumbled mess of text. This is a perfect candidate for multiple screenshots, or at the very least a few boxes to focus the reader in on the places where the REAL information is!</p>
<p><strong>Side-note</strong>: Screenshots of code are mostly a waste of time&#8230; copy/paste the effected code and highlight the section effected.</p>
<h3>Click Happy</h3>
<p style="text-align:center;"><a href="http://c22blog.files.wordpress.com/2012/04/img_20120407_1644281.jpg"><img class="aligncenter  wp-image-4041" title="SAMSUNG" src="http://c22blog.files.wordpress.com/2012/04/img_20120407_1644281.jpg?w=400&h=533" alt="" width="400" height="533" /></a></p>
<p>You may think I&#8217;ve gone off the deep-end on this one&#8230; but I&#8217;m afraid not. Some people actually think that photos are a replacement for a good, well-formed screenshot! Sometimes you just can&#8217;t avoid a photo, but think carefully. Easy to do badly! Hard to pull off.</p>
<p>Exceptions to this last one are obvious really. Physical security tests/results, or anything that can&#8217;t be screenshotted. Just remember, if you can use a screenshot, it&#8217;s going to look a whole lot better than a photo.</p>
<p><strong>Note</strong>: If you NEED to do photos&#8230; don&#8217;t use your phone! Buy a digital camera and learn how to use it!</p>
<h3>Conclusion</h3>
<p>Take time to think out your screenshots. Not only if you need one, but how you can best show the issue(s) and how a reader will view it. The viewer may not have your technical knowledge, and may not know what the issue really is. Make that screenshot count!</p>
<br /> Tagged: <a href='http://blog.c22.cc/tag/penetration-testing/'>penetration testing</a>, <a href='http://blog.c22.cc/tag/reporting/'>Reporting</a>, <a href='http://blog.c22.cc/tag/reports/'>Reports</a>, <a href='http://blog.c22.cc/tag/screenshots/'>Screenshots</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/3993/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/3993/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/3993/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/3993/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/3993/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/3993/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/3993/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/3993/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/3993/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/3993/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/3993/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/3993/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/3993/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/3993/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=3993&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2012/04/07/getting-your-message-across-screenshots/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/03/lazyboy.png" medium="image">
			<media:title type="html">lazyboy</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/03/fullon.png?w=500" medium="image">
			<media:title type="html">fullon</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/03/ott_all.png?w=500" medium="image">
			<media:title type="html">OTT_all</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/04/img_20120407_1644281.jpg?w=400" medium="image">
			<media:title type="html">SAMSUNG</media:title>
		</media:content>
	</item>
		<item>
		<title>Scammers gonna scam</title>
		<link>http://blog.c22.cc/2012/03/31/scammers-gonna-scam/</link>
		<comments>http://blog.c22.cc/2012/03/31/scammers-gonna-scam/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 12:55:41 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Strange]]></category>
		<category><![CDATA[LIGATT]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=4024</guid>
		<description><![CDATA[It&#8217;s been a while since I&#8217;ve thought about our resident snake oil salesman, Gregory D Evans&#8230; and there&#8217;s be far to much seriousness on the blog recently. So here&#8217;s a little deviation from your usual programming. Sorry! I&#8217;ve been noticing, as many have I&#8217;m sure, a lot of spam messages on the Twitters over the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=4024&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since I&#8217;ve thought about our resident snake oil salesman, Gregory D Evans&#8230; and there&#8217;s be far to much seriousness on the blog recently. So here&#8217;s a little deviation from your usual programming. Sorry!</p>
<p>I&#8217;ve been noticing, as many have I&#8217;m sure, a lot of spam messages on the Twitters over the last few months. I&#8217;ve been a good little worker and reported them as spam, every little helps after all. However I thought it was about time to name and shame (<em>like he&#8217;s not already shamed</em>). Still, it&#8217;s worth a few seconds to make a screenshot and share it for prosperity.</p>
<div id="attachment_4025" class="wp-caption aligncenter" style="width: 536px"><a href="http://c22blog.files.wordpress.com/2012/03/picture-1.png"><img class=" wp-image-4025  " title="Picture 1" src="http://c22blog.files.wordpress.com/2012/03/picture-1.png?w=526&h=762" alt="" width="526" height="762" /></a><p class="wp-caption-text">I guess hot girls like Hackers!</p></div>
<p>The levels of spam have reduced (<em>maybe due to people reporting them repeatedly, maybe due to dwindling funds</em>), but you can usually pick up a few by searching on the phrases &#8220;AM I HACKER PROOF is a&#8221; and &#8220;Gregory Evans is one of the&#8221;. The posts forward to an amazon.com page together with an affiliate link (<em>using several affiliate link tags</em> - diabetescure-20, worldmixmasal-20, neoopt06-21, twitterservice-20). You can find the same affiliates posting LocatePc spam as well on occasion.</p>
<p>I&#8217;m not one to judge on how people do business, but this kind of thing doesn&#8217;t really strike me as something an honest and professional Information Security company would take part in.</p>
<p>Just before I go here&#8217;s a quick some food for thought&#8230; the <a href="http://twitter.com/#!/gregorydevans" target="_blank">@gregorydevans</a> account now has over 27,000 followers. Wow that&#8217;s amazing, much more than most&#8230; he must he really famous and well-respected! Of course, this rise all happened in the last month. From zero to spam follower hero in a month! I&#8217;ll leave that one for you to think on <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p style="text-align:left;"><a href="http://c22blog.files.wordpress.com/2012/03/picture-3.png"><img class="aligncenter size-full wp-image-4028" style="margin-top:6px;margin-bottom:6px;" title="Picture 3" src="http://c22blog.files.wordpress.com/2012/03/picture-3.png?w=630&h=407" alt="" width="630" height="407" /></a><br />
Lets give the man the benefit of the doubt&#8230; after all, he&#8217;s the world&#8217;s number 1 hacker. Still seems strange that the @amihackerproof account seems to have a similar arc in followers! The stats are unfortunately a little lacking, as the stats are only tracked from March 23rd 2012.</p>
<p style="text-align:center;"><a href="http://c22blog.files.wordpress.com/2012/03/picture-4.png"><img class="size-full wp-image-4030 aligncenter" style="margin-top:6px;margin-bottom:6px;" title="Picture 4" src="http://c22blog.files.wordpress.com/2012/03/picture-4.png?w=630&h=443" alt="" width="630" height="443" /></a></p>
<br /> Tagged: <a href='http://blog.c22.cc/tag/ligatt/'>LIGATT</a>, <a href='http://blog.c22.cc/tag/spam/'>spam</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/4024/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/4024/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/4024/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/4024/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/4024/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/4024/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/4024/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/4024/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/4024/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/4024/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/4024/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/4024/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/4024/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/4024/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=4024&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2012/03/31/scammers-gonna-scam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/03/picture-1.png" medium="image">
			<media:title type="html">Picture 1</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/03/picture-3.png" medium="image">
			<media:title type="html">Picture 3</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/03/picture-4.png" medium="image">
			<media:title type="html">Picture 4</media:title>
		</media:content>
	</item>
		<item>
		<title>EU legislation &#8211; Digging below the FUD line (cont.)</title>
		<link>http://blog.c22.cc/2012/03/29/eu-legislation-digging-below-the-fud-line-cont/</link>
		<comments>http://blog.c22.cc/2012/03/29/eu-legislation-digging-below-the-fud-line-cont/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 13:30:53 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[EU Legislation]]></category>
		<category><![CDATA[EuroParl]]></category>
		<category><![CDATA[Possession of Tools]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=4009</guid>
		<description><![CDATA[Earlier on I posted up my thoughts on the EU Legislation &#8211; &#8220;Attacks against information systems&#8221;. At the time I held back from commenting on some quotes in the news story as I wanted to mull over my response a little longer. In the news article posted on europarl.europa.eu one of the MEPs responsible for the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=4009&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="wp-image-4003 alignleft" style="margin:7px;" title="Flag-and-Parliament" src="http://c22blog.files.wordpress.com/2012/03/flag-and-parliament.jpg?w=320&h=200" alt="" width="320" height="200" /></p>
<p>Earlier on I posted up my thoughts on the EU Legislation &#8211; &#8220;Attacks against information systems&#8221;.</p>
<p>At the time I held back from commenting on some quotes in the news story as I wanted to mull over my response a little longer.</p>
<p>In the news article posted on <a href="http://www.europarl.europa.eu/news/en/pressroom/content/20120326IPR41843/html/Hacking-IT-systems-to-become-a-criminal-offence" target="_blank">europarl.europa.eu</a> one of the MEPs responsible for the amendments and the final legislation was asked to comment on the proposal. A couple of her responses warrant a rebuttal.. although at this stage things are far to far gone to make much change at the EU level.</p>
<blockquote><p> &#8221;We are dealing here with serious criminal attacks, some of which are even conducted by criminal organisations. The financial damage caused for companies, private users and the public side amounts to several billions each year&#8221; said rapporteur Monika Hohlmeier (EPP, DE). &#8220;No car manufacturer may send a car without a seatbelt into the streets. And if this happens, the company will be held liable for any damage. These rules must also apply in the virtual world&#8221; she added.</p></blockquote>
<p>The last sentence in particular really made it clear the lack of understanding of the InfoSec industry. Monika Hohlmeier talks about liability incurred through lack of testing and confuses a number of issues.</p>
<p>This comment would fit nicely and make sense if we were talking about lack of security testing by software vendors. I agree they should be held liable for shortcuts and sloppy work. Especially if it puts others at risk!</p>
<p>However in the context of this legislation it seems to point more to companies releasing tools that *could* be used by attackers.  Putting aside the fact that almost any program could be used offensively, it&#8217;s obvious that if security tools are outlawed by poorly drafted and written legislation like this, then companies won&#8217;t have the tools required to perform the testing required.</p>
<p>To put it in the same context as Monika Hohlmeier used&#8230;</p>
<p>A car manufacturer would not be able to test the reliability and security of their cars if the tools, methods and knowledge required for that testing was against the law. A company can only secure a product from potential problems (<em>whether security or not</em>) by using methods and techniques to test them. Car companies have and will continue to go through rigorous checks by crashing cars, dropping them on their roofs and spinning them on a wet surface to see how they react.</p>
<p>In the security field we do the same thing, by creating tests to see if systems are secure. We take an app and send unexpected input, attempt to force the application out of control, and take advantage of insecurities to see how far the issue goes.</p>
<p>You wouldn&#8217;t tell a car manufacturer that their crash tests are illegal as they cause a car to crash&#8230; So don&#8217;t try to tell us that possession of tools we need for our jobs put our jobs, and livelihoods at risk! The lack of context you placed in this legislation causes everybody to interpret the meaning. I doubt that your goal, or the goal of this legislation is to hinder, disrupt or block valid security research and testing, however the effects have to to be seen&#8230; 202(c) had the wrong effect due to it&#8217;s lax wording&#8230; don&#8217;t let this EU legislation drive all security research out of Europe.</p>
<p>My 0.02¢ on the issue&#8230;</p>
<p><strong>Links</strong>:</p>
<ul>
<li>EU legislation &#8211; Digging below the FUD line (<a href="http://blog.c22.cc/2012/03/29/eu-legislation-digging-below-the-fud-line/" target="_blank">blog.c22.cc</a>)</li>
<li>Hacking IT Systems to become a criminal offence (<a href="http://www.europarl.europa.eu/news/en/pressroom/content/20120326IPR41843/html/Hacking-IT-systems-to-become-a-criminal-offence" target="_blank">Europarl article</a>)</li>
<li>Draft Report / Amendments &#8211;  Monika Hohlmeier (<a href="http://www.europarl.europa.eu/meetdocs/2009_2014/documents/libe/pr/884/884601/884601en.pdf" target="_blank">PDF</a>)</li>
<li>Draft Report / Amendments &#8211;  34 &#8211; 128 (<a href="http://www.europarl.europa.eu/meetdocs/2009_2014/documents/libe/pr/884/884601/884601en.pdf" target="_blank">PDF</a>)</li>
<li>Final  (Attacks against information systems) (<a href="http://www.europarl.europa.eu/meetdocs/2009_2014/documents/com/com_com(2010)0517_/com_com(2010)0517_en.pdf" target="_blank">PDF</a>)</li>
<li>Draft Agenda of the LIBE Meeting of 26-27 March 2012 (<a href="http://www.europarl.europa.eu/meetdocs/2009_2014/documents/libe/oj/895/895916/895916en.pdf" target="_blank">PDF</a>)</li>
<li>Meeting notes and links LIBE Meeting (<a href="http://www.europarl.europa.eu/meetdocs/2009_2014/organes/libe/libe_20120326_1500.htm" target="_blank">Europarl site</a>)</li>
<li>Monika Hohlmeier (<a href="http://www.europarl.europa.eu/meps/en/96780/Monika_HOHLMEIER.html" target="_blank">MEP Information Page</a>)</li>
<li>Jan Philipp Albrech (<a href="http://www.europarl.europa.eu/meps/en/96736/Jan%20Philipp_ALBRECHT.html" target="_blank">MEP Information Page</a>)</li>
</ul>
<br /> Tagged: <a href='http://blog.c22.cc/tag/eu-legislation/'>EU Legislation</a>, <a href='http://blog.c22.cc/tag/europarl/'>EuroParl</a>, <a href='http://blog.c22.cc/tag/possession-of-tools/'>Possession of Tools</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/4009/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/4009/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/4009/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/4009/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/4009/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/4009/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/4009/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/4009/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/4009/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/4009/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/4009/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/4009/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/4009/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/4009/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=4009&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2012/03/29/eu-legislation-digging-below-the-fud-line-cont/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/03/flag-and-parliament.jpg?w=400" medium="image">
			<media:title type="html">Flag-and-Parliament</media:title>
		</media:content>
	</item>
		<item>
		<title>EU legislation &#8211; Digging below the FUD line</title>
		<link>http://blog.c22.cc/2012/03/29/eu-legislation-digging-below-the-fud-line/</link>
		<comments>http://blog.c22.cc/2012/03/29/eu-legislation-digging-below-the-fud-line/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 08:05:56 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[EU Legislation]]></category>
		<category><![CDATA[EuroParl]]></category>
		<category><![CDATA[Possession of Tools]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=3999</guid>
		<description><![CDATA[Yesterday I started to see some chatter on Twitter about new/updated EU legislation dealing with &#8220;cyber&#8221; attacks. Before I dig into some of the quoted content and some of the details I&#8217;d like to make it clear that I&#8217;m not a lawyer, I didn&#8217;t stay at a Holiday Inn last night, and I&#8217;m probably not smart [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=3999&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignright  wp-image-4003" style="margin:6px;" title="Flag-and-Parliament" src="http://c22blog.files.wordpress.com/2012/03/flag-and-parliament.jpg?w=320&h=200" alt="" width="320" height="200" />Yesterday I started to see some chatter on Twitter about new/updated EU legislation dealing with &#8220;cyber&#8221; attacks. Before I dig into some of the quoted content and some of the details I&#8217;d like to make it clear that I&#8217;m not a lawyer, I didn&#8217;t stay at a Holiday Inn last night, and I&#8217;m probably not smart enough to really understand how politicians think&#8230; also, as with everything in legal terms, there&#8217;s a whole other area of how people interpret these legislations. So, take what&#8217;s said here as a personal opinion!</p>
<p>The initial link I saw posted on Twitter (<em>care of my good friend <a href="http://twitter.com/wimremes" target="_blank">@wimremes</a></em>) was to a new article on the European Parliament News site (<em>article can be found <a href="http://www.europarl.europa.eu/news/en/pressroom/content/20120326IPR41843/html/Hacking-IT-systems-to-become-a-criminal-offence" target="_blank">HERE</a></em>). I clicked through to see what all the fuss was about and was greeted with the FUDridden headline of:</p>
<blockquote><p>Hacking IT systems to become a criminal offence</p></blockquote>
<p>OMG, the sky is falling! Despite the fact that in most countries in the EU, &#8220;hacking&#8221; in the sense of illegally gaining entry to IT systems, has been a crime for a long time already! Moving past the large print, the thing that really seemed to be rattling people was the explicit legislation surrounding &#8220;hacking&#8221; tools.</p>
<p>The news article goes on to state:</p>
<blockquote><p>Possessing or distributing hacking software and tools would also be an offence</p></blockquote>
<p>and then further on gives a small paragraph detailing things:</p>
<blockquote><p><strong>Cyber-attack tools</strong></p>
<p>The proposal also targets tools used to commit offences: the production or sale of devices such as computer programs designed for cyber-attacks, or which find a computer password by which an information system can be accessed, would constitute criminal offences.</p></blockquote>
<p>Those reading this article without further context would have little choice but to think back to the poor decisions made in Germany (see <a href="http://www.securityfocus.com/columnists/448" target="_blank">202(c) </a>)  that resulted in many security researchers from upping sticks and moving out. The news article makes it very clear that &#8220;hacking&#8221; tools are seen as the problem, and anybody in possession of them is a criminal&#8230;</p>
<h2><strong>Digging deeper</strong></h2>
<p>Call me a cynic, but I&#8217;m not one to trust journalists much, at least without reason&#8230; so I dug a little deeper.</p>
<p>The new EU Legislation discussed in the news article is based on a draft report by <a href="http://www.europarl.europa.eu/meps/en/96780/Monika_HOHLMEIER.html" target="_blank">Monika Hohlmeier</a> originally written back in November 2011. For those that want to get the details, you can read a copy of the draft report <a href="http://www.europarl.europa.eu/meetdocs/2009_2014/documents/libe/pr/884/884601/884601en.pdf" target="_blank">HERE</a>.</p>
<p>This version of the draft report includes not only the proposed amendments, but also justifications. So, lets have a quick search and see where the news article got it&#8217;s content.</p>
<p>Searching on the word &#8220;tools&#8221; provides only 5 results&#8230; none of which seem to state that writing, or possessing them is a crime.</p>
<p>Searching on the word &#8220;possession&#8221; however brings up some interesting information (Amendment 22).</p>
<p style="text-align:center;"><a href="http://c22blog.files.wordpress.com/2012/03/amendment22.png"><img class="aligncenter  wp-image-4000" style="margin-top:6px;margin-bottom:6px;" title="Amendment22" src="http://c22blog.files.wordpress.com/2012/03/amendment22.png?w=652&h=342" alt="" width="652" height="342" /></a></p>
<p style="text-align:left;">The text on the left-hand side is the origin text proposed by the commission, and includes a clause for possession. As you can see from the amendment voted on and accepted this week, the word &#8220;possession&#8221; has been completely removed, and the wording slight altered to change &#8220;for the purpose of committing any offences&#8221; to &#8221;for the <strong><em>clear</em></strong> purpose of committing any offences&#8221;.</p>
<p style="text-align:left;">The justification given in the amendment makes it plain that the goal of this legislation is not to target people working in security, but malicious attackers!</p>
<blockquote><p><strong>Justification</strong></p>
<p>Given the possibility to use programmes in dual forms, i.e. for legal as well as criminal<br />
purposes, the possession of a tool should as such not be punishable. In addition, the purpose<br />
of the actions described in this article should only be punishable when it is clearly aimed at<br />
committing an offence.</p></blockquote>
<p>There are more than a number of clarifications present in these amendments that I think help to make the legislation clearer and more targeted towards criminal usage, without infringing on the InfoSec community. I won&#8217;t cover all the changes here, but if you&#8217;re interested I suggest reading through the 26 page draft report <a href="http://www.europarl.europa.eu/meetdocs/2009_2014/documents/libe/pr/884/884601/884601en.pdf" target="_blank">HERE</a>.</p>
<p>So, were&#8217;s the problem! Well, this draft report seemingly never made it through&#8230; instead it was once again amended, and replaced in January this year by a draft report (<a href="http://www.europarl.europa.eu/meetdocs/2009_2014/documents/libe/am/890/890251/890251en.pdf" target="_blank">PDF</a>) that takes these changes, and deletes them.</p>
<p><a href="http://c22blog.files.wordpress.com/2012/03/amendment22_jan.png"><img class="aligncenter size-full wp-image-4001" title="Amendment22_jan" src="http://c22blog.files.wordpress.com/2012/03/amendment22_jan.png?w=630" alt=""   /></a></p>
<p>Initially I thought this deletion was to remove the amendment, but instead the justification makes it clear that the deletion was mean to remove this section from the EU legislation completely! As I said, I&#8217;m no expert on these things <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<blockquote><p><strong>Justification</strong><br />
So-called &#8216;hacker tools&#8217; are inherently dual-use, and they are crucially needed for security<br />
testing. If we want to have the whistleblower protection, we also have to legalise their<br />
possession and distribution. Passwords and access codes should not be regarded as hacker<br />
tools. If they get lost, the operator should immediately improve his security measures and set<br />
up new passwords, just as people do when they lose their keys</p></blockquote>
<p>It&#8217;s nice to see that at least somebody understands that security testing is important, and that outlawing tools isn&#8217;t the way to go!</p>
<h2><strong>End-Game</strong></h2>
<p>Despite there being some good amendments suggested, ones that not only help clear up any misconceptions, but also help to clarify the use and possession of &#8220;hacking&#8221; tools&#8230; these clear minded and well-reasoned amendments <del>didn&#8217;t seem to make it into the final document delivered</del> to the 2010 committee proposal (<a href="http://www.europarl.europa.eu/meetdocs/2009_2014/documents/com/com_com(2010)0517_/com_com(2010)0517_en.pdf" target="_blank">PDF</a>) I can#t seem to find anywhere that explains which were accepted and which were denied!</p>
<p>This <del>final version</del> 2010 committee proposal includes the following in regards to possession, creation and distribution of &#8220;hacking&#8221; tools.</p>
<blockquote><p><strong>General Context</strong></p>
<p>&#8230;.  Developments in information technology have exacerbated these problems by making it easier to <strong><em>produce and distribute tools (&#8216;malware&#8217; and &#8216;botnets&#8217;)</em></strong>, while offering offenders anonymity and dispersing responsibility across jurisdictions&#8230;</p></blockquote>
<p>At least they make a clear distinction here that they refer to &#8220;tools&#8221; as a shortcut for &#8220;malware&#8221; and &#8220;botnets&#8221;.  Still, this is where the good news seems to end!</p>
<blockquote><p><strong>Summary of the proposed action</strong></p>
<p>A: Penalises the production, sale, procurement for use, import, distribution or otherwise making available of devices/tools used for committing the offence</p>
<p>&#8230;</p>
<p>&#8230;this Directive shall refer to ’tools’ that can be used in order to commit the crimes listed in this Directive. Tools refer to, for example, malicious software, including botnets, used to commit cyber attacks.</p></blockquote>
<p>So it seems that &#8220;hacking&#8221; tools aren&#8217;t welcome, at least in the original committee proposal. The text describing what those tools are is open to interpretation and as a result could easily be applied to people producing anything from scanners through to example exploit code for penetration testing and vulnerability analysis purposes. As with everything, it&#8217;s not set in stone until somebody takes it to court and defines it!</p>
<blockquote><p><em>Article 7</em><br />
<strong>Tools used for committing offences</strong></p>
<p>Member States shall take the necessary measure to ensure that the production, sale, procurement for use, import, possession, distribution or otherwise making available of the following is punishable as a criminal offence when committed intentionally and without right for the purpose of committing any of the offences referred to in Articles 3 to 6:</p>
<p>(a) device, including a computer program, designed or adapted primarily for the purpose of committing any of the offences referred to in Articles 3 to 6;</p>
<p>(b) a computer password, access code, or similar data by which the whole or any part of an information system is capable of being accessed.</p></blockquote>
<p>The only saving grace here is the inclusion of the phrase &#8220;when committed intentionally and without right for the purpose of committing&#8221;. This still doesn&#8217;t save things from being a total car wreck however.</p>
<h2>Conclusion</h2>
<p>I started this write-up based on the amendments I saw from Monika Hohlmeier in the belief that things had been altered for the better&#8230; however after taking time to dig through the various proposals, amendments and finally reviewing the all the available documentation it&#8217;s unclear what changes will be made. Without a clear list of amendments that were accepted, and that were either withdrawn or denied, it&#8217;s very hard to tell where this is heading.</p>
<p>I&#8217;ll fall short of saying what I really think&#8230; but the future doesn&#8217;t look good if the only people offering sane advice are ignored in favour of such poorly thought out legislation. Is there anywhere left were you can ply your honest trade anymore? Hopefully these proposals will become clearer once documentation is released.</p>
<p>Hopefully somebody with a little more legal background will take a look at this and post their opinions. Until then, I hope people keep doing what they&#8217;re doing. Without sharing of tools, techniques and knowledge, we&#8217;ve already lost!</p>
<p><strong>Update</strong>: I&#8217;ve also posted some follow up comments/thoughts <a href="http://blog.c22.cc/2012/03/29/eu-legislation-digging-below-the-fud-line-cont/" target="_blank">HERE</a></p>
<p><strong>Update 2</strong>: A commenter has drawn my attention to a flaw in my review. I&#8217;ve attempted to rework some of the thought and information to reflect this flaw&#8230; apologies for any confusion. I&#8217;ve sent an email to Monika Hohlmeier requesting further information on what was and was not accepted. Hopefully this will clear up some confusion.</p>
<p><strong>Links</strong>:</p>
<ul>
<li>Hacking IT Systems to become a criminal offence (<a href="http://www.europarl.europa.eu/news/en/pressroom/content/20120326IPR41843/html/Hacking-IT-systems-to-become-a-criminal-offence" target="_blank">Europarl article</a>)</li>
<li>Draft Report / Amendments &#8211;  Monika Hohlmeier (<a href="http://www.europarl.europa.eu/meetdocs/2009_2014/documents/libe/pr/884/884601/884601en.pdf" target="_blank">PDF</a>)</li>
<li>Draft Report / Amendments &#8211;  34 &#8211; 128 (<a href="http://www.europarl.europa.eu/meetdocs/2009_2014/documents/libe/pr/884/884601/884601en.pdf" target="_blank">PDF</a>)</li>
<li>Final commission proposal 2010  - Attacks against information systems (<a href="http://www.europarl.europa.eu/meetdocs/2009_2014/documents/com/com_com(2010)0517_/com_com(2010)0517_en.pdf" target="_blank">PDF</a>)</li>
<li>Draft Agenda of the LIBE Meeting of 26-27 March 2012 (<a href="http://www.europarl.europa.eu/meetdocs/2009_2014/documents/libe/oj/895/895916/895916en.pdf" target="_blank">PDF</a>)</li>
<li>Meeting notes and links LIBE Meeting (<a href="http://www.europarl.europa.eu/meetdocs/2009_2014/organes/libe/libe_20120326_1500.htm" target="_blank">Europarl site</a>)</li>
<li>Monika Hohlmeier (<a href="http://www.europarl.europa.eu/meps/en/96780/Monika_HOHLMEIER.html" target="_blank">MEP Information Page</a>)</li>
<li>Jan Philipp Albrech (<a href="http://www.europarl.europa.eu/meps/en/96736/Jan%20Philipp_ALBRECHT.html" target="_blank">MEP Information Page</a>)</li>
</ul>
<br /> Tagged: <a href='http://blog.c22.cc/tag/eu-legislation/'>EU Legislation</a>, <a href='http://blog.c22.cc/tag/europarl/'>EuroParl</a>, <a href='http://blog.c22.cc/tag/possession-of-tools/'>Possession of Tools</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/3999/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/3999/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/3999/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/3999/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/3999/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/3999/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/3999/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/3999/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/3999/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/3999/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/3999/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/3999/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/3999/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/3999/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=3999&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2012/03/29/eu-legislation-digging-below-the-fud-line/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/03/flag-and-parliament.jpg?w=400" medium="image">
			<media:title type="html">Flag-and-Parliament</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/03/amendment22.png" medium="image">
			<media:title type="html">Amendment22</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/03/amendment22_jan.png" medium="image">
			<media:title type="html">Amendment22_jan</media:title>
		</media:content>
	</item>
		<item>
		<title>Commandline Kung-fu &#8211; Solution</title>
		<link>http://blog.c22.cc/2012/03/20/commandline-kung-fu-solution/</link>
		<comments>http://blog.c22.cc/2012/03/20/commandline-kung-fu-solution/#comments</comments>
		<pubDate>Tue, 20 Mar 2012 12:00:44 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[for loop]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[wmi]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=3978</guid>
		<description><![CDATA[So yesterday, in a fit of Winrage I posted a cry for help&#8230; (see original Commandline Kung-fu needed! Apply within). The basics of it were, I needed to resolve a group SID  to its name and then use it in a later command. Simple you&#8217;d think, but not so! The resolution is simple using wmic, but the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=3978&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft  wp-image-3984" style="margin:5px 8px;" title="success_baby" src="http://c22blog.files.wordpress.com/2012/03/success_baby.jpg?w=200&h=132" alt="" width="200" height="132" />So yesterday, in a fit of Winrage I posted a cry for help&#8230; (see original <a title="Permalink to {Quick Post} Commandline Kung-fu needed! Apply within" href="http://blog.c22.cc/2012/03/19/quick-post-commandline-kung-fu-needed-apply-within/" rel="bookmark">Commandline Kung-fu needed! Apply within</a>).</p>
<p>The basics of it were, I needed to resolve a group SID  to its name and then use it in a later command. Simple you&#8217;d think, but not so! The resolution is simple using wmic, but the way it&#8217;s returned and the limitations of Windows command line tools really started to be a pain.</p>
<p>Once you add in the limitation that it had to be a one-liner and not a script, you really started to have issues. You couldn&#8217;t set a variable or use substring as once you set an environment variable it didn&#8217;t seem to be available until the one-liner had finished and Windows had refreshed the env list&#8230;. and that was just the start of the hair pulling (<em>not that I have much to pull out anymore</em>).</p>
<p>So, after a bit more playing I realised that one of my earlier solutions might just have worked if I&#8217;d have set the delimiter right&#8230; so, here you have it&#8230; a working one-liner to find the local administrators group (<em>no matter what it&#8217;s called, spaces and all</em>) and add a newly created user to that group.</p>
<p><pre class="brush: bash;">
FOR /F &quot;usebackq tokens=2* skip=1 delims==&quot; %G IN (`wmic group where sid^='S-1-5-32-544' get name /Value`); do FOR /F &quot;usebackq tokens=1 delims==&quot; %X IN (`echo %G`); do net user username password /ADD &amp;&amp; net localgroup &quot;%X&quot; username /ADD
</pre></p>
<p>Simple you say&#8230; well I guess hindsight is 20/20!</p>
<p>Some more useful SID values for testing:</p>
<ul>
<li>S-1-5-32-555 &#8211;&gt; Remote Desktop Users</li>
<li>S-1-5-32-551 &#8211;&gt; Backup Operators</li>
<li>S-1-5-32-549 &#8211;&gt; Server Operators</li>
<li>Well-known security identifiers in Windows operating systems (<a href="http://support.microsoft.com/kb/243330" target="_blank">here</a>)</li>
</ul>
<br /> Tagged: <a href='http://blog.c22.cc/tag/for-loop/'>for loop</a>, <a href='http://blog.c22.cc/tag/solution/'>solution</a>, <a href='http://blog.c22.cc/tag/windows/'>windows</a>, <a href='http://blog.c22.cc/tag/wmi/'>wmi</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/3978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/3978/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/3978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/3978/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/3978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/3978/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/3978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/3978/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/3978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/3978/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/3978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/3978/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/3978/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/3978/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=3978&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2012/03/20/commandline-kung-fu-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/03/success_baby.jpg?w=200" medium="image">
			<media:title type="html">success_baby</media:title>
		</media:content>
	</item>
		<item>
		<title>{Quick Post} Commandline Kung-fu needed! Apply within</title>
		<link>http://blog.c22.cc/2012/03/19/quick-post-commandline-kung-fu-needed-apply-within/</link>
		<comments>http://blog.c22.cc/2012/03/19/quick-post-commandline-kung-fu-needed-apply-within/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 10:10:11 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[for loop]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[wmi]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=3956</guid>
		<description><![CDATA[Edit: After some more playing, and some headache tablets, it seems I&#8217;ve found a solution (or should I say, found the bug in a solution I thought didn&#8217;t work)&#8230; I won&#8217;t post a spoiler just yet incase people are playing&#8230; but I will post the answer I found tomorrow once I have time! In the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=3956&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://c22blog.files.wordpress.com/2012/03/windows.jpg"><img class="wp-image-3973 alignright" style="margin:9px;" title="windows" src="http://c22blog.files.wordpress.com/2012/03/windows.jpg?w=180&h=159" alt="" width="180" height="159" /></a></p>
<p><strong>Edit</strong>:</p>
<p>After some more playing, and some headache tablets, it seems I&#8217;ve found a solution (or should I say, found the bug in a solution I thought didn&#8217;t work)&#8230; I won&#8217;t post a spoiler just yet incase people are playing&#8230; but I will post the answer I found tomorrow once I have time!</p>
<p>In the meantime happy hunting&#8230;. and remember, Windows sucks sometimes!</p>
<p style="text-align:center;">&#8212;- &#8212;- &#8212;-</p>
<p>So, I&#8217;ve been fighting with the following command for a while and can&#8217;t quite get it working (<em>due to whitespace or linefeeds at the end of the string</em>). So I&#8217;m putting it out there and asking for help!</p>
<p><strong>Goals</strong>:</p>
<p>Create a single Windows command-line (<em>not a script</em>) that runs on all modern versions of Windows (<em>no powershell here</em>) that resolves a localgroup name from its SID, and feeds this group name (<em>including any spaces!</em>) into a &#8220;net localgroup&#8221; command&#8230; It seems easy, but due to the spaces present in some group names, it&#8217;s a bit tricky to solve without using some mystical command-line kung-fu that I certainly don&#8217;t seem to posses!</p>
<p><strong>Example (<em>not working</em>)</strong>:</p>
<p>For /F &#8220;usebackq Tokens=1* Delims==&#8221; %I In (`wmic group where sid^=&#8217;S-1-5-32-551&#8242; get name /Value ^| Find &#8220;=&#8221;`); do net user username password /ADD &amp;&amp; net localgroup %J username /ADD</p>
<p>The above example uses the SID for &#8220;Backup Operators&#8221; as it contains a space&#8230; which meets the criteria! It also fails&#8230;</p>
<p><strong>Example (<em>working for group names w/o spaces only</em>)</strong>:</p>
<p>FOR /F &#8220;usebackq skip=1&#8243; %g IN (`wmic group where sid^=&#8217;S-1-5-32-544&#8242; get name`); do net user username password /ADD &amp;&amp; net localgroup %g username /ADD</p>
<p>This example works for group names like &#8220;administrators&#8221;, but if you alter the SID to S-1-5-32-551 then it will only take &#8220;backup&#8221; from the &#8220;backup operators&#8221; group name and therefore fail. It&#8217;s simple enough to fix if you known beforehand that the group has a space, but that&#8217;s not the point&#8230; we don&#8217;t know for all cases.</p>
<p>Anybody got the smarts to solve this? I hate batch scripting!!!</p>
<br /> Tagged: <a href='http://blog.c22.cc/tag/for-loop/'>for loop</a>, <a href='http://blog.c22.cc/tag/windows/'>windows</a>, <a href='http://blog.c22.cc/tag/wmi/'>wmi</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/3956/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/3956/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/3956/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/3956/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/3956/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/3956/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/3956/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/3956/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/3956/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/3956/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/3956/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/3956/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/3956/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/3956/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=3956&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2012/03/19/quick-post-commandline-kung-fu-needed-apply-within/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/03/windows.jpg?w=300" medium="image">
			<media:title type="html">windows</media:title>
		</media:content>
	</item>
		<item>
		<title>Unsung Heros (the list)</title>
		<link>http://blog.c22.cc/2012/03/12/unsung-heros-the-list/</link>
		<comments>http://blog.c22.cc/2012/03/12/unsung-heros-the-list/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 13:45:17 +0000</pubDate>
		<dc:creator>ChrisJohnRiley</dc:creator>
				<category><![CDATA[Penetration Test]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[unsung heroes]]></category>

		<guid isPermaLink="false">http://blog.c22.cc/?p=3936</guid>
		<description><![CDATA[Back in January I had this crazy idea to make a list of tools/scripts/programs that some people considered the best thing since slides bread, and others had never even heard of. Over the last couple of months I&#8217;ve received just over 30 entries from all areas of InfoSec&#8230; Not as much as I&#8217;d have liked, but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=3936&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class=" wp-image-3938 alignright" style="margin:6px;" title="Heroes" src="http://c22blog.files.wordpress.com/2012/03/heroes-season-4.jpg?w=210&h=182" alt="" width="210" height="182" />Back in January I had this crazy idea to make a list of tools/scripts/programs that some people considered the best thing since slides bread, and others had never even heard of. Over the last couple of months I&#8217;ve received just over 30 entries from all areas of InfoSec&#8230; Not as much as I&#8217;d have liked, but still an few interesting gems in the mix.</p>
<p>As I said in the original post, I&#8217;ll be pulling a name out of the digital hat for a book from No starch&#8230; as I&#8217;ve just got finished reading the excellent &#8220;Tangled Web&#8221; I think it would make a great prize. I&#8217;ll be drawing and contacting the winner this week and will post their name on Twitter (<em>unless they wish to remain anonymous</em>).</p>
<p>I&#8217;ve created the following list in no particular oder, and tried my best to categorize them as best I can. Some things fall into multiple categories, but I&#8217;m sure, like many tools, you can use them for a lot of fun things <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Category: <strong>Monitoring</strong></p>
<ul>
<li>pastebin.py (<a href="http://ghosthunter.googlecode.com/svn/trunk/scripts/pastebin/pastebin.py" target="_blank">link</a>)
<ul>
<li>Written by Xavier Garcia, this small python script continuously monitors <a href="http://pastebin.com/" target="_blank">pastebin.com</a>, looking for interesting keywords (based on regex)</li>
</ul>
</li>
<li>PasteLert (<a href="https://andrewmohawk.com/pasteLert/" target="_blank">link</a>)
<ul>
<li>PasteLert is a simple system to search pastebin.com and set up alerts (like google alerts) for pastebin.com entries.</li>
</ul>
</li>
<li>OSSIM (<a href="http://alienvault.com/community" target="_blank">link</a>)
<ul>
<li>OSSIM is the de facto standard Open Source SIEM</li>
</ul>
</li>
</ul>
<div>Category: <strong>Forensics / Incident-Response</strong></div>
<div>
<ul>
<li>Xmount (<a href="https://www.pinguin.lu/index.php" target="_blank">link</a>)
<ul>
<li>xmount allows you to convert on-the-fly between multiple input and output harddisk image types. xmount creates a virtual file system using FUSE</li>
</ul>
</li>
<li>PhotoREC (<a href="http://www.cgsecurity.org/wiki/PhotoRec" target="_blank">link</a>)
<ul>
<li>Specifically designed for digital photo recovery.  Due to its algorithms for reconstructing files, it is also able to strip encryption from data in some cases.</li>
</ul>
</li>
<li>TestDisk (<a href="http://www.cgsecurity.org/wiki/TestDisk" target="_blank">link</a>)
<ul>
<li>Great portable tool for performing a deep search and recovery of deleted partitions and files on physical drives and image files.  It&#8217;s simple and scriptable.</li>
</ul>
</li>
<li>TCPflow (<a href="http://www.circlemud.org/jelson/software/tcpflow/" target="_blank">link</a>)
<ul>
<li>Very handy for quick recovery of *data* (payload without ip/tcp headers, etc) traversing a network interface as well as different data flows.</li>
</ul>
</li>
<li>Network Miner (<a href="http://www.sourceforge.net/projects/networkminer" target="_blank">link</a>)
<ul>
<li>A great tool for extracting information and transferred files from sniffed network traffic.</li>
</ul>
</li>
<li>Chaos Reader (<a href="http://chaosreader.sourceforge.net/" target="_blank">link</a>)
<ul>
<li>A freeware tool to trace TCP/UDP/&#8230; sessions and fetch application data from snoop or tcpdump logs.</li>
</ul>
</li>
</ul>
</div>
<div>Category: <strong>Systems Administration</strong></div>
<ul>
<li>Deep Freeze (<a href="http://www.faronics.com/enterprise/deep-freeze/" target="_blank">link</a>)
<ul>
<li>Deep Freeze provides the ultimate workstation protection by creating a “frozen” snapshot of a workstation’s configuration and settings. Each time you restart your machine, Deep Freeze restores your computer to this desired “frozen” state.</li>
</ul>
</li>
<li>splitcap (<a href="http://www.netresec.com/?page=SplitCap" target="_blank">link</a>)
<ul>
<li>Tool for splitting PCAP files</li>
</ul>
</li>
<li>rawcap (<a href="http://www.netresec.com/?page=RawCap" target="_blank">link</a>)
<ul>
<li>RawCap makes it possible to sniff network traffic on Windows machines without WinPcap.</li>
</ul>
</li>
<li>Log Parser (<a href="http://technet.microsoft.com/en-us/scriptcenter/dd919274" target="_blank">link</a>)
<ul>
<li>Log Parser 2.2 is a powerful, versatile tool that provides universal query access to text-based data such as log files, XML files and CSV files, as well as key data sources on the Windows operating system such as the Event Log, the Registry, the file system, and Active Directory.</li>
</ul>
</li>
<li>WOL-E (<a href="http://code.google.com/p/wol-e/" target="_blank">link</a>)
<ul>
<li>WOL-E is a suite of tools for the Wake on LAN feature of network attached computers.</li>
</ul>
</li>
</ul>
<div>Category: <strong>End-point detection</strong></div>
<div>
<ul>
<li>GMER (<a href="http://www.gmer.net/" target="_blank">link</a>)
<ul>
<li>Application that detects and removes rootkits</li>
</ul>
</li>
<li>Fail2Ban (<a href="http://www.fail2ban.org" target="_blank">link</a>)
<ul>
<li>fail2ban checks log files for information on brute forcing attempts and exploit probing, and then temporarily &#8220;bans&#8221; the offending IP.</li>
</ul>
</li>
<li>Sigtool (<a href="http://www.clamav.net" target="_blank">link</a>)
<ul>
<li>Sigtool (part of clamav) lets you create your own signatures next to the &#8220;known&#8221; malware signatures. So when virustotal says &#8220;0/42&#8243;, you still can block the files.</li>
</ul>
</li>
</ul>
</div>
<div>Category: <strong>Penetration Testing</strong></div>
<ul>
<li>Ebrute (<a href="http://www.r00t.tv" target="_blank">link</a>)
<ul>
<li>Why is this your unsung hero: Windows domain username enumeration via Kerberos</li>
</ul>
</li>
<li>Arachni (<a href="https://github.com/Zapotek/arachni" target="_blank">link</a>)
<ul>
<li>Web application scanner</li>
</ul>
</li>
<li>Keimpx (<a href="https://code.google.com/p/keimpx/" target="_blank">link</a>)
<ul>
<li>Covering the gap of MSF psexec spraying the domain with dumped credentials (pass the hash)</li>
</ul>
</li>
<li>NfSpy (<a href="https://github.com/bonsaiviking/NfSpy" target="_blank">link</a>)
<ul>
<li>Takes all the hard work out of spoofing one&#8217;s uid in order to gain access to all the files on an NFS share. Additionally, supports all sorts of shortcuts to get around &#8220;security measures&#8221; like firewalling port 111.</li>
</ul>
</li>
<li>ratproxy (<a href="https://code.google.com/p/ratproxy/" target="_blank">link</a>)
<ul>
<li>A semi-automated, largely passive web application security audit tool, optimized for an accurate and sensitive detection, and automatic annotation, of potential problems and security-relevant design patterns based on the observation of existing, user-initiated traffic in complex web 2.0 environments.</li>
</ul>
</li>
<li>ThickNET (<a href="https://github.com/SpiderLabs/thicknet" target="_blank">link</a>)
<ul>
<li>Thicknet is a TCP session manipulation and take-over framework. it is a great tool for internal penetration testing. It is modular which allows users to develop and customize the tool for their particular target protocols.</li>
</ul>
</li>
<li>Tachyon (<a href="https://github.com/initnull/tachyon" target="_blank">link</a>)
<ul>
<li>Tachyon is a dead file scanner, written in python. The main goal of tachyon is to help webadmins find leftover files in their site installation, permission problems and web server configuration errors</li>
</ul>
</li>
<li>SWFscan (<a href="http://h30499.www3.hp.com/hpeb/attachments/hpeb/sws-119/721/1/HP_FREE_TOOL_SwfScan.zip" target="_blank">link</a>)
<ul>
<li>SwfScan decompiles Flash into source and checks it for security issues. Even if it doesn&#8217;t find security problems, discovery of additional server URLs, viewing application logic, and the opportunity to manually view the source for issues are invaluable. All done in a pretty nice GUI.</li>
</ul>
</li>
<li>Mona (<a href="https://redmine.corelan.be/projects/mona" target="_blank">link</a>)
<ul>
<li>Mona is a PyCommand for Immunity Debugger that replaces pvefindaddr.</li>
</ul>
</li>
<li>UAtester (<a href="http://blog.c22.cc/toolsscripts/ua-tester/" target="_blank">link</a>)
<ul>
<li>A tool for testing web-site reactions to a range of User Agent strings. Useful for ensuring wide coverage of web applications.</li>
</ul>
</li>
<li>Evilgrade (<a href="http://www.infobytesec.com/down/isr-evilgrade-Readme.txt" target="_blank">link</a>)
<ul>
<li>Evilgrade is a modular framework that allows the user to take advantage of poor upgrade implementations by injecting fake updates.</li>
</ul>
</li>
<li>PMCMA [Post Memory Corruption Memory Analysis] (<a href="http://www.pmcma.org/" target="_blank">link</a>)
<ul>
<li>Helps automating the process of finding a way to exploit a (known) memory arbitrary read/write vulnerabilities</li>
</ul>
</li>
<li>MimiKatz (<a href="http://blog.gentilkiwi.com/mimikatz" target="_blank">link</a>)
<ul>
<li>Can recover clear text passwords of logged on users on a windows machine, by lsass injection.</li>
</ul>
</li>
<li>OWTF (<a href="http://owtf.org/" target="_blank">link</a>)
<ul>
<li>The offensive Web Testing Framework &#8211; An awesome framework just recently developed to help better test passively and actively web applications.</li>
</ul>
</li>
<li>Yeti (<a href="http://spyeti.blogspot.com/" target="_blank">link</a>)
<ul>
<li>A network foot printing tool from the Sensepost crew</li>
</ul>
</li>
<li>Reaver-WPS (<a href="http://code.google.com/p/reaver-wps/" target="_blank">link</a>)
<ul>
<li>A tool for exploiting WPA/WPA2 issues (in particular the WPS bug)</li>
</ul>
</li>
<li>Dirfuzz (<a href="https://github.com/matugm/dirfuzz" target="_blank">link</a>)
<ul>
<li>Directory discovery and info gathering of web applications</li>
</ul>
</li>
<li>MORF v0.3 — NINJA ENCODER (<a href="http://www.ioactive.com/resources/tools.html" target="_blank">link</a>)
<ul>
<li>Encoder with a wide range of supported encoding types (URL, HTTP, Base64, HEX, MD5, SHA1, UTF-7&#8230;)</li>
</ul>
</li>
</ul>
<p>Category: <strong>Miscellaneous</strong></p>
<ul>
<li>xdotool (<a href="http://www.semicomplete.com/projects/xdotool" target="_blank">link</a>)
<ul>
<li>This tool lets you simulate keyboard input and mouse activity, move and resize windows, etc. It does this using X11&#8242;s XTEST extension and other Xlib functions.</li>
</ul>
</li>
<li>Risu (<a href="http://hammackj.com/projects/risu" target="_blank">link</a>)
<ul>
<li>Risu is a Nessus parser, that converts the generated reports into a ActiveRecord database, this allows for easy report generation and vulnerability verification.</li>
</ul>
</li>
<li>Thinkst &#8211; Infosec Conference Collector (<a href="http://cc.thinkst.com" target="_blank">link</a>)
<ul>
<li>An online tool for searching prior and upcoming conference talks. Useful for  attribution, reference checking, and trend spotting. Doesn&#8217;t cover everything, but a good starting point.</li>
</ul>
</li>
</ul>
<p>I hope there&#8217;s at least 1 or 2 unsung heroes on the list for everybody&#8230; and if you have any additions, feel free to leave them in the comments, and I&#8217;ll update the post when I can! Thanks to all those who took part&#8230; this list if yours after all, not mine!</p>
<p>P.S: Thanks to the generous person who suggested UAtester&#8230; even if it was a joke <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br /> Tagged: <a href='http://blog.c22.cc/tag/tools/'>tools</a>, <a href='http://blog.c22.cc/tag/unsung-heroes/'>unsung heroes</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/c22blog.wordpress.com/3936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/c22blog.wordpress.com/3936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/c22blog.wordpress.com/3936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/c22blog.wordpress.com/3936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/c22blog.wordpress.com/3936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/c22blog.wordpress.com/3936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/c22blog.wordpress.com/3936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/c22blog.wordpress.com/3936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/c22blog.wordpress.com/3936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/c22blog.wordpress.com/3936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/c22blog.wordpress.com/3936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/c22blog.wordpress.com/3936/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/c22blog.wordpress.com/3936/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/c22blog.wordpress.com/3936/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.c22.cc&#038;blog=1599597&#038;post=3936&#038;subd=c22blog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.c22.cc/2012/03/12/unsung-heros-the-list/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">ChrisJohnRiley</media:title>
		</media:content>

		<media:content url="http://c22blog.files.wordpress.com/2012/03/heroes-season-4.jpg?w=300" medium="image">
			<media:title type="html">Heroes</media:title>
		</media:content>
	</item>
	</channel>
</rss>
