Dell DRAC5 HakPak

January 1, 2017    dell drac drac5 idrac5

Hack DRAC5


DRAC uses deprecated SSL procotols and also tries to execute unsigned code from Dell. I'm going to run it straight with Java instead of WebStart, because we can bypass many issues and get debugging turned on as well.

Running iDRAC5 in Standalone


  • 32-bit JVM
  • Modify Java's security files to enable disabled cipher suites
  • Download your DRAC instance's connection JAR and native lib.
  • Ensure you have all dependencies for your OS (Linux, or Windows)

Running DRAC Console

If you want to run things directly, try this script. You'll need to grab the JARs right off your DRAC instance and stash them somewhere locally.

Get your DRAC's connection jars

https://$YOURDRACHOST/plugins/vkvm/avctKVMIOLinux.jar https://$YOURDRACHOST/plugins/vkvm/avctDRAC5Viewer.jar

if [[ -z $WEBSTART ]] ; then
    echo "Please supply a webstart file."; 
    echo "We found your webstart -> $WEBSTART";

ARGS=$(cat "$WEBSTART"  |  grep '^<argument' | sed -e 's/<argument>//g' | sed -e 's/<\/argument>//g' | tr '\n' ' ')
echo $ARGS
RUN="java -cp avctDRAC5Viewer.jar:avctKVMIOLinux.jar -Djava.library.path=. com.avocent.drac5.kvm.Main $ARGS"
echo $RUN
LD_PRELOAD="$PWD"/idrac-kvm-keyboard-fix/ $RUN

Keycode hack

Dell's DRAC protocol passes keycode that have since changed. We can dynamically override this with a hack. Alternatively, you can mod X with xmodmap as well.


SSL suites disabled

You may have to enable deprecated cipher suites - you can Google that and find plenty of results.

01/03/2018 10:49:16:193: User Login Request: 0x100
01/03/2018 10:49:16:193:  ======connectToPort - sendRequest====== 
01/03/2018 10:49:16:194: packet type( 0x100)
 Sending packet: (8, 208). Connection has been shutdown: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
			    at com.avocent.kvm.d.b.g.b(Unknown Source)
			    at Source)
Caused by: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)
       at com.avocent.kvm.e.a.a.a(Unknown Source)
       at Source)

64-bit VM

You'll need a 32-bit JVM and 32-bit libraries for its dependencies, like libX*.i686. I had many of them installed already because I do cross-arch dev on gentoo. You can install most of them with yum (C7).

#yum install compat-libst* libstdc* <-- You probably don't need this.
yum install glibc.i686
yum -y install 'libX*.i686'
yum -y install 'libgcc.i686'

The error , if you're curious

Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /home/avinash/repos/os/hakDrak/hakdrak/src/main/lib/ which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
java.lang.UnsatisfiedLinkError: /home/avinash/repos/os/hakDrak/hakdrak/src/main/lib/ /home/avinash/repos/os/hakDrak/hakdrak/src/main/lib/ wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
				at java.lang.ClassLoader$NativeLibrary.load(Native Method)
				at java.lang.ClassLoader.loadLibrary0(
				at java.lang.ClassLoader.loadLibrary(
				at java.lang.Runtime.loadLibrary0(
				at java.lang.System.loadLibrary(
				at com.avocent.kvm.nativekeyboard.c.b(Unknown Source)
				at com.avocent.kvm.nativekeyboard.c.<init>(Unknown Source)
				at com.avocent.drac5.kvm.e.a(Unknown Source)
				at com.avocent.a.b.i.f(Unknown Source)
				at com.avocent.drac5.kvm.Main.a(Unknown Source)
				at com.avocent.drac5.kvm.Main.main(Unknown Source)
				at com.gentoomx.App.main(
 Failed to load native keyboard library.
01/03/2018 10:51:09:937:  End of file, session closing.
01/03/2018 10:51:09:937: AVSP closeConnection called.
01/03/2018 10:51:09:938:   Mouse packet thread stopping.

comments powered by Disqus