http://orourke.tv/downloads/it/cisco/UC-RootAccess-crack.txt
http://www.blindhog.net/how-to-get-root-access-on-call-manager-56-server/ # Boot the CUCM server with CentOS 5.1 Disk1 # Type �linux rescue� at the boot: prompt # Use the chroot command to change the root to the CUCM partition Type 'chroot /mnt/sysimage' # Backup the /etc/passwd, /etc/group, /etc/shadow and /etc/gshadow files cp -a /etc/passwd /etc/passwd.bak cp -a /etc/group /etc/group.bak cp -a /etc/shadow /etc/shadow.bak cp -a /etc/gshadow /etc/gshadow.bak # These files are protected by the ext2 immutable flag. Check to see if the immutable flag is set. If the immutable flag is set, you will see an �i�. lsattr /etc/passwd /etc/group /etc/shadow /etc/gshadow # Remove the immutable flag chattr -i /etc/passwd /etc/group /etc/shadow /etc/gshadow # Add a new user and set a password useradd username passwd username # Add the immutable flag chattr +i /etc/passwd /etc/group /etc/shadow /etc/gshadow # Add the new user to the /etc/sudoers file and give root privileges. vi /etc/sudoers Add the following line to the file to give the new user root privileges. username All=(ALL) ALL # Exit Linux rescue mode # Login with the new account # Test various root level linux commands with �sudo� prefix, take a look at the filesystem and play around ************************************************* http://www.networkworld.com/community/node/41136 How to add free cisco licenses to Cisco Unified Communications Manager 7.x This process should only be used in "your Lab environment", furthermore you should never use this process in a production environment, do this process at your own risk, this process is for educational purposes only I have test the process succesfully in UCM version 7.x 7845-H1 The integrity of both partition are good after the trick, data and contents You must have experience with vi and linux This trick should work on all Cisco IPT products running linux of course. The license process involve 3 files -LicenseScript.sh Located in /usr/local/platform/bin -LicenseParams.xml Located in /usr/local/cm/conf -VMLicenseParams.xml Located in /usr/cm/conf First and fost most, you must gain access to the UCM with Root Rights, to do this follow the following steps So, I will call this the Remote Account Process. On a working server or environment we will do the following: -Connect to the UCM Console using an SSH Client -Proceed to a enable a remote account admin:utils remote_account enable -Proceed to create a remote_account user admin:utils remote_account create [ournew_remote_account_username] [amount of day's that we want this account to remain active] example admin:utils remote_account create ciscotac 30 -the above example will create a remote account user named ciscotac and it will be valid for 30 days. -Once we have succesfully created a remote_account we will proceed to reboot the server cleanly. admin:utils system restart -Proceed to insert the CentOS 5.2 Disk 1 -on the Boot option enter linux rescue boot:linux rescue -Once you are in the linux shell -Proceed to do the following #chroot /mnt/sysimage #lsattr /etc/passwd /etc/group /etc/shadow /etc/gshadow #chattr -i /etc/passwd /etc/shadow /etc/group /etc/gshadow #passwd [enter the username that you have created for the remote account user] -Enter the new password that you want for the new remote account user twice -eject the CentOS 5.2 DISK 1 -Reboot the server by doing the following #shutdown -r now -Once Unified Communications Manager have completed rebooted, simply using an SSH client login to UCM using the remote account username and password, you will see the following message Welcome to Remote Support [root@EDGE1 ~]# -Now once in the box logged in as a member of the Cisco Tac Team, proceed to do the following [root@EDGE1 ~]# cd /usr/local/platform/bin [root@EDGE1 bin]#vi LicenseScript.sh The original script should look like this********************************** LicenseScript.sh, which is the one that controls the activation of the license engine, basically it stops and starts the LicenseMgr service this file is located in /usr/local/platform/bin #!/bin/bash # # LicenseScript.sh # # Copyright (c) 2005-2006, 2008 by Cisco Systems, Inc. # All rights reserved. # if [ $# -lt 1 ] then echo "Usage: $0 start/stop/restart" exit 1 fi source /usr/local/bin/base_scripts/ihardware.sh # We need to do a hardware check here. # Invoke the ihardware API hwmodel="$(getHardwareModel)" INSTALL_ROOT="/usr/local/platform" EXE="CiscoLicenseMgr" if [ "$hwmodel" = "vmware" ]; then ARGUMENT="/usr/local/cm/conf/VMLicensingCfg.xml" else ARGUMENT="/usr/local/cm/conf/LicensingCfg.xml" fi TMP_FILE="/tmp/CiscoLicenseTmp" PIDFILE="/usr/local/platform/conf/CiscoLicenseMgr.pid" MAXTIME=120 export LD_LIBRARY_PATH="$SD_LIB_PATH:/usr/local/platform/lib" status() { if [ -f ${PIDFILE} ]; then LICPID=`cat ${PIDFILE}` ps -c $LICPID if [ "${?}" = "0" ] then echo $EXE is running return 0 fi fi echo $EXE is not running return 1 } *********************************************************** Your new script should now look like this****************** #!/bin/bash # # LicenseScript.sh # # Copyright (c) 2005-2006, 2008 by Cisco Systems, Inc. # All rights reserved. # if [ $# -lt 1 ] then echo "Usage: $0 start/stop/restart" exit 1 fi source /usr/local/bin/base_scripts/ihardware.sh # We need to do a hardware check here. # Invoke the ihardware API hwmodel="$(getHardwareModel)" INSTALL_ROOT="/usr/local/platform" EXE="CiscoLicenseMgr" if [ "$hwmodel" = "vmware" ]; then ARGUMENT="/usr/local/cm/conf/LicensingCfg.xml" else ARGUMENT="/usr/local/cm/conf/VMLicensingCfg.xml" fi TMP_FILE="/tmp/CiscoLicenseTmp" PIDFILE="/usr/local/platform/conf/CiscoLicenseMgr.pid" MAXTIME=120 export LD_LIBRARY_PATH="$SD_LIB_PATH:/usr/local/platform/lib" status() { if [ -f ${PIDFILE} ]; then LICPID=`cat ${PIDFILE}` ps -c $LICPID if [ "${?}" = "0" ] then echo $EXE is running return 0 fi fi echo $EXE is not running return 1 } ---Basically what we modified in the above script is swap the VMLicensingCfg.xml for Licensingcfg.xml positions. ---Now we need to go to /usr/local/cm/conf [root@ucmpub1 conf]# Once you are in the above directory you will need to proceed to modify the values of the files respectively, ie nodes amount ( you should see >150< thats the amount of dlu's currently, here is where you can change the amount to whatever you want, using vi change the values in the LicenseParams.xml and VMLicenseParams.xml files "the new values need to match" in both files in order for the crack to work. Once you have modified both files with the values that you want, proceed to restart the service by going to [root@EDGE1 ~]# cd /usr/local/platform/bin [root@ucmpub1 bin]# ./LicenseScript.sh stop [root@ucmpub1 bin]# ./LicenseScript.sh start -Then proceed to exit the root console and go to the cisco cli , and do a restart from there not from the root console, this will screw up few things, admin:utils system restart Go to the ccmadmin page and enjoy your new dlu's The licensemanager was able to authenticate the process, and you now have new dlu's to play with. Q&A Can you go backwards to the other partition and still have the DLU's, nope, everytime you upgrade ucm, new rpms are added and most importantly, config files are matched, hence the hack on the script file goes back, hence you no longer have dlu's in this partition but you still have those dlu's in your crack partition. So what you want to do is whenever you upgrade to a new partition is first backup your info, then do the hack on the upgrade partition then do a restore and that should be it!