Is it possible to hack into a gmail address ? - Really scary

September 07, 2007 3 comments
Who doesn't have a gmail id now a days ? In my honest opinion, I am yet to discover a more user friendly web mail host. Gmail is non-intrusive, provides all the advanced and usable features such as POP3, mail search and much more.

But recently at a Black Hat security convention, Robert Graham, the CEO of errata security, surprised attendees by hijacking a Gmail session on camera and reading the victim’s email. He went even further by demonstrating the attack by taking over another journalist’s Gmail account and then sending emails from that account. Really scary.

So how do you protect yourself from somebody sniffing your email while it is in transit and then hacking into your gmail account ? There is one way to make it much harder for sniffing your mails. That is by sending and receiving mails using Gmail's SSL feature. SSL stands for Secure Sockets Layer and is used to provide secure data transfer across the web, for instance ecommerce sites use SSL to transmit your credit card details. Google provides the SSL feature for gmail and all it takes to enable SSL in Gmail is by typing the address https://mail.google.com instead of http://mail.google.com. Make note of the 's' in 'https'. What this does is instead of encrypting only the username and password, Gmail encrypts the whole mail session and this makes it possible to transfer your mails in a secure manner.

So the next time you decide to log on to your gmail account, use https instead of http and you will be fairly safe from getting your mail sniffed in transit.

Nmap explained from an Ethical Hacker's View

September 04, 2007 3 comments
Nmap (Network MAPper) is a network scanner written by Gordon Lyon. It is a free and open source tool and is available at insecure.org with versions for Windows and Linux and is ubiquitous in its use.

Nmap can be (and is) used to for instance, scan for open ports on a remote server, to detect the OS run on the server, what all services are running on the remote server and so on.

Many of us might have run the TCP SYN scan which require root privileges and the TCP connect scan which can be run even as an ordinary user. But there is much more to the usage of nmap tool.

Kirby Tucker at ethical hacker has written a very informative article which provides inside knowledge about the usage of nmap as well as what each command accomplishes.

In part I of this tutorial, he explains no less than 13 different scans you can run using the nmap tool. And at the end he also demonstrates how you can glean information by running nmap in conjunction with wireshark (an open source network protocol analyzer). A really interesting read for all aspiring system administrators.

Update (September 06 2007): It seems the publishers of the article have run into some copyright problems and have temporarily taken the resource down till the problems could be ironed out.

In the meantime, a comprehensive resource on nmap which you will find really helpful is the book titled - "Secrets of Network Cartography: A Comprehensive Guide to nmap" authored by James Messer which you can freely read online. You can even download a PDF version of the book for a nominal price.

How to create a custom DVD from multiple video formats

September 03, 2007 0 comments
I have always found it a hassle to convert a video file from one format to another in Linux for lack of (or rather, not being aware of) a good Free video conversion suite. I have tried converting an Avi file to another format such as mp4 using some software but the results were far from satisfactory. I take it that it has more to do with the settings I selected than the fault of the software I used.

Axel has written a quite detailed article explaining how to create a custom DVD using a Free video conversion software called DeVeDe. What is really interesting about his article is that he shows the exact settings he used in the conversion - a big factor if you want your converted video file to have more or less the same quality. In fact my experience shows that you need to get the ratio of number of frames per second with respect to resolution of the video right else the quality of the video might suffer.

Fig: DeVeDe software interface

He has used the Windows version of DeVeDe but this is a software which is available for Linux as well. For example, in Ubuntu, you can install this software using the command :
$ sudo apt-get install devede
You need to have Mplayer, Mencoder, DVDAuthor, VCDImager, MKisofs and all the proprietary codecs installed though since DeVeDe is just a front-end. More over since DeVeDe is a Python script, it requires Python as well. For more details on the actual steps required to convert a video file from one format to another, do read the guide.

Benchmark : Which is the best Linux terminal ?

September 02, 2007 2 comments
It has many times occurred to me which terminal among the plethora of terminals at our disposal are the most efficient in terms of speed, memory consumption and ease of use. And I was of the opinion that the ubiquitous xterm was a likely candidate for a terminal with less memory footprint. Well I couldn't have been further from the truth.

It seems xterm is a very poor choice when selecting a terminal. Martin Ankerl benchmarked a number of terminals available in Linux including xterm, gnome-terminal, KDE konsole, wterm, eterm and aterm. And his findings indicate gnome-terminal and konsole as the best choice of terminals for its speed. And by speed I mean the speed of execution of commands in it and not the program's startup time. But the down side is that these two terminals consume a significant amount of memory. For example, Gnome-terminal is found to consume around 45 MB.

Martin states that he found wterm as the best bet for a low memory footprint with just 6.5 MB consumption. And it is sufficiently fast in executing. xterm loses in this department too with each instance consuming around 16 MB.

Do read the full benchmark details and also a nifty graph of his results.

Awesome timeline of Unix, Linux and Mac OSX

August 31, 2007 15 comments
A beautifully constructed timeline of Unix which includes modern day Unix descendants such as Solaris and Mac OSX as well as Linux. This timeline is not very much unlike the mind map of Linux I had created a long time back. But this timeline also provides the year when the Unix/Linux flavor was born. [Via: Zwahlen Design blog]

Fig: Unix - Linux timeline

Guess what this mystery character is used for ?

August 30, 2007 0 comments
Today I came across an interesting blog post related to a mystery character. The character in question is the one shown below.

Fig: Picture of the mystery character.

Let's see what effect this mystery character has when it is cut and pasted in different text fields....

Fig: Firefox address bar

Fig: Pasted inside Gimp

As you can see, after this character is pasted, all the succeeding text is typed backwards from right to left. Really strange.

The closest valid explanation that was made was the following comment made by Charlie Halpern in the afore mentioned blog. And I quote ...
As noted about, the backwards type comes from the other characters, not from the circle of commas. The circle of commas (҉) is the Unicode character U+0489 COMBINING CYRILLIC MILLIONS SIGN. It actually is supposed to combine with the character before it, surrounding it with them crazy commas. It is a historic character that isn’t much in current use. See this pdf document for more details.
Note: For this unique magic to work, the program into which you paste this symbol should support unicode. For example, pasting this symbol in an 8-bit Ascii software such as Windows Notepad or Internet Explorer will display a series of gibberish.

Howto: Build an selinux policy the Red Hat enterprise way

August 29, 2007 0 comments
Red Hat / Fedora has now got GUI tools to help edit and create SElinux policy files. And it is much more simpler to create a custom selinux policy in Red Hat Enterprise Linux.

In this detailed article, Dan Walsh gently walks you through the policy module creation process.

A lot of people think that building a new SELinux policy is magic, but magic tricks never seem quite as difficult once you know how they’re done. This article explains how to build a policy module and gives you the step-by-step process for using the tools to build your own.

Read more on a step by step guide to creating an selinux policy module explained by Dan Walsh.

Update: Also check out this PDF presentation on Managing Red Hat Enterprise Linux 5 which also contain information on SELinux.