<?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</title>
	<atom:link href="http://www.hacktopia.net/wp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hacktopia.net/wp</link>
	<description>The zen of hacking</description>
	<lastBuildDate>Fri, 30 Mar 2012 14:22:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Back up CD or DVD ie disk media with DD</title>
		<link>http://www.hacktopia.net/wp/back-up-cd-or-dvd-ie-disk-media-with-dd/</link>
		<comments>http://www.hacktopia.net/wp/back-up-cd-or-dvd-ie-disk-media-with-dd/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 14:22:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=306</guid>
		<description><![CDATA[So you need to find the device name by typing the &#8220;mount&#8221; command.  Below you can see the device that is type iso9660 which is a give away that it is a optical media device. $ mount /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) proc on /proc type proc (rw,noexec,nosuid,nodev) none on /sys type sysfs (rw,noexec,nosuid,nodev) [...]]]></description>
			<content:encoded><![CDATA[<p>So you need to find the device name by typing the &#8220;mount&#8221; command.  Below you can see the device that is type iso9660 which is a give away that it is a optical media device.</p>
<blockquote><p>$ mount<br />
/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)<br />
proc on /proc type proc (rw,noexec,nosuid,nodev)<br />
none on /sys type sysfs (rw,noexec,nosuid,nodev)<br />
fusectl on /sys/fs/fuse/connections type fusectl (rw)<br />
none on /sys/kernel/debug type debugfs (rw)<br />
none on /sys/kernel/security type securityfs (rw)<br />
none on /dev type devtmpfs (rw,mode=0755)<br />
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)<br />
none on /dev/shm type tmpfs (rw,nosuid,nodev)<br />
none on /var/run type tmpfs (rw,nosuid,mode=0755)<br />
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)<br />
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)<br />
/home/user/.Private on /home/bab type ecryptfs (ecryptfs_check_dev_ruid,ecryptfs_sig=8d1c115a6a1982b4,ecryptfs_fnek_sig=48a424107752079f,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs)<br />
gvfs-fuse-daemon on /home/bab/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=bab)<br />
/dev/sr0 on /media/327 type iso9660 (ro,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500)</p></blockquote>
<p>/dev/sr0 is the device name of the disk drive.</p>
<p>So as you can see below if= the source and of= is the destination.</p>
<blockquote><p>$ dd if=/dev/sr0 of=/home/user/fileName.iso<br />
54520+0 records in<br />
54520+0 records out<br />
27914240 bytes (28 MB) copied, 11.2879 s, 2.5 MB/s</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/back-up-cd-or-dvd-ie-disk-media-with-dd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easily relay E-Mail through GMail.com on Linux</title>
		<link>http://www.hacktopia.net/wp/easily-relay-e-mail-through-gmail-com-on-linux/</link>
		<comments>http://www.hacktopia.net/wp/easily-relay-e-mail-through-gmail-com-on-linux/#comments</comments>
		<pubDate>Fri, 16 Mar 2012 18:21:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How to]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=299</guid>
		<description><![CDATA[Today I will show you the easiest way to relay E-Mail from a Linux server through GMail.  There are several reasons why you would want to do this set up.  One is if you server is running at home, because most mail servers that act as realy&#8217;s will block your home IP, because home black [...]]]></description>
			<content:encoded><![CDATA[<p>Today I will show you the easiest way to relay E-Mail from a Linux server through GMail.  There are several reasons why you would want to do this set up.  One is if you server is running at home, because most mail servers that act as realy&#8217;s will block your home IP, because home black listed in <a href="http://www.spamhaus.org/">The <em>Spamhaus</em> Project</a> and other black lists.  GMail is able to allow you sending mail because you are authenicationg with their server before they allow you to relay any mail.  I will also include some helpfull instructions for CentOS users.</p>
<p>&nbsp;</p>
<p>So first step is installing <a title="SSMTP" href="https://wiki.archlinux.org/index.php/SSMTP">ssmtp</a>.</p>
<p>If you are running CentOS you will need to add the <a title="EPEL" href="http://fedoraproject.org/wiki/EPEL">EPEL repositories</a>, since SSMTP is not currently in the base package repository.</p>
<p>To install EPEL</p>
<blockquote><p># rpm -Uvh http://syslogserver.googlecode.com/files/epel-release-5-3.noarch.rpm<br />
# yum -y install ssmtp</p></blockquote>
<p>Then we want to install SSMTP</p>
<blockquote><p><code></code><code></code>#yum install ssmtp<br />
Loaded plugins: fastestmirror, refresh-packagekit<br />
Loading mirror speeds from cached hostfile<br />
* Webmin: download.webmin.com<br />
* base: mirror.linux.duke.edu<br />
* epel: mirror.symnds.com<br />
* extras: mirror.metrocast.net<br />
* updates: mirror.metrocast.net<br />
Setting up Install Process<br />
Resolving Dependencies<br />
&#8211;&gt; Running transaction check<br />
&#8212;&gt; Package ssmtp.i386 0:2.61-15.el5 will be installed<br />
&#8211;&gt; Finished Dependency Resolution</p>
<p>Dependencies Resolved</p>
<p>==============================================================================================================================<br />
Package                     Arch                       Version                              Repository                  Size<br />
==============================================================================================================================<br />
Installing:<br />
ssmtp                       i386                       2.61-15.el5                          epel                        52 k</p>
<p>Transaction Summary<br />
==============================================================================================================================<br />
Install       1 Package(s)</p>
<p>Total download size: 52 k<br />
Installed size: 88 k<br />
Is this ok [y/N]: y<br />
Downloading Packages:<br />
ssmtp-2.61-15.el5.i386.rpm                                                                             |  52 kB     00:00<br />
Running rpm_check_debug<br />
Running Transaction Test<br />
Transaction Test Succeeded<br />
Running Transaction<br />
Installing : ssmtp-2.61-15.el5.i386                                                                                     1/1</p>
<p>Installed:<br />
ssmtp.i386 0:2.61-15.el5</p>
<p>Complete!<br />
root@pbx:~ $</p></blockquote>
<p>Now that SSMTP is install it is time to configure it.</p>
<p>&nbsp;</p>
<blockquote><p># vi /etc/ssmtp/ssmtp.conf<br />
AuthUser=username@gmail.com<br />
AuthPass=GMail_password<br />
FromLineOverride=YES<br />
mailhub=smtp.gmail.com:587<br />
UseSTARTTLS=YES
</p></blockquote>
<p>Modify the AuthUser and AuthPass to match your account information.  The rest of the information can be kept the same.</p>
<p>Now make sure you do not have any other MTA running such as Postfix or Sendmail.</p>
<p>&nbsp;</p>
<p>Now move the snedmail binary out of the way and link in the ssmtp binary so that it is used to send mail.</p>
<blockquote><p># mv /usr/sbin/sendmail /usr/sbin/no_runsendmail<br />
# ln -s /usr/sbin/ssmtp /usr/sbin/sendmail</p></blockquote>
<p>Now you can test it with mailx</p>
<blockquote><p>$ mailx user@domain.com<br />
Subject: Test message<br />
body of test message<br />
.<br />
Cc:<br />
bab@three:~$</p></blockquote>
<p>Now you should of received a new E-Mail.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/easily-relay-e-mail-through-gmail-com-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Which RPM package does a file belong to?</title>
		<link>http://www.hacktopia.net/wp/which-rpm-package-does-a-file-belong-to/</link>
		<comments>http://www.hacktopia.net/wp/which-rpm-package-does-a-file-belong-to/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 18:11:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=296</guid>
		<description><![CDATA[This trick is for systems such as Red Hat and Cent OS that use the RPM package management system. So you have a file on your system but you want to figure out which package it belongs to.  The best way that I found to do this is the fowling That command shows up what [...]]]></description>
			<content:encoded><![CDATA[<p>This trick is for systems such as Red Hat and Cent OS that use the RPM package management system.</p>
<p>So you have a file on your system but you want to figure out which package it belongs to.  The best way that I found to do this is the fowling</p>
<p>That command shows up what the name of the RPM is that is associated with the file /usr/libexec/fprintd</p>
<blockquote><p>[user@server~]$ rpm -qf  /usr/libexec/fprintd<br />
fprintd-0.1-19.git04fd09cfa.el6.x86_64</p></blockquote>
<p>&nbsp;</p>
<p>Now we can do a search to find the description of the package fprintd-pam.x86_64</p>
<blockquote><p>[user@server~]$ yum search fprintd<br />
Loaded plugins: refresh-packagekit, rhnplugin<br />
*Note* Red Hat Network repositories are not listed below. You must run this command as root to access RHN repositories.<br />
========================================================================================== N/S Matched: fprintd ===========================================================================================<br />
fprintd.x86_64 : D-Bus service for Fingerprint reader access<br />
: PAM module for fingerprint authentication<br />
Name and summary matches only, use &#8220;search all&#8221; for everything.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/which-rpm-package-does-a-file-belong-to/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Red Hat Enterprise Linux force password reset</title>
		<link>http://www.hacktopia.net/wp/red-hat-enterprise-linux-force-password-reset/</link>
		<comments>http://www.hacktopia.net/wp/red-hat-enterprise-linux-force-password-reset/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 03:25:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Red Hat Enterprise Linux 6]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=262</guid>
		<description><![CDATA[This has been tested on Red Hat Enterprise Linux 6 So if you run Red Hat Enterprise Linux 6 and one of your users needs their password reset. &#160; Since you don&#8217;t want the user to use the same password that you just gave them then you can force the computer to make them reset [...]]]></description>
			<content:encoded><![CDATA[<p>This has been tested on Red Hat Enterprise Linux 6</p>
<p>So if you run Red Hat Enterprise Linux 6 and one of your users needs their password reset.</p>
<p>&nbsp;</p>
<p>Since you don&#8217;t want the user to use the same password that you just gave them then you can force the computer to make them reset it once they log in.</p>
<p>Reset the password</p>
<blockquote><p>passwd username</p></blockquote>
<p>Now force the password to be reset in 0 days</p>
<blockquote><p><code>chage -d 0</code> username</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/red-hat-enterprise-linux-force-password-reset/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yubikey unboxing</title>
		<link>http://www.hacktopia.net/wp/yubikey-unboxing/</link>
		<comments>http://www.hacktopia.net/wp/yubikey-unboxing/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 03:24:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=267</guid>
		<description><![CDATA[Yubikey is a new two factor authentication system.  One of it&#8217;s really appealing features is that they keys can be bought really cheaply.  At a wholesale price of $25 per a key with discounts when you order in bulk.  Besides the great price yubi keys are very flexible in easily being able to easily build [...]]]></description>
			<content:encoded><![CDATA[<p>Yubikey is a new two factor authentication system.  One of it&#8217;s really appealing features is that they keys can be bought really cheaply.  At a wholesale price of $25 per a key with discounts when you order in bulk.  Besides the great price yubi keys are very flexible in easily being able to easily build two factor authentication into almost any application.  <a title="Yubico Documentation" href="http://www.yubico.com/developers-intro">yubico has a great deal of documentation</a> on their website.  Yubikeys are designed for generating encrypted one time passwords.  There is no battery in Yubikeys so there is no battery to die, what is a good thing.  Yubikeys are also very durable, while the second version of Yubikeys are even more durable then the first version.</p>
<p>&nbsp;</p>
<p>How it works is you stick the Yubikeys into your USB port and push the center button where you see the green ELD in the last picture.  The light will go out while you push the button.  Once you push the button Yubikey transmits a 44-character string and then send a new line command (enter).    This is all very easy to use because the Yubikey shows up as a keybord to the computer so it will work for any computer.  It is even possible to get it working on your iPad with a little adapter.  The possibilities are pretty endless, so please let me know what ideas you have, and how you have been using the Yubikey.</p>
<p>I have included a bunch of pictures of the yubikey below showing what is included in the package that you get when you order a yubikey.  I ordered 2 YubiKeys (1 Black + 1 White).</p>
<div id="attachment_268" class="wp-caption alignleft" style="width: 310px"><a href="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-001.jpg"><img class="size-medium wp-image-268" title="yubi-001" src="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-001-e1331002077619-300x215.jpg" alt="" width="300" height="215" /></a><p class="wp-caption-text">package that the yubikeys arrived in</p></div>
<p><a href="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-002-e1331002563772.jpg"><img class="alignleft size-medium wp-image-269" title="yubi-002" src="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-002-e1331002563772-300x181.jpg" alt="" width="300" height="181" /></a></p>
<div id="attachment_270" class="wp-caption alignleft" style="width: 310px"><a href="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-003-e1331002541341.jpg"><img class="size-medium wp-image-270" title="yubi-003" src="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-003-e1331002541341-300x131.jpg" alt="" width="300" height="131" /></a><p class="wp-caption-text">I ordered the 2 YubiKeys bundle, back and white</p></div>
<p><a href="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-004-e1331002449307.jpg"><img class="alignleft size-medium wp-image-271" title="yubi-004" src="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-004-e1331002449307-300x182.jpg" alt="" width="300" height="182" /></a></p>
<p><a href="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-005.jpg"><img class="alignleft size-medium wp-image-272" title="yubi-005" src="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-005-200x300.jpg" alt="" width="200" height="300" /></a></p>
<div id="attachment_274" class="wp-caption alignleft" style="width: 310px"><a href="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-007.jpg"><img class="size-medium wp-image-274" title="yubi-007" src="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-007-e1331003004848-300x273.jpg" alt="" width="300" height="273" /></a><p class="wp-caption-text">plastic that each yubikey is wrapped in</p></div>
<p><a href="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-008-e1331002469384.jpg"><img class="alignleft size-medium wp-image-275" title="yubi-008" src="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-008-e1331002469384-300x266.jpg" alt="" width="300" height="266" /></a></p>
<p><a href="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-010-e1331002490324.jpg"><img class="alignleft size-medium wp-image-276" title="yubi-010" src="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-010-e1331002490324-298x300.jpg" alt="" width="298" height="300" /></a></p>
<p><a href="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-009-e1331002512744.jpg"><img class="alignleft size-medium wp-image-277" title="yubi-009" src="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-009-e1331002512744-300x245.jpg" alt="" width="300" height="245" /></a></p>
<div id="attachment_278" class="wp-caption alignleft" style="width: 197px"><a href="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-011-e1331002848940.jpg"><img class="size-medium wp-image-278" title="yubi-011" src="http://www.hacktopia.net/wp/wp-content/uploads/2012/03/yubi-011-e1331002848940-187x300.jpg" alt="" width="187" height="300" /></a><p class="wp-caption-text">what the yubikey looks like plugged into my computer</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/yubikey-unboxing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

