<?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; tips</title>
	<atom:link href="http://www.hacktopia.net/wp/category/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hacktopia.net/wp</link>
	<description>The zen of hacking</description>
	<lastBuildDate>Mon, 30 Aug 2010 17:36:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Upgrade Sun Microsystems OBP (OpenBoot PROM) with tftp</title>
		<link>http://www.hacktopia.net/wp/upgrade-sun-microsystems-obp-openboot-prom-with-tftp/</link>
		<comments>http://www.hacktopia.net/wp/upgrade-sun-microsystems-obp-openboot-prom-with-tftp/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 17:26:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/?p=30</guid>
		<description><![CDATA[Why is this soo cool? Because the default way to upgrade the OBP is to have a running system. But some times If you have a working jump start enviroment most of the work is already done, yaha. You actully dont even have to use a solaris box to act as the upgrade server any [...]]]></description>
			<content:encoded><![CDATA[<p>Why is this soo cool?  Because the default way to upgrade the OBP is to have a running system.  But some times</p>
<p>If you have a working jump start enviroment most of the work is already done, yaha.  You actully dont even have to use a solaris box to act as the upgrade server any tftp server will do.</p>
<p>So basically what I did here is used a already set up jump start server to upgrade the OBP on a Sun Fire v240.  I deleted the link to the solaris kernel and created a symlink from the mac address to the upgrade binary.</p>
<p>bash-3.00# pwd<br />
/tftpboot<br />
bash-3.00# ls -l<br />
total 458<br />
lrwxrwxrwx   1 root     root          27 Jun  6 11:40 0A2483F9 -&gt; inetboot.SUN4U.Solaris_10-1<br />
lrwxrwxrwx   1 root     root          27 Jun  6 11:40 0A2483F9.SUN4U -&gt; inetboot.SUN4U.Solaris_10-1<br />
-rwxr-xr-x   1 root     root      217016 Jun  6 11:40 inetboot.SUN4U.Solaris_10-1<br />
drwxr-xr-x   2 root     root         512 Jun  5 12:07 ODBUpgrade<br />
-rw-r&#8211;r&#8211;   1 root     root         321 Jun  6 11:40 rm.10.36.131.249<br />
lrwxrwxrwx   1 root     root           1 Jun  5 10:23 tftpboot -&gt; .</p>
<p>bash-3.00# ls -l ODBUpgrade/<br />
total 7888<br />
-rw-r&#8211;r&#8211;   1 root     root     1482292 Jun  5 12:07 flash-update-Blade100<br />
-rw-r&#8211;r&#8211;   1 root     root     2534420 Jun  5 12:07 flash-update-SunFire240</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/upgrade-sun-microsystems-obp-openboot-prom-with-tftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deleting files with special charaters</title>
		<link>http://www.hacktopia.net/wp/deleting-files-with-special-charaters/</link>
		<comments>http://www.hacktopia.net/wp/deleting-files-with-special-charaters/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 16:34:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/deleting-files-with-special-charaters/</guid>
		<description><![CDATA[Deleting file that have special characters in them can be tricky. This is what you have to do to delete them. because rm -r -file will give you a error [root@solaris:/]# rm -C rm: illegal option &#8212; C usage: rm [-fiRr] file &#8230; so what you have to do is search figure out what the [...]]]></description>
			<content:encoded><![CDATA[<p>Deleting file that have special characters in them can be tricky.  This is what you have to do to delete them.</p>
<p>because  rm -r  -file will give you a error<br />
[root@solaris:/]# rm -C</p>
<p>rm: illegal option &#8212; C<br />
usage: rm [-fiRr] file &#8230;</p>
<p>so what you have to do is search figure out what the inode is</p>
<p>[root@solaris:/]# ls -il -C<br />
total 2723130<br />
32081 -rw-r&#8211;r&#8211;   1 root     root     1392916480 Dec  4 14:55 -C</p>
<p>the 32081 is the inode number</p>
<p>[root@solaris:/u10/app 102]# find . -inum 32081  -exec rm -i {} \;<br />
rm: remove ./-C (yes/no)? y</p>
<p>now the file is gone, yaha!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/deleting-files-with-special-charaters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to fix a corrupt Solaris package database</title>
		<link>http://www.hacktopia.net/wp/how-to-fix-a-corrupt-solaris-package-database/</link>
		<comments>http://www.hacktopia.net/wp/how-to-fix-a-corrupt-solaris-package-database/#comments</comments>
		<pubDate>Wed, 17 Oct 2007 19:09:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/how-to-fix-a-corrupt-solaris-package-database/</guid>
		<description><![CDATA[When trying to remove package SMCsudo you get the error #pkgrm SMCsudo The following package is currently installed: SMCsudo sudo (sparc) 1.6.8p4 Do you want to remove this package? y ## Removing installed package instance &#60;SMCsudo&#62; (A previous attempt may have been unsuccessful.) ## Verifying package dependencies. ## Processing package information. ## Removing pathnames in [...]]]></description>
			<content:encoded><![CDATA[<p>When trying to remove package SMCsudo you get the error</p>
<blockquote><p>#pkgrm SMCsudo</p>
<p>The following package is currently installed:<br />
SMCsudo sudo<br />
(sparc) 1.6.8p4</p></blockquote>
<blockquote><p>Do you want to remove this package? y</p>
<p>## Removing installed package instance &lt;SMCsudo&gt;<br />
(A previous attempt may have been unsuccessful.)<br />
## Verifying package dependencies.<br />
## Processing package information.<br />
## Removing pathnames in class &lt;none&gt;<br />
/usr/local/sbin &lt;shared pathname not removed&gt;<br />
/usr/local/man &lt;shared pathname not removed&gt;<br />
/usr/local/libexec &lt;shared pathname not removed&gt;<br />
/usr/local/etc &lt;shared pathname not removed&gt;<br />
/usr/local/doc &lt;shared pathname not removed&gt;<br />
/usr/local/bin &lt;shared pathname not removed&gt;<br />
## Updating system information.<br />
pkgrm: ERROR: bad read of contents file<br />
pkgrm: ERROR: pathname=/usr/lib/iconv/sparcv9/UTF-8%PCK.so<br />
pkgrm: ERROR: problem=no memory for package information</p></blockquote>
<p>do</p>
<blockquote><p># cd /var/sadm/pkg</p></blockquote>
<p>which is where the package database is located</p>
<p>then delete the offending package that you are trying to remove.</p>
<blockquote><p>rm -rf SMCsudo</p></blockquote>
<p>Then the package is removed the ugly (hack) way.</p>
<p>So then you can now install thenewer version of the same package.</p>
<blockquote><p># pkgadd -d /tmp/SMCsudo</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/how-to-fix-a-corrupt-solaris-package-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>check that syslog is working</title>
		<link>http://www.hacktopia.net/wp/check-that-syslog-is-working/</link>
		<comments>http://www.hacktopia.net/wp/check-that-syslog-is-working/#comments</comments>
		<pubDate>Mon, 15 Oct 2007 16:20:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/check-that-syslog-is-working/</guid>
		<description><![CDATA[logger is the program that you can use to send syslog messages. On solaris systems if syslog is not set up to send syslog messages remotely or set up properly then syslog will just send the &#8220;Hello World&#8221; message to /var/adm/messages. Please note that /etc/syslog.conf does not like spaces it only likes tabs, any spaces [...]]]></description>
			<content:encoded><![CDATA[<p>logger is the program that you can use to send syslog messages.  On solaris systems if syslog is not set up to send syslog messages remotely or set up properly then syslog will just send the &#8220;Hello World&#8221; message to /var/adm/messages.  Please note that /etc/syslog.conf does not like spaces it only likes tabs, any spaces can break the config.    While local3.alert is the is the message facilitie, change it based on your setup.</p>
<p>$ logger -p local3.alert &#8220;Hello World&#8221;</p>
<pre>Numerical
   Code    Faciltiy                                     Reference
---------  --------					---------

    0      kernel messages  				[RFC3164]
    1      user-level messages  			[RFC3164]
    2      mail system  				[RFC3164]
    3      system daemons  				[RFC3164]
    4      security/authorization messages (note 1) 	[RFC3164]
    5      messages generated internally by syslogd  	[RFC3164]
    6      line printer subsystem  			[RFC3164]
    7      network news subsystem  			[RFC3164]
    8      UUCP subsystem  				[RFC3164]
    9      clock daemon (note 2) 			[RFC3164]
   10      security/authorization messages (note 1) 	[RFC3164]
   11      FTP daemon 					[RFC3164]
   12      NTP subsystem 				[RFC3164]
   13      log audit (note 1) 				[RFC3164]
   14      log alert (note 1) 				[RFC3164]
   15      clock daemon (note 2) 			[RFC3164]
   16      local use 0  (local0) 			[RFC3164]
   17      local use 1  (local1) 			[RFC3164]
   18      local use 2  (local2) 			[RFC3164]
   19      local use 3  (local3) 			[RFC3164]
   20      local use 4  (local4) 			[RFC3164]
   21      local use 5  (local5) 			[RFC3164]
   22      local use 6  (local6) 			[RFC3164]
   23	   local use 7  (local7) 			[RFC3164]</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/check-that-syslog-is-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change boot up parameters with out going to the OK prompt</title>
		<link>http://www.hacktopia.net/wp/change-boot-up-permaters-with-out-going-to-the-ok-prompt/</link>
		<comments>http://www.hacktopia.net/wp/change-boot-up-permaters-with-out-going-to-the-ok-prompt/#comments</comments>
		<pubDate>Mon, 15 Oct 2007 16:19:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.hacktopia.net/wp/change-boot-up-permaters-with-out-going-to-the-ok-prompt/</guid>
		<description><![CDATA[eeprom is used to change BootPROM environment variables. If you dont use eeprom then you would have to do init 0 and make the changes from the OK prompt but why would you want to bring your server down in order to make boot up (BootPROM) changes if you dont have to. eeprom &#8211; EEPROM [...]]]></description>
			<content:encoded><![CDATA[<p>eeprom is used to change BootPROM environment variables.  If you dont use eeprom then you would have to do init 0 and make the changes from the OK prompt but why would you want to bring your server down in order to make boot up (BootPROM) changes if you dont have to.</p>
<p>eeprom &#8211; EEPROM display and load utility</p>
<p># eeprom<br />
test-args: data not available.<br />
diag-passes=1<br />
local-mac-address?=false<br />
fcode-debug?=false<br />
silent-mode?=false<br />
scsi-initiator-id=7<br />
oem-logo: data not available.<br />
oem-logo?=false<br />
oem-banner: data not available.<br />
oem-banner?=false<br />
ansi-terminal?=true<br />
screen-#columns=80<br />
screen-#rows=34<br />
ttya-rts-dtr-off=false<br />
ttya-ignore-cd=true<br />
ttya-mode=9600,8,n,1,-<br />
output-device=ttya<br />
input-device=ttya<br />
auto-boot-on-error?=false<br />
load-base=16384<br />
auto-boot?=true<br />
boot-command=boot<br />
diag-file: data not available.<br />
diag-device=net<br />
boot-file: data not available.<br />
boot-device=/pci@9,600000/SUNW,qlc@2/fp@0,0/disk@w2100000c507aa519,0:a disk net<br />
use-nvramrc?=false<br />
nvramrc=devalias vx-rootdisk /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@w2100000c507aa519,0:a<br />
devalias vx-rootmirror /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@w2100000c507acb2d,0:a<br />
security-mode=none<br />
security-password: data not available.<br />
security-#badlogins=0<br />
diag-out-console=false<br />
post-trigger=error-reset power-on-reset<br />
diag-script=normal<br />
diag-level=min<br />
diag-switch?=false<br />
obdiag-trigger=error-reset power-on-reset<br />
error-reset-recovery=boot</p>
<p>Will the server start booting when you turn it on or will it just sit at the OK prompt.  Lets see.</p>
<p># eeprom |grep auto-boot<br />
auto-boot-on-error?=false<br />
auto-boot?=true</p>
<p>Humm looks like it will be booting at power on, that is a good thing(most of the time).  There are many boot up options that can also be changes such as boot device, diagnostics levels, serial display settings, and many others.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hacktopia.net/wp/change-boot-up-permaters-with-out-going-to-the-ok-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
