Install CPAN’s Perl Module in openSUSE 11.x

Several days ago I had a chance to work with a Perl application again. Luckily, this application needs several Perl modules to be able to work.

The easiest way to install Perl modules is through CPAN. Fortunately there are several software packages that are available to help you working with CPAN. In openSUSE, the helper packages are :

After downloading them, I went to install those packages using the rpm :

# rpm -Uvh cpanm-1.5002-1.1.noarch.rpm perl-App-cpanminus-1.5002-1.1.x86_64.rpm
warning: cpanm-1.5002-1.1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID dcef338c: NOKEY

Preparing... ########################################### [100%]

1:perl-App-cpanminus ########################################### [ 50%]
2:cpanm ########################################### [100%]

Next, to install a Perl module, just use the following command (you need to run this command as “root“) :

cpanm <module_name>

For example, if I want to install a Perl module named Excel::Writer::XLSX here is the command to do it :

cpanm Excel::Writer::XLSX

--> Working on Excel::Writer::XLSX
Fetching http://search.cpan.org/CPAN/authors/id/J/JM/JMCNAMARA/Excel-Writer-XLSX-0.34.tar.gz ... OK

Configuring Excel-Writer-XLSX-0.34 ... OK
Building and testing Excel-Writer-XLSX-0.34 ... OK
Successfully installed Excel-Writer-XLSX-0.34
1 distribution installed

That’s it for today’s article. See you and take care.

Advertisements

LAME’s options for best quality/size ratio

Recently I need to convert several WAV files to MP3 format. I found the lame program can be used for this purpose. But due to my little knowledge in LAM I have difficulties to use the right options.

Thanksfully after reading the manual page and an article on the Internet, I found the following options generate the best quality and size ratio :

lame -V2 --vbr-new -q 2 -b 112  --lowpass 17 <WAV_file.wav>

And here is the picture of lame in action :

It took around 19 seconds to convert a 58 MB WAV file to MP3 format. Quite fast.

K3b 2.0.1 Not Able to Find cdrecord

Recently, I planned to burn several files to a CD-ROM using K3b version 2.0.1 software. Unfortunately when I started the application, it complained about missing the missing of cdrecord program. Then I checked my system and I found out the cdrecord program is in the cdrtools package. But K3b didn’t know about this.

After doing a little research I found out the solution. It’s very easy and simple. I removed the K3b configuration so it will recreate a new configuration. Here is the command I used to remove the K3b configuration file :

rm .kde4/share/config/k3brc

Note :

Several days ago I did an upgrade to my system to openSUSE 11.3. This problem may be caused by the different configuration used by previous K3b version.

goorecon.rb small problems

While doing a research I utilized goorecon.rb in BackTrack 4. Unfortunately I encountered several problems while using it to enumerate email address.

Let’s produce the problem again here. I want to enumerate all of the email addresses of domain yourbank.com using goorecon.rb :

./goorecon.rb -e yourbank.com
call_center@emyourank.com
helpdesk@emyourank.com
info@emyourank.com

Can you see where the problems are ?

Continue reading

OSSIM : Lessons Learned from Tuning Snort IDS

Recently I’ve been busy with tuning Snort IDS (Intrusion Detection System) included with OSSIM. Compare to the installation process, the tuning process is much more involved and time-consuming.

You may wonder why should you do the tuning for you IDS ? Because if you don’t tune the IDS to suit your network environment (servers, network devices, security devices) you will get a lot of events. And I really mean A LOT OF. I received more than 100,000 events each day during the days before I did the tunnng.  It’s a sure thing that if you received this number of events, you will not analyze them, you may not even read them anymore. The good thing is they are all false-positive, so you can ignore them. And of course you don’t want to store those false-positive events to disk. After the tuning process, I received less than ten events per day. :D

Continue reading