<?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>[LINICKX].com &#187; cs-mars</title>
	<atom:link href="http://www.linickx.com/tag/cs-mars/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linickx.com</link>
	<description>Moments of Genius followed by Trash.</description>
	<lastBuildDate>Thu, 17 May 2012 10:23:46 +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>VM Mars Screenshots</title>
		<link>http://www.linickx.com/658/vm-mars-screenshots</link>
		<comments>http://www.linickx.com/658/vm-mars-screenshots#comments</comments>
		<pubDate>Sun, 16 Nov 2008 21:22:54 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[PICS]]></category>
		<category><![CDATA[cs-mars]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=658</guid>
		<description><![CDATA[Boot From CentOS-5.2-i386-bin-1of6.iso &#8230; then type &#8220;linux rescue&#8221;, choose your keyboard layout and the images show what happened next!!! VMware Host: Windows 2003 SP1 VMware Server Version 1.101 Copyright &#169; 2012 [LINICKX].com. This Feed is for personal non-commercial use only. &#8230; <a href="http://www.linickx.com/658/vm-mars-screenshots">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linickx.com/archives/658/vm-mars-screenshots/rescure-networking-no" rel="attachment wp-att-666"><img src="http://www.linickx.com/files/2008/11/rescure-networking-no-150x150.png" alt="" title="CentOS Rescue 01: Networking" width="150" height="150" class="alignright size-thumbnail wp-image-666" /></a> Boot From <a href="http://www.mirrorservice.org/sites/mirror.centos.org/5.2/isos/i386/CentOS-5.2-i386-bin-1of6.iso">CentOS-5.2-i386-bin-1of6.iso</a> &#8230; then type &#8220;linux rescue&#8221;, choose your keyboard layout and the images show what happened next!!!</p>
<p>VMware Host: Windows 2003 SP1<br />
VMware Server Version 1.101</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/658/vm-mars-screenshots/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CS-Mars V6.0 in VMWARE (Franken Mars)</title>
		<link>http://www.linickx.com/476/cs-mars-v-6-0-in-vmware-franken-mars</link>
		<comments>http://www.linickx.com/476/cs-mars-v-6-0-in-vmware-franken-mars#comments</comments>
		<pubDate>Wed, 01 Oct 2008 14:44:42 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[cs-mars]]></category>
		<category><![CDATA[franken]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=476</guid>
		<description><![CDATA[Emulating software is a very grey area for Cisco, they make their money by selling boxes so I guess officially Cisco don&#8217;t approve of things like GNS3 and PEMU. BUT cisco make a lot of their money from techies training &#8230; <a href="http://www.linickx.com/476/cs-mars-v-6-0-in-vmware-franken-mars">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Emulating software is a very grey area for Cisco, they make their money by selling boxes so I guess officially Cisco don&#8217;t approve of things like GNS3 and PEMU. BUT cisco make a lot of their money from techies training in Cisco products who then get their management to buy boxes their certified in, as a result cisco appear to turn a blind eye to emulating their products for personal training purposes <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So, I&#8217;m installing a CS-Mars box in the next couple of weeks and wanted to know what&#8217;s new in version 6. How to setup version 4 is already document here in this<a href="http://www.securityie.com/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=36;t=000028"> franken cs-mars guide</a>, the thing is to upgrade from 4 to 6 is a re-image of the box. Upon re-imaging my VMWare appliance I realised that the lilo commands <code>linux rw init=/bin/bash</code> didn&#8217;t appear to work anymore. As a result I have a v6 mars box I can&#8217;t use due to a licensing problem.</p>
<p>To get this working read through both the <a href="http://www.securityie.com/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=36;t=000028">old instructions</a>, and what I have written.</p>
<p>The init/boot sequence of a mars box looks very much like a centos/fedora boot, so I thought up a cunning new plan. I downloaded the 1st installation CD of <a href="http://centos.org/">centos </a>5, after booting this CD instead of hitting &#8220;enter&#8221; and running the anaconda installer I typed <code>linux rescue</code>, this boots my appliance into a root linux shell. (<em>See Update Below, boot from CentOS straight after MARS installs, don&#8217;t let MARS boot!</em>)</p>
<p>What happened next was a little hit and miss, if you&#8217;re lucky you can type</p>
<pre>mkdir /mnt/opt
mount /dev/md2 /mnt/opt</pre>
<p>you can then </p>
<pre>
cd /mnt/opt/janus/release/bin
mv pnlicense pnlicense.org
echo "/bin/echo d84f7ceaf50f9c45683e2efb77752d4f:License verified:4:0:0:4" > pnlicense
chmod +x pnlicense
</pre>
<p>as per the old documentation.</p>
<p>If you&#8217;re unlucky this &#8220;mount&#8221; will fail, in this case <code>ls /mnt/sysimage</code> if you can&#8217;t see any files issue <code>mount /dev/md1 /mnt/sysimage</code> otherwise the plan is to change the root password so that we can edit the pnlicense file later.</p>
<p>Using vi edit /mnt/sysimage/etc/passwd, and change&#8230;</p>
<pre>
pnadmin:x:500:500::/opt/janus/release/bin:/opt/janus/release/bin/pnsh
</pre>
<p>for </p>
<pre>
pnadmin:x:500:500::/opt/janus/release/bin:/bin/bash
</pre>
<p>Next, setup your editor variable, and edit the suders file&#8230;</p>
<pre>
EDITOR=/mnt/sysimage/bin/vi;export EDITOR
visudo -f /mnt/sysimage/etc/suders
</pre>
<p>and add..</p>
<pre>
pnadmin ALL=(ALL)       NOPASSWD: ALL
</pre>
<p>Reboot by exiting the shell.</p>
<p>After the reboot login as pnadmin, you should now get a standard linux bash shell rather than the &#8220;hardened&#8221; cisco one. Change the root password&#8230;</p>
<pre>
sudo su
passwd root
</pre>
<p>And put /etc/password back to how it was. Now from the &#8220;pn shell&#8221; you can type expert and your root password will work and you&#8217;ll have root access to your mars box. With you new root access you can change the pnlicense file as described before and complete the setup process. <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /> </p>
<p><strong>UPDATE:</strong> As commented by secopt below, to make this work you need to boot from the CentOS disk straight after the MARS image as installed, if you let the MARS OS boot (<em>and start doing the oracle thing</em>) then for some reason the mount commands don&#8217;t work!</p>
<p><strong>UPDATE2:</strong> The mount command doesn&#8217;t work if you let MARS boot the 1st time as it changes the superblock, rokov has posted the following work around below&#8230;</p>
<blockquote>
<ol>
<li>Assemble RAID<br />
<code>mdadm –assemble /dev/md0 /dev/hda3 /dev/hdc3</code></li>
<li>Change ext3 superblock magick number<br />
<code>dd if=/dev/md0 skip=2 count=1 | sed ’s/\x5A\x7B/\x53\xEF/’ | dd of=/dev/md0 seek=2 count=1</code></li>
<li>Mount partition<br />
<code>mount /dev/md0 /mnt</code></li>
<li>Do anything you want with it.</li>
<li>Unmount partition and change magic back<br />
<code>umount /mnt &#038;&#038; d if=/dev/md0 skip=2 count=1 | sed ’s/\x53\xEF/\x5A\x7B/’ | dd of=/dev/md0 seek=2 count=1</code></li>
</ol>
</blockquote>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/476/cs-mars-v-6-0-in-vmware-franken-mars/feed</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
	</channel>
</rss>

