Decryption of Weblogic 8 3DES passwords in config.xml…

So, yesterday I couldn’t find the password that is used to connect to one of the Oracle DBs for an application…

The password is saved in config.xml for this weblogic domain, but it’s encrypted…

I can see the hash “{3DES}vx1VMjDei4ur7Ews12m4zQ==” in the config.xml file…

I’ve read a few threads that mentioned that the decryption key is in SerializedSystemIni.dat located in the domain folder…

I tried to use OpenSSL to do the work, but couldn’t get it working, and BEA’s dev2dev portal is no longer working so that I can check anything out…

Continue reading

Advertisements

I should have done it while I could…

Tonight, I’ve just finished watching this movie, it’s called He’s just not that into you, it was a really nice movie, I like it….

For a moment, actually lots of moments, I felt that I can see my life being displayed on that silver screen !!!!

I mean, that is just me, that what did happen to me, I was in shock, part of that movie was telling some part of my life, and I walked out of it speechless, not the movie was “WOW” it’s just a nice movie, but it made me think over about things…

Lots of things, choices I’ve made, things I just passed either because someone didn’t like, or things I accepted because someone would be happy with…

Why on earth did I do this??

Also I had that chance, golden chance; to set things right for me once again, and yet I just didn’t take it, why? because it would have made someone sad, and now it too late…

I mean, what about me? what did I get in return? Am I really that demanding?

I’m just lost…I really should have done it while I could…

Install Linux on a machine running Windows – Remotly, no CD-ROM, no PXE…

One day, I got stuck with that server running windows, and I wanted to install Linux on it…

It was connected to an IP-KVM, so I thought I’m in control, and I can just boot it up with PXE, but there was my surprise, no PXE support in the BIOS !!!!

And the machine has no CD-ROM, the IP-KVM doesn’t provide virtual media capabilities…

A little googeling around, I was mainly looking for a way to install grub on this machine, and there is was; Grub4Dos, as well as this wiki page

I used method 5, placed grldr and grld.mbr from grub4dos package, created folders C:\boot and C:\boot\grub

I grabbed the kernel and Ram disk from CentOS mirrors in the PXE folder

Embedded the kick start file into initrd.img using the the method described in this post.

Transferred the kernel and the modified ram disk to the windows machine and placed them under C:\boot

And created C:\boot\grub\menu.lst with the following content:

title My Linux installer of choice
kernel   (hd0,0)/boot/vmlinuz  vnc vncpassword=password ip=dhcp ks=file:/ks.cfg
initrd   (hd0,0)/boot/initrd.img

Now one last thing to do before rebooting, added the following line into boot.ini (as described in method 5

Now it looks like this:

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows Server 2003, Standard" /noexecute=optout /fastdetect
C:\grldr="Start GRUB"

Rebooting the machine, and choosing “Start GRUB” in the boot up menu instantly brought the beloved grub menu…

Now the setup started up, and I get to watch it by connecting using VNC to <ip>:1…

Installation done, reboot done; bye bye Windows, welcome Linux… 🙂

Modifying initrd.img

Sometimes you might want to alter the content inside initrd.img for many reasons…

Using mkinitrd might sound like the obvious solution, but it doesn’t do much except for boot time drivers…

But assume you want to embed a kick start file inside the installer’s initrd.img, let’s take this for example…

Continue reading

Pangolin, a problem with the SIP stack…Solved…

In a previous post, I’ve talked about a large scale VoIP system, so the client decided to use a customized version of Pangolin from PortSIP, but it had a slight problem…

If the user won’t use STUN, he can login to the SBC, but when making a call, it’s one way audio…

If the user uses STUN, he can’t login at all…

However, using the same configuration on eyeBeam, everything works well, registration as well as two-way audio…

So it was clear that there’s something that doesn’t work well with Pangolin, However, working closely with them, we were able to solve the problem…

This is how it’s done…

Continue reading

Asterisk IP authentication…

Thinking about making your own termination service ?? need to make IP-based authentication for asterisk ??

This took me quite some time to figure out how to do it properly…

In Trixbox, or any similar distribution that uses FreePBX interface, trying to add an extension won’t help in this at all…

Thanks to the guys here, I got a clue on how to do it…

Go to the Trunks page, and create a new SIP trunk, give your trunk some meaningful name (VMWare for example), clear all the text in Outgoing Settings PEER details…

In Incoming Settings, give it anyother different name (VMWare-in for this example)…

In USER Details

context=from-internal
host=xx.yy.zz.97
type=peer
disallow=all
allow=ulaw&alaw&gsm&g729
insecure=port,invite
nat=yes

Now /etc/asterisk/sip_additional.conf would show something similar to this

[VMWare]
[VMWare-in]
disallow=all
context=from-internal
host=xx.yy.zz.97
type=peer
allow=ulaw
allow=alaw
allow=gsm
allow=g729
insecure=port,invite
nat=yes

If not using FreePBX, just add lines similar to these in /etc/asterisk/sip.conf

Applying the context from-internal will cause asterisk to process the calls from that peer using the usual dial-plan, just as if the call came from an internal extension…

Apply the changes, and you’re done…

Asterisk and CTI, what’s that all about??

Asterisk is a wonderful piece of software, doing all the magical stuff you can imagine with VoIP, including –but not limited to– IVR, call queues, routing, billing, trans-coding, registrar, and much more…

One of the most advanced features in asterisk and is generally overlooked, and taken for granted, is the asterisk manager interface (AMI for short), this gives rise to a whole new dimension for applications to integrate with Asterisk, using CTI…

CTI is just a terminology, it stands for Computer Telephony Integration, there’s no special piece of software you can call CTI, any application that can integrate with a VoIP system, this integration can be called CTI…

However, CTI usually refers to call management from within the application, adding extensions to queues, removing them, initiate calls, transfer calls…

You might think and say “any SIP phone can do this”, I’m not talking about making a call, and receiving it, I’m taking about application integration…

Asterisk provides an interface called manager interface, upon connecting and authenticating to it, asterisk would send you about events, and you can send commands to it…

Examples always explain better than just talking…

Continue reading