<?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>Thu, 26 Jan 2012 17:35:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Disable IPv6 on Red Hat Enterprise linux 6</title>
		<link>http://www.hacktopia.net/wp/disable-ipv6-on-red-hat-enterprise-linux-6/</link>
		<comments>http://www.hacktopia.net/wp/disable-ipv6-on-red-hat-enterprise-linux-6/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 17:35:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=236</guid>
		<description><![CDATA[You might be saying that IPv6 is the bees knees, and I must be crazy for wanting to disable it.  Well that is partially true.  In this case I need to disable it because my machinne is on a network that can only handle IPv4 packets.  It also slowed down connections on the machine because [...]]]></description>
			<content:encoded><![CDATA[<p>You might be saying that IPv6 is the bees knees, and I must be crazy for wanting to disable it.  Well that is partially true.  In this case I need to disable it because my machinne is on a network that can only handle IPv4 packets.  It also slowed down connections on the machine because of how the network was set up.  So basically it was necessary in order to speed up the networking on the server.</p>
<p>add the &#8220;options single-request&#8221; to the /etc/resolv.conf file</p>
<blockquote><p>nameserver 4.2.2.1<br />
nameserver 4.2.2.2<br />
options single-request</p></blockquote>
<p>add &#8220;NETWORKING_IPV6=off&#8221; to /etc/sysconfig/network</p>
<blockquote><p>NETWORKING_IPV6=off</p></blockquote>
<p>next edit the /etc/modprobe.d/ECS.conf file and add &#8220;alias ipv6 off&#8221; and &#8220;net-pf-10&#8243;</p>
<blockquote><p>alias ipv6 off<br />
alias net-pf-10 off</p></blockquote>
<p>remove the running module</p>
<blockquote><p><code> # rmmod ipv6</code></p></blockquote>
<p>Then restart network by</p>
<blockquote><p><code># service network restart</code></p></blockquote>
<p>or reboot to box to make sure it works after a reboot with</p>
<blockquote><p><code># reboot</code></p></blockquote>
<p>To test to make sure that the changes have worked, you should not get anything returned</p>
<blockquote><p><code># lsmod | grep ipv6</code></p></blockquote>
<p>You can also run &#8220;ifconfig -a&#8221; and make sure you do not see the fowling</p>
<blockquote><p>lo        Link encap:Local Loopback<br />
inet addr:127.0.0.1  Mask:255.0.0.0<br />
inet6 addr: ::1/128 Scope:Host<br />
UP LOOPBACK RUNNING  MTU:16436  Metric:1</p></blockquote>
<p>should see</p>
<blockquote><p>lo        Link encap:Local Loopback<br />
inet addr:127.0.0.1  Mask:255.0.0.0<br />
UP LOOPBACK RUNNING  MTU:16436  Metric:1</p></blockquote>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/disable-ipv6-on-red-hat-enterprise-linux-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>scp for Centos</title>
		<link>http://www.hacktopia.net/wp/scp-for-centos/</link>
		<comments>http://www.hacktopia.net/wp/scp-for-centos/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 18:22:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=230</guid>
		<description><![CDATA[For some reason my new CentOS install has a working ssh but I could not find any scp. &#160; So the package that contains openssh-clients &#160; [root@localhost ~]# whereis scp scp: [root@localhost ~]# yum install openssh-clients Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.seas.harvard.edu * epel: mirror.cogentco.com * extras: centos.mirror.nac.net * [...]]]></description>
			<content:encoded><![CDATA[<p>For some reason my new CentOS install has a working ssh but I could not find any scp.</p>
<p>&nbsp;</p>
<p>So the package that contains openssh-clients</p>
<p>&nbsp;</p>
<blockquote><p>[root@localhost ~]# whereis scp<br />
scp:<br />
[root@localhost ~]# yum install openssh-clients<br />
Loaded plugins: fastestmirror<br />
Loading mirror speeds from cached hostfile<br />
* base: mirrors.seas.harvard.edu<br />
* epel: mirror.cogentco.com<br />
* extras: centos.mirror.nac.net<br />
* updates: mirrors.seas.harvard.edu<br />
Setting up Install Process<br />
Resolving Dependencies<br />
&#8211;&gt; Running transaction check<br />
&#8212;&gt; Package openssh-clients.x86_64 0:5.3p1-20.el6_0.3 set to be updated<br />
&#8211;&gt; Processing Dependency: libedit.so.0()(64bit) for package: openssh-clients-5.3p1-20.el6_0.3.x86_64<br />
&#8211;&gt; Running transaction check<br />
&#8212;&gt; Package libedit.x86_64 0:2.11-4.20080712cvs.1.el6 set to be updated<br />
&#8211;&gt; Finished Dependency Resolution</p>
<p>Dependencies Resolved</p>
<p>===================================================================================================================================================================================<br />
Package                                      Arch                                Version                                               Repository                            Size<br />
===================================================================================================================================================================================<br />
Installing:<br />
openssh-clients                              x86_64                              5.3p1-20.el6_0.3                                      updates                              351 k<br />
Installing for dependencies:<br />
libedit                                      x86_64                              2.11-4.20080712cvs.1.el6                              base                                  74 k</p>
<p>Transaction Summary<br />
===================================================================================================================================================================================<br />
Install       2 Package(s)<br />
Upgrade       0 Package(s)</p>
<p>Total download size: 425 k<br />
Installed size: 1.2 M<br />
Is this ok [y/N]: y<br />
Downloading Packages:<br />
(1/2): libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm                                                                                                          |  74 kB     00:00<br />
(2/2): openssh-clients-5.3p1-20.el6_0.3.x86_64.rpm                                                                                                          | 351 kB     00:00<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Total                                                                                                                                              1.0 MB/s | 425 kB     00:00<br />
Running rpm_check_debug<br />
Running Transaction Test<br />
Transaction Test Succeeded<br />
Running Transaction<br />
Installing     : libedit-2.11-4.20080712cvs.1.el6.x86_64                                                                                                                     1/2<br />
Installing     : openssh-clients-5.3p1-20.el6_0.3.x86_64                                                                                                                     2/2</p>
<p>Installed:<br />
openssh-clients.x86_64 0:5.3p1-20.el6_0.3</p>
<p>Dependency Installed:<br />
libedit.x86_64 0:2.11-4.20080712cvs.1.el6</p>
<p>Complete!<br />
[root@localhost ~]# whereis scp<br />
scp: /usr/bin/scp /usr/share/man/man1/scp.1.gz</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/scp-for-centos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>determine CPU and Memroy top users</title>
		<link>http://www.hacktopia.net/wp/determine-cpu-and-memroy-top-users/</link>
		<comments>http://www.hacktopia.net/wp/determine-cpu-and-memroy-top-users/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 18:09:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=212</guid>
		<description><![CDATA[So your system is acting screwy and you are tying to figure out what is going wrong.  Listing the processes in order to determine who the CPU or memory hogs are. List how much CPU percent and time each process is uing ps -e -o pcpu,cpu,nice,state,cputime,args &#8211;sort pcpu &#124; sed &#8216;/^ 0.0 /d&#8217; In order [...]]]></description>
			<content:encoded><![CDATA[<p>So your system is acting screwy and you are tying to figure out what is going wrong.  Listing the processes in order to determine who the CPU or memory hogs are.</p>
<p>List how much CPU percent and time each process is uing</p>
<p style="padding-left: 30px;">ps -e -o pcpu,cpu,nice,state,cputime,args &#8211;sort pcpu | sed &#8216;/^ 0.0 /d&#8217;</p>
<p>In order to list the process with how much memory each process is using, listed from lease to most memory hogs.</p>
<p style="padding-left: 30px;">ps -e -orss=,args= | sort -b -k1,1n | pr -TW$COLUMNS</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/determine-cpu-and-memroy-top-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protecting directories and files with Apache</title>
		<link>http://www.hacktopia.net/wp/protecting-directories-and-files-with-apache/</link>
		<comments>http://www.hacktopia.net/wp/protecting-directories-and-files-with-apache/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 17:36:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=156</guid>
		<description><![CDATA[If you have Apache directories that you want only certain IP to be able to access.  Say you have a management interface that you only want employees to have access to. Once you have properly put the fowling code into /etc/apache2/sites-available/default and you are not comming from one of the allowed IP you will be [...]]]></description>
			<content:encoded><![CDATA[<p>If you have Apache directories that you want only certain IP to be able to access.  Say you have a management interface that you only want employees to have access to.</p>
<p>Once you have properly put the fowling code into<br />
/etc/apache2/sites-available/default</p>
<p>and you are not comming from one of the allowed IP you will be greated with a page that says.</p>
<h1 style="padding-left: 30px;">Forbidden</h1>
<p style="padding-left: 30px;">You don&#8217;t have permission to access /directory/onwebserver/index.php on this server.</p>
<p>﻿Otherwise the normal web page will show up.</p>
<p style="padding-left: 30px;">&lt;Directory /var/www/super/secret/&gt;<br />
order deny,allow<br />
deny from all<br />
allow from 10.10.0.100 192.168.77.44<br />
&lt;/Directory&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/protecting-directories-and-files-with-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bind dhcpd to single interface</title>
		<link>http://www.hacktopia.net/wp/bind-dhcpd-to-single-interface/</link>
		<comments>http://www.hacktopia.net/wp/bind-dhcpd-to-single-interface/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 17:22:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=179</guid>
		<description><![CDATA[In this example I will how you how to force dhcpd to bind to a individual interface, or multiple interfaces.  I am using Debian 5 in this example. From /etc/init.d/dhcp3-server You will notice this variable $INTERFACES is refrenced but never used anwhere else.  It is there for you to tell dhcpd which interface to listen [...]]]></description>
			<content:encoded><![CDATA[<p>In this example I will how you how to force dhcpd to bind to a individual interface, or multiple interfaces.  I am using Debian 5 in this example.</p>
<p>From /etc/init.d/dhcp3-server</p>
<p>You will notice this variable $INTERFACES is refrenced but never used anwhere else.  It is there for you to tell dhcpd which interface to listen on.  You can also add in multiple interfaces there, separated by a space.</p>
<blockquote><p>INTERFACES=&#8221;eth1&#8243;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/bind-dhcpd-to-single-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

