<?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>Tue, 26 Jan 2010 17:49:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Enable snmp on Solaris 10</title>
		<link>http://www.hacktopia.net/wp/enable-snmp-on-solaris-10-2/</link>
		<comments>http://www.hacktopia.net/wp/enable-snmp-on-solaris-10-2/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 17:44:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=153</guid>
		<description><![CDATA[So I had some trouble gettin snmp working.  I edited /etc/snmp/conf/snmpd.conf with the proper trap and community for my enviroment.  Every time I tried to start snmp I would get erros.
checking /var/adm/messages
Nov  6 10:09:29 pressman2 /usr/lib/snmp/snmpdx: [ID 702911 daemon.error] can&#8217;t read the directory snmpd.conf [errno: Not a directory(20)]
me trying to start snmp
bash-3.00# svcadm enable [...]]]></description>
			<content:encoded><![CDATA[<p>So I had some trouble gettin snmp working.  I edited /etc/snmp/conf/snmpd.conf with the proper trap and community for my enviroment.  Every time I tried to start snmp I would get erros.</p>
<p>checking /var/adm/messages</p>
<blockquote><p>Nov  6 10:09:29 pressman2 /usr/lib/snmp/snmpdx: [ID 702911 daemon.error] can&#8217;t read the directory snmpd.conf [errno: Not a directory(20)]</p></blockquote>
<p>me trying to start snmp</p>
<blockquote><p>bash-3.00# svcadm enable svc:/application/management/snmpdx:default</p>
<p>bash-3.00# svcs|grep snmp<br />
offline        10:03:20 svc:/application/management/snmpdx:default</p></blockquote>
<p>On the second line you can see that I check and it was not started or offline.  So then it was time to consult with svcs -x.  That stated that I was missing a prerequisite process that snmp relied on.</p>
<blockquote><p>bash-3.00# svcs -x<br />
svc:/application/management/seaport:default (net-snmp SNMP daemon)<br />
State: disabled since Wed Oct 28 16:25:27 2009<br />
Reason: Disabled by an administrator.<br />
See: http://sun.com/msg/SMF-8000-05<br />
See: snmpd(1M)<br />
Impact: 1 dependent service is not running.  (Use -v for list.)</p></blockquote>
<blockquote><p>bash-3.00# svcs |grep snmp<br />
online         11:25:54 svc:/application/management/snmpdx:default</p></blockquote>
<p>Now everything works like it should.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/enable-snmp-on-solaris-10-2/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 to somewhere where [...]]]></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>ssh: Connection closed by remote host</title>
		<link>http://www.hacktopia.net/wp/ssh-connection-closed-by-remote-host/</link>
		<comments>http://www.hacktopia.net/wp/ssh-connection-closed-by-remote-host/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 15:42:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=137</guid>
		<description><![CDATA[I was trying to ssh from one Sun Soalris server to another.
# ssh  remoteserver
ssh_exchange_identification: Connection closed by remote host
# ssh -v remoteserver
Sun_SSH_1.1.1, SSH protocols 1.5/2.0, OpenSSL 0&#215;0090704f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to mimi [10.20.55.222] port 22.
debug1: Connection established.
debug1: identity file /.ssh/identity type [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to ssh from one Sun Soalris server to another.</p>
<blockquote><p># ssh  remoteserver<br />
ssh_exchange_identification: Connection closed by remote host<br />
# ssh -v remoteserver<br />
Sun_SSH_1.1.1, SSH protocols 1.5/2.0, OpenSSL 0&#215;0090704f<br />
debug1: Reading configuration data /etc/ssh/ssh_config<br />
debug1: Rhosts Authentication disabled, originating port will not be trusted.<br />
debug1: ssh_connect: needpriv 0<br />
debug1: Connecting to mimi [10.20.55.222] port 22.<br />
debug1: Connection established.<br />
debug1: identity file /.ssh/identity type -1<br />
debug1: identity file /.ssh/id_rsa type -1<br />
debug1: identity file /.ssh/id_dsa type -1<br />
ssh_exchange_identification: Connection closed by remote host<br />
debug1: Calling cleanup 0&#215;34ae8(0&#215;0)<br />
#</p></blockquote>
<p>Err it would not let me connect.  As you can see I first tried to ssh, then ssh in verbose mode.  As you can see the output did not really give anything that useful.</p>
<p>I logged into the remote server and all it would tell me is</p>
<blockquote><p>Jul  7 11:37:53 remoteserver sshd[21761]: refused connect from clientserver</p></blockquote>
<p>I wold have to be connected to the serial console to see this message, I was not able to see the message anywhere else.  Not in /var/adm/messages or /var/log/syslog</p>
<p>So what I ended up doing was adding this line to /etc/hosts.allow</p>
<blockquote><p>p_ctminetd,sshd,bpcd,vnetd,vopied,bpjava-msvc: 10.20.55. : allow</p></blockquote>
<p>That line allowed any host in the 10.20.55.* subnet to connect to the server now, and ssh was allowed to connect.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/ssh-connection-closed-by-remote-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix &#8211; Delete special charaters by inode</title>
		<link>http://www.hacktopia.net/wp/unix-delete-special-charaters-by-inode/</link>
		<comments>http://www.hacktopia.net/wp/unix-delete-special-charaters-by-inode/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 13:17:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=134</guid>
		<description><![CDATA[Here we see that we have a back slash created by mistake.
user:/var/www/core# ls -l
total 56
-rw-r&#8211;r&#8211; 1 root     root      213 2009-06-01 07:14 \
-rw-r&#8211;r&#8211; 1 user user 378 2009-05-21 09:14 ads.php
We try to delete it but it is not possible because the back slash is a special charter.
user:/var/www/core# rm \
&#62;
So we have to go and list out [...]]]></description>
			<content:encoded><![CDATA[<p>Here we see that we have a back slash created by mistake.</p>
<blockquote><p>user:/var/www/core# ls -l<br />
total 56<br />
-rw-r&#8211;r&#8211; 1 root     root      213 2009-06-01 07:14 \<br />
-rw-r&#8211;r&#8211; 1 user user 378 2009-05-21 09:14 ads.php</p></blockquote>
<p>We try to delete it but it is not possible because the back slash is a special charter.</p>
<blockquote><p>user:/var/www/core# rm \<br />
&gt;</p></blockquote>
<p>So we have to go and list out the inode numbers.  Those are the inode numbers in the first collum.</p>
<blockquote><p>user:/var/www/core# ls -li<br />
total 56<br />
458132 -rw-r&#8211;r&#8211; 1 root     root      213 2009-06-01 07:14 \<br />
457759 -rw-r&#8211;r&#8211; 1 user user 378 2009-05-21 09:14 ads.php</p></blockquote>
<p>So now we use find to delete the inode number which in turn deletes the file.</p>
<blockquote><p>user:/var/www/core# find . -inum 458132 -exec rm -i {} \;<br />
rm: remove regular file `./\\&#8217;? y<br />
user:/var/www/core# ls -l<br />
total 52<br />
-rw-r&#8211;r&#8211; 1 user user 378 2009-05-21 09:14 ads.php</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/unix-delete-special-charaters-by-inode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable snmp on solaris 10</title>
		<link>http://www.hacktopia.net/wp/enable-snmp-on-solaris-10/</link>
		<comments>http://www.hacktopia.net/wp/enable-snmp-on-solaris-10/#comments</comments>
		<pubDate>Tue, 26 May 2009 16:12:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Solaris 10]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=131</guid>
		<description><![CDATA[In order to start up snmp on solaris then you need to configure
/etc/snmp/conf/snmpd.conf
and start it up using smf
svcadm enable /application/management/sma
]]></description>
			<content:encoded><![CDATA[<p>In order to start up snmp on solaris then you need to configure</p>
<blockquote><p>/etc/snmp/conf/snmpd.conf</p></blockquote>
<p>and start it up using smf</p>
<blockquote><p>svcadm enable /application/management/sma</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/enable-snmp-on-solaris-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
