<?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>Hacktopia &#187; Uncategorized</title>
	<atom:link href="http://www.hacktopia.net/wp/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hacktopia.net/wp</link>
	<description>The zen of hacking</description>
	<lastBuildDate>Tue, 15 Jun 2010 17:40:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>force dhcpd to log to it&#8217;s own file with syslog-ng</title>
		<link>http://www.hacktopia.net/wp/force-dhcpd-to-log-to-its-own-file-with-syslog-mg/</link>
		<comments>http://www.hacktopia.net/wp/force-dhcpd-to-log-to-its-own-file-with-syslog-mg/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 18:33:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=174</guid>
		<description><![CDATA[So I did not want my dhcpd messages to be lumped in with all the other /var/log/syslog messages.  I am running Debian 5 with comes running with syslog-ng.  While syslog-ng is much more customizable then plain syslog, it can also be very confusing.  Below is a example of all that I had to add to [...]]]></description>
			<content:encoded><![CDATA[<p>So I did not want my dhcpd messages to be lumped in with all the other /var/log/syslog messages.  I am running Debian 5 with comes running with syslog-ng.  While syslog-ng is much more customizable then plain syslog, it can also be very confusing.  Below is a example of all that I had to add to make syslog send all dhcpd messages to /var/log/dhcpd.log.  All I had to do was add those lines to the end of the /etc/syslog-ng/syslog-ng.conf configuration file, and then restart syslog-ng with /etc/init.d/syslog-ng  restart.  Did not even have to touch /var/log/dhcpd.log, syslog-ng took care of creating that while writing the first log entry.</p>
<blockquote><p>filter f_daemon     {facility(daemon); };<br />
filter f_dhcpd       {match(&#8220;dhcpd&#8221;); };<br />
destination dhcpmessages { file(&#8220;/var/log/dhcpd.log&#8221;); };<br />
log { source(s_all); filter(f_daemon);  filter(f_dhcpd); destination(dhcpmessages); };</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/force-dhcpd-to-log-to-its-own-file-with-syslog-mg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>remove passowrd from Apache SSL Certificate</title>
		<link>http://www.hacktopia.net/wp/remove-passowrd-from-apache-ssl-certificate/</link>
		<comments>http://www.hacktopia.net/wp/remove-passowrd-from-apache-ssl-certificate/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 13:51:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=161</guid>
		<description><![CDATA[So you need to restart Apache that has a SSL certificate, but you don&#8217;t want to give the other admins the password, or for other reasons.  My reason for taking it out was that logrotate wants to restart Apache after log rotation.  Well with Apache sitting waiting for a password, it screws everything up, because [...]]]></description>
			<content:encoded><![CDATA[<p>So you need to restart Apache that has a SSL certificate, but you don&#8217;t want to give the other admins the password, or for other reasons.  My reason for taking it out was that logrotate wants to restart Apache after log rotation.  Well with Apache sitting waiting for a password, it screws everything up, because it sits and waits for a password that is never entered.</p>
<blockquote><p>server:/etc/apache2/keys# openssl rsa -in website.key  -out website.key.nopass<br />
Enter pass phrase for website.key:<br />
writing RSA key</p></blockquote>
<p>Make sure you edit /etc/apache2/sites-enabled/000-default or where ever you set up SSL on apache to make it use the new website.key.nopass key.  Look how wonderfully it restarts apache with out bothering you for a password now.</p>
<p>So it now looks like</p>
<blockquote><p>SSLCertificateKeyFile /etc/apache2/keys/roadwarriorvpn.key.nopass</p></blockquote>
<p>Yaha it restarted with out having to enter a password.</p>
<blockquote><p>front:/etc/apache2# /etc/init.d/apache2ssl  restart<br />
Restarting web server: apache2 &#8230; waiting .<br />
front:/etc/apache2#</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/remove-passowrd-from-apache-ssl-certificate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to test a Freeradius server login</title>
		<link>http://www.hacktopia.net/wp/how-to-test-a-freeradius-server-login/</link>
		<comments>http://www.hacktopia.net/wp/how-to-test-a-freeradius-server-login/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 20:37:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=148</guid>
		<description><![CDATA[So you set up your radius server, and you want to make sure that it is authenicationg your users properly. $radtest username password servername port secret $radtest clinets-username clients-password (hostname of server) (radtest username password servername port secret) (shared secret between radius client and server) I would like to note that if set the hostname [...]]]></description>
			<content:encoded><![CDATA[<p>So you set up your radius server, and you want to make sure that it is authenicationg your users properly.</p>
<blockquote><p>$radtest username password servername port secret</p></blockquote>
<blockquote><p>$radtest clinets-username clients-password (hostname of server) (radtest username password servername port secret) (shared secret between radius client and server)</p></blockquote>
<p>I would like to note that if set the hostname to somewhere where a radius server does not exist then you will keep on getting output saying &#8220;Sending Access-Request of id 27 to 203.65.22.105 port 1812&#8243; this is because the radius server works over UDP so it has no idea if the server received the packets or not, so it just keeps trying.</p>
<p>A successful test looks like this</p>
<blockquote><p>hostname:~# radtest    username  userpassword hostname.com  1813 sharedsecret<br />
Sending Access-Request of id 60 to 203.65.22.105 port 1812 User-Name = &#8220;username&#8221;<br />
User-Password = &#8220;userpassword&#8221;<br />
NAS-IP-Address =203.65.22.105<br />
NAS-Port = 1813<br />
rad_recv: Access-Accept packet from host 203.65.22.105 port 1812, id=60, length=20</p></blockquote>
<p>A rejected login test looks like this</p>
<blockquote><p>hostname:~# radtest    username  userpassword hostname.com  1813 sharedsecret<br />
Sending Access-Request of id 60 to 203.65.22.105 port 1812 User-Name = &#8220;username&#8221;<br />
User-Password = &#8220;userpassword&#8221;<br />
NAS-IP-Address =203.65.22.105<br />
NAS-Port = 1813<br />
rad_recv: Access-Reject packet from host 208.73.74.68 port 1812, id=80, length=20</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/how-to-test-a-freeradius-server-login/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate a list for password cracking</title>
		<link>http://www.hacktopia.net/wp/generate-a-list-for-password-cracking/</link>
		<comments>http://www.hacktopia.net/wp/generate-a-list-for-password-cracking/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 15:38:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=115</guid>
		<description><![CDATA[In this short tutorial I will show you how to generate your very own password list to feed into a password cracker. First make sure you have plenty of disk space. You will need terabytes to store all that you will be able to generate by using my example so be careful and watch the [...]]]></description>
			<content:encoded><![CDATA[<p>In this short tutorial I will show you how to generate your very own password list to feed into a password cracker.  First make sure you have plenty of disk space.  You will need terabytes to store all that you will be able to generate by using my example so be careful and watch the password file grow to make sure that it does not fill up your system.  So for starters get a Unix system, preferbly Linux with some nice fast processor, and like I stated before plenty of disk space.  Then install &#8216;<a href="www.openwall.com/john/">John The Ripper</a> often refered to as simply john when run from the command line.</p>
<p>Here is a example ubuntu system package search</p>
<blockquote><p>user@server:~$ aptitude search john<br />
i   john                                                      &#8211; active password cracking tool</p></blockquote>
<p>I am sure you can use the power of john for good or evil, but pleas try to use it for good.  I have used it for noble reasons.  One company that I worked for wanted to make sure that the passwords of the accounts for the servers where secure so I was asked to run a password cracker on the user.  So I broke out john and watched how the majority of them where cracked in under a second.  it did take several times asking the users to make better passwords before it took a resonable amount of time to cracks them.  At the time I considered a couple of days good enough.</p>
<p>Recently I was unable to long into one of my systems.  I was authorized for the system so I simply asked a friend to reset my password.  Before the password was reset I had the freind copy my hash from the shadow file like so.</p>
<blockquote><p>user@server:~$ grep user/etc/passwd &gt; pass<br />
user:x:1000:1000:user,,,:/home/user:/bin/bash</p></blockquote>
<p>I used the resulting pass file to feed to john.  I did this with out a dictionary file.  The benifits to using a dictionary is that john does not need to use processign power to generate diffrent passwords.</p>
<blockquote><p>bab@nixer:~$ john pass<br />
Loaded 1 password (Standard DES [48/64 4K])</p></blockquote>
<p>I finally was told what my password was after 11 days.  It is very neat that you can press return while it is running to see what kind of guesses john is trying.  For background info the password that was used was only 8 charaters long with one capital and one number the rest where lower case. The reason that it took so long was that john had to generate each password and then try it against the has that I provided.  As you might of guessed these kind of attaches are only usefull when you have the password and the hash.</p>
<p>Below is the command to generate 95 printable ASCII characters of lengths 1 to 8.  I would suggest simiting the list to something smaller like replacin ALL with Alpha or Digit.  You can also edit the /etc/john/john.conf file to shorten or letehen the passwords generated and a few other options.</p>
<blockquote><p>john -incremental=All &#8211;stdout &gt; john_string_list</p></blockquote>
<p>Here are the 26 printiable ASCII charaters</p>
<blockquote><p>!&#8221;#$%&amp;&#8217;()*+,-./0123456789:;&lt;=&gt;?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/generate-a-list-for-password-cracking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>where are man pages located</title>
		<link>http://www.hacktopia.net/wp/where-are-man-pages-located/</link>
		<comments>http://www.hacktopia.net/wp/where-are-man-pages-located/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 14:48:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=94</guid>
		<description><![CDATA[Trying to find out where all your man pages are located, have no fear this is how you can find them. user@server:~$ manpath /usr/local/man:/usr/local/share/man:/usr/share/man Which will tell you what directories you computer will look for man files. you can also look in $ grep MANPATH /etc/manpath.config To see where you system expects the man pages [...]]]></description>
			<content:encoded><![CDATA[<p>Trying to find out where all your man pages are located, have no fear this is how you can find them.</p>
<blockquote><p>user@server:~$ manpath<br />
/usr/local/man:/usr/local/share/man:/usr/share/man</p></blockquote>
<p>Which will tell you what directories you computer will look for man files.<br />
you can also look in</p>
<blockquote><p>$ grep MANPATH /etc/manpath.config</p></blockquote>
<p>To see where you system expects the man pages to be located.</p>
<p>I you would like to read some man pages about man then then &#8216;man man&#8217; and &#8216;man 5 manpath&#8217; for more information.  If there are man pages that you have but you cant get them to show up by typing &#8220;man widget&#8221; then you simply have to add them to you man path.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/where-are-man-pages-located/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
