Archive for February, 2009

0

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 http://repo.offensive-security.com/dist/bt4 binary

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

0

Nessus 3.2.1 Installation on BackTrack4 Beta and/or Ubuntu 8.04

nessuslogo

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:

Nessus-3.2.1-ubuntu804_i386.deb

NessusClient-3.2.1.1-ubuntu804.i386.deb

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 »

9

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 http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
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 http://metasploit.org/svn/framework3/trunk/ 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…

msfgui

0

Remote Desktop for Ubuntu with NoMachine NX

Download the debs for NX Free edition from here http://www.nomachine.com/download-package.php?Prod_Id=541.

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.

0

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

or

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