<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Cucm on Nico Maas</title>
        <link>https://www.nico-maas.de/tags/cucm/</link>
        <description>Recent content in Cucm on Nico Maas</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Fri, 19 Feb 2010 13:03:55 +0000</lastBuildDate><atom:link href="https://www.nico-maas.de/tags/cucm/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>Rooting CUCM7 &amp; Giving BASH instead of the restricted CLI</title>
            <link>https://www.nico-maas.de/posts/2010-02-19-rooting-cucm7-giving-bash-instead-of-the-restricted-cli/</link>
            <pubDate>Fri, 19 Feb 2010 13:03:55 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2010-02-19-rooting-cucm7-giving-bash-instead-of-the-restricted-cli/</guid>
            <description>&lt;ol&gt;&#xA;&lt;li&gt;Boot with gparted&lt;/li&gt;&#xA;&lt;li&gt;cd /tmp&lt;/li&gt;&#xA;&lt;li&gt;mkdir test&lt;/li&gt;&#xA;&lt;li&gt;mount /dev/sda1 /tmp/test&lt;/li&gt;&#xA;&lt;li&gt;chroot /dev/test /bin/bash&lt;/li&gt;&#xA;&lt;li&gt;Change:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;/etc/passwd:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;root:x:0:0:root:/root:/sbin/nologin  &#xA;admin:x:591:503::/home/admin:/usr/local/platform/bin/cliscript.sh&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;to:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;root:x:0:0:root:/root:/bin/bash  &#xA;admin:x:591:503::/home/admin:/bin/bash&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;/etc/shadow&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;root:!!:14657:0:99999:7:::&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;to:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;root:$1$D2ISXWJF$urnCHPxcF20BUWWwvTZfX0:14657:0:99999:7:::&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;/etc/sudoers&lt;br&gt;&#xA;add the Line for admin under the user privilege specification so that it looks like this:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# User privilege specification  &#xA;root    ALL=(ALL) ALL  &#xA;admin   ALL=(ALL) ALL&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;7&#34;&gt;&#xA;&lt;li&gt;exit&lt;/li&gt;&#xA;&lt;li&gt;cd /tmp&lt;/li&gt;&#xA;&lt;li&gt;umount /tmp/test&lt;/li&gt;&#xA;&lt;li&gt;umount /dev/sda1&lt;/li&gt;&#xA;&lt;li&gt;reboot&lt;/li&gt;&#xA;&lt;li&gt;login with admin and your password, you are in the bash shell, not in the cisco cli anymore&lt;/li&gt;&#xA;&lt;li&gt;enter sudo su and your login password and you become root&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
        </item></channel>
</rss>
