Archive for February, 2009


Access Backtrack 4 repos in Ubuntu

This may be a waste of time considering the Backtrack repos will most likely change for the final release.  Also there is no substitute for the awesomeness that is backtrack, but if you want to get a few of the tools in your Ubuntu machine this is one way to do it.

In a terminal:

sudo gedit /etc/apt/sources.list

Add this line to the end of the file:

deb binary

Then do a ‘sudo apt-get udpate’ to update your repos.


Nessus 3.2.1 Installation on BackTrack4 Beta and/or Ubuntu 8.04


The apt-get repos have an old version of Nessus, and for something like a vulnerability scanner I’d like to have the latest version.  Here’s how it’s done…

First download these packages:



Next register your copy to get plugins update using homefeed and please provide the real mail ID as they will send you the activation key for homefeed.

Regsiter Here

Click accept and enter a valid working email, as the registration code will be sent to it.  Now we can start installing.

$ sudo dpkg -i Nessus-3.2.1-ubuntu804_i386.deb

Read the rest of this entry »


How to Install Metasploit 3.2 on Ubuntu Intrepid Ibex 8.10

I’ve seen a lot of folks have trouble with getting Metasploit working properly on Ubuntu, especially the gui.  This is how I got it working, including the gui.

To get started we need to install all of the dependencies, which is all the Ruby stuff with subversion.

sudo apt-get install build-essential subversion ruby libruby rdoc libgtk2-ruby libglade2-ruby libyaml-ruby libzlib-ruby libopenssl-ruby libdl-ruby libreadline-ruby libiconv-ruby   sqlite3 libsqlite3-ruby irb

Next, we need to setup RubyGems.  This will get you the updated source code version.

wget -c
tar -xvzf rubygems-1.3.1.tgz -C /tmp/
cd /tmp/rubygems-1.3.1/
sudo ruby setup.rb

Now we can install Rails:

sudo /usr/bin/gem1.8 install rails

That will take a bit, but now we can pull down Metasploit.   Change directories to where you want Metasploit installed.  I use the backtrack directory hierarchy and use /pentest/Metasploit…

svn co metasploit

Now in that metasploit directory you can use subversion to update it.

svn up

Now you can crank it up with either ./msfconsole or ./msfgui.

Yes even the msfgui works…



Remote Desktop for Ubuntu with NoMachine NX

Download the debs for NX Free edition from here

You’ll need the client, node, and server.

Just ‘dpkg -i package’ for each.

Then install openssh-server by ‘sudo apt-get install openssh-server’ and you’re done.  Much MUCH better than VNC, and it runs over ssh.


What are your top 10 linux commands?

Using one of the following commands, what are your top 10 commands used?

history | awk ‘{print $2}’ | awk ‘BEGIN {FS=”|”} {print $1}’|sort|uniq -c | sort -n | tail | sort -nr


history | sed -e ‘s/  / /g’ | cut -d ” ” -f3 | sort | uniq -c | sort -n | tail | sort -nr

Mine are:

161 sudo
96 ls
57 cd
49 ps
30 mount
21 ifconfig
19 vi
18 killall
18 history
16 apt-cache
16 gedit