<?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>Tadek's Blog &#187; Security</title>
	<atom:link href="http://tadek.pietraszek.org/blog/category/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://tadek.pietraszek.org/blog</link>
	<description>Some random notes about computers, security, cool links and others.</description>
	<lastBuildDate>Fri, 12 Dec 2008 22:49:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>md5^-1(hash)</title>
		<link>http://tadek.pietraszek.org/blog/2007/11/22/md5-1hash/</link>
		<comments>http://tadek.pietraszek.org/blog/2007/11/22/md5-1hash/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 12:31:00 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2007/11/22/md5-1hash/</guid>
		<description><![CDATA[I just came across this website: http://md5.rednoize.com, http://md5.cryptobitch.de, http://passcracking.com They have a large dictionaries of unsalted MD5/SHA passwords. I played with it for a little bit. It&#8217;s amazing and scary how little entropy there is in a simple dictionary-based passwords with few modifications! Another conclusion is that you should never use unsalted passwords in your [...]]]></description>
			<content:encoded><![CDATA[<p>I just came across this website: <a href="http://md5.rednoize.com">http://md5.rednoize.com</a>, <a href="http://md5.cryptobitch.de">http://md5.cryptobitch.de</a>, <a href="http://passcracking.com">http://passcracking.com</a> They have a large dictionaries of unsalted MD5/SHA passwords. I played with it for a little bit. It&#8217;s amazing and scary how little entropy there is in a simple dictionary-based passwords with few modifications! Another conclusion is that you should never use unsalted passwords in your programs.</p>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2007/11/22/md5-1hash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forensics &#8211; Tools</title>
		<link>http://tadek.pietraszek.org/blog/2005/10/29/forensics-tools/</link>
		<comments>http://tadek.pietraszek.org/blog/2005/10/29/forensics-tools/#comments</comments>
		<pubDate>Sat, 29 Oct 2005 19:51:01 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips&Tricks]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2005/10/29/forensics-tools/</guid>
		<description><![CDATA[Another link about firensic tools: Forensics &#8211; Tools. Might be useful one day.
]]></description>
			<content:encoded><![CDATA[<p>Another link about firensic tools: <a href="http://www.forinsect.de/forensics/forensics-tools.html">Forensics &#8211; Tools</a>. Might be useful one day.</p>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2005/10/29/forensics-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Foremost</title>
		<link>http://tadek.pietraszek.org/blog/2005/10/29/foremost/</link>
		<comments>http://tadek.pietraszek.org/blog/2005/10/29/foremost/#comments</comments>
		<pubDate>Sat, 29 Oct 2005 19:40:51 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2005/10/29/foremost/</guid>
		<description><![CDATA[Foremost : a data forensic tool, can be used for recovery of deleted stuff as well (a.k.a data carving).
]]></description>
			<content:encoded><![CDATA[<p><a href="http://foremost.sourceforge.net/">Foremost</a> : a data forensic tool, can be used for recovery of deleted stuff as well (a.k.a data carving).</p>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2005/10/29/foremost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make fake fingerprints?</title>
		<link>http://tadek.pietraszek.org/blog/2005/10/19/ccc-how-to-fake-fingerprints/</link>
		<comments>http://tadek.pietraszek.org/blog/2005/10/19/ccc-how-to-fake-fingerprints/#comments</comments>
		<pubDate>Wed, 19 Oct 2005 08:22:34 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2005/10/19/ccc-how-to-fake-fingerprints/</guid>
		<description><![CDATA[Making fake fingerprints cookbook: CCC &#124; How to fake fingerprints? and a presentation (330MB!)
]]></description>
			<content:encoded><![CDATA[<p>Making fake fingerprints cookbook: <a href="http://www.ccc.de/biometrie/fingerabdruck_kopieren.xml?language=en">CCC | How to fake fingerprints?</a> and a <a href=" http://rehash.xs4all.nl/wth/rawtapes/wth_spoofing_fingerprints_in_10_minutes/wth_spoofing_fingerprints_in_10_minutes.mp4
">presentation</a> (330MB!)</p>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2005/10/19/ccc-how-to-fake-fingerprints/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nessus command line search</title>
		<link>http://tadek.pietraszek.org/blog/2005/10/12/nessus-command-line-search/</link>
		<comments>http://tadek.pietraszek.org/blog/2005/10/12/nessus-command-line-search/#comments</comments>
		<pubDate>Wed, 12 Oct 2005 14:59:14 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips&Tricks]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2005/10/12/nessus-command-line-search/</guid>
		<description><![CDATA[I&#8217;ve recently tired to do a nessus scan from an X-less gentoo machine. The task is quite simple, but there are a few quirks that are not obvious.

The easy part:


emerge nessus
nessus-mkcert
nessus-user-add
register at nessus website to get the actiovation code for plugin feeds (FYI: #GPL plugins: 1299, #registered plugins: 9575), so unless you register you get [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently tired to do a nessus scan from an X-less gentoo machine. The task is quite simple, but there are a few quirks that are not obvious.</p>

<p>The easy part:</p>

<ol>
<li>emerge nessus</li>
<li>nessus-mkcert</li>
<li>nessus-user-add</li>
<li>register at nessus website to get the actiovation code for plugin feeds (FYI: #GPL plugins: 1299, #registered plugins: 9575), so unless you register you get a very small subset of (probably outdated)  scanners.</li>
<li>nessus-fetch &#8211;register &lt;activation-code&gt;</li>
<li>nessus-update-plugins (it probably makes sense to add it to cron).</li>
</ol>

<p>Ok, now for scanning the most obvious choice is to run a nessus client with GTK interface. If we don&#8217;t want to do this we can either:</p>

<ul>
<li>run the graphical console remotely</li>
<li>run a command-line interface.</li>
</ul>

<p>The tricky part:
Scanning using command line interface:</p>

<pre><code>nessus -V -q 127.0.0.1 1241 &lt;user&gt; &lt;password&gt; &lt;host file&gt; &lt;output file.nbe&gt;
</code></pre>

<p>It works fine although generates a warning that &#8220;potentially unsafe plugins have been disabled&#8221;. While it makes sense for a big and critical network, you may also want to do the &#8220;unsafe&#8221; scan occasionally. How to enable it?</p>

<p>The first trick, is that nessus creates a &#8220;.nessusrc&#8221; file in your home directory. The first try &#8212; &#8220;safe_checks=no&#8221; &#8211; doesn&#8217;t help.
Second, you figure out that there is also a nessus-wide file /etc/nessus/nessusd.conf&#8221;, which has the same option (overriding the local one) by default set to &#8220;yes&#8221;. Unfortuantely, no warning is generated when this happenes. Unfortunately, this doesn&#8217;t help either <img src='http://tadek.pietraszek.org/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>

<p>I found the solution analyzing the config file that was created after using nessus with a GUI (with all the plugins enabled). It turns out that such a file the following entry is being added:</p>

<pre><code>begin(PLUGIN_SET)
 14250 = yes
 15094 = yes
 15185 = yes
...
end(PLUGIN_SET)
</code></pre>

<p>So all the plugins are explicitly enabled. Only then AND if both safe_checks in the global and local config files are set to &#8220;no&#8221;, unsafe plugins are executed. Unfortuantely, I don&#8217;t know how to set this option from the command line. Also as the new plugins are being instaled, the list would need to be kept  updated (does nessus client do this?).</p>

<p>Another solution can be using Net::Nessus::ScanLite from CPAN (unfortunately it seems a bit outdated ~Dec 2003). I haven&#8217;t tried it, but it looks ok, and also it supports reading of plugins (so that we can enable/disable some) and also relieves us from parsing the NBE file.
Problem: Net::Nessus::ScanLite uses Net:Nessus::Client, which doesn&#8217;t compile (for a number of reasons) and, moreover,  is not aware that Nessus uses SSL. Surprisingly enough, ScanLite is aware of this and it somehow works around this. How &#8212; I don&#8217;t know.</p>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2005/10/12/nessus-command-line-search/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>SORBS Database Lookup</title>
		<link>http://tadek.pietraszek.org/blog/2005/10/06/sorbs-database-lookup/</link>
		<comments>http://tadek.pietraszek.org/blog/2005/10/06/sorbs-database-lookup/#comments</comments>
		<pubDate>Thu, 06 Oct 2005 08:39:37 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2005/10/06/sorbs-database-lookup/</guid>
		<description><![CDATA[Wonder how this works&#8230; SORBS Database Lookup
]]></description>
			<content:encoded><![CDATA[<p>Wonder how this works&#8230; <a href="http://www.nl.sorbs.net/lookup.shtml?213.239.212.45">SORBS Database Lookup</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2005/10/06/sorbs-database-lookup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ssh_config file</title>
		<link>http://tadek.pietraszek.org/blog/2005/10/04/ssh_config-file/</link>
		<comments>http://tadek.pietraszek.org/blog/2005/10/04/ssh_config-file/#comments</comments>
		<pubDate>Tue, 04 Oct 2005 08:00:09 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2005/10/04/ssh_config-file/</guid>
		<description><![CDATA[Recently learned about .ssh/config file, in which you can customize parameters used for connecting to different hosts. The complete syntax is described in &#8220;man ssh_config&#8221;, here is just a few highlights:

Host &#60;short hostname&#62;
Hostname &#60;full hostname&#62;
Port port
User user
LocalForward 54320 localhost:5432
Dynamic Forward 9050
]]></description>
			<content:encoded><![CDATA[<p>Recently learned about .ssh/config file, in which you can customize parameters used for connecting to different hosts. The complete syntax is described in &#8220;man ssh_config&#8221;, here is just a few highlights:</p>

<p>Host &lt;short hostname&gt;
Hostname &lt;full hostname&gt;
Port port
User user
LocalForward 54320 localhost:5432
Dynamic Forward 9050</p>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2005/10/04/ssh_config-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding your ssh key to &#8220;authorized_keys&#8221;</title>
		<link>http://tadek.pietraszek.org/blog/2005/09/29/adding-your-ssh-key-to-authorized_keys/</link>
		<comments>http://tadek.pietraszek.org/blog/2005/09/29/adding-your-ssh-key-to-authorized_keys/#comments</comments>
		<pubDate>Thu, 29 Sep 2005 08:25:12 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2005/09/29/adding-your-ssh-key-to-authorized_keys/</guid>
		<description><![CDATA[As simple as that:
cat id_*.pub &#124; ssh servername &#8220;cat &#62;&#62; ~/.ssh/authorized_keys&#8221;
]]></description>
			<content:encoded><![CDATA[<p>As simple as that:
cat id_*.pub | ssh servername &#8220;cat &gt;&gt; ~/.ssh/authorized_keys&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2005/09/29/adding-your-ssh-key-to-authorized_keys/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>OpenLDAP-POSTGRESQL HOWTO</title>
		<link>http://tadek.pietraszek.org/blog/2005/09/26/openldap-postgresql-howto/</link>
		<comments>http://tadek.pietraszek.org/blog/2005/09/26/openldap-postgresql-howto/#comments</comments>
		<pubDate>Mon, 26 Sep 2005 11:25:49 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2005/09/26/openldap-postgresql-howto/</guid>
		<description><![CDATA[Here is a document describing how to use LDAP with a PostgreSQL database.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.samse.fr/GPL/ldap_pg/HOWTO/">Here</a> is a document describing how to use LDAP with a PostgreSQL database.</p>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2005/09/26/openldap-postgresql-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Identity2.0 &#8211; OSCON Presentation</title>
		<link>http://tadek.pietraszek.org/blog/2005/09/23/identity20-oscon-presentation/</link>
		<comments>http://tadek.pietraszek.org/blog/2005/09/23/identity20-oscon-presentation/#comments</comments>
		<pubDate>Fri, 23 Sep 2005 08:49:06 +0000</pubDate>
		<dc:creator>tadekp</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://tadek.pietraszek.org/blog/2005/09/23/identity20-oscon-presentation/</guid>
		<description><![CDATA[A really cool way of giving presentations: Identity2.0 &#8211; OSCON Presentation.  BTW, the topic is interesting as well.
]]></description>
			<content:encoded><![CDATA[<p>A really cool way of giving presentations: <a href="http://www.identity20.com/media/OSCON2005/">Identity2.0 &#8211; OSCON Presentation</a>.  BTW, the topic is interesting as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://tadek.pietraszek.org/blog/2005/09/23/identity20-oscon-presentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
