_______          __                             .__        .____          ___.           
  ____ \   _  \   _____/  |_ __ _________  ____ _____  |  |       |    |   _____ \_ |__   ______
 /    \/  /_\  \_/ ___\   __\  |  \_  __ \/    \\__  \ |  |       |    |   \__  \ | __ \ /  ___/
|   |  \  \_/   \  \___|  | |  |  /|  | \/   |  \/ __ \|  |__     |    |___ / __ \| \_\ \\___ \ 
|___|  /\_____  /\___  >__| |____/ |__|  |___|  (____  /____/     |_______ (____  /___  /____  >
     \/       \/     \/                       \/     \/                   \/    \/    \/     \/ 


          

 
  |    Home    |    Projects    |    Forums    |    Gallery     |  Contacts     | 
 
 
 
 
 
 
 
 
 
 
Metasploit on the WRT54GS router (The easy way)

After messing around with metasploit on my router running Open WRT, I thought I'd make an ipkg and make it easier to install. So, after a few days of hacking I came up with this.

 

Install Open WRT

If you haven't done so already, you need to install Open WRT on your router. If you don't know how to do that, check out www.openwrt.org. They have all the answers.

 
Easiest way to install:

Just run the following command on your router (all one one line)

wget -O - http://www.n0cturnal-labs.org/projects/curious-george/install-metasploit.sh | sh
 
Configure /bin/create-swap

To run metasploit you need to create a swap file. This command

create-swap

will attempt to mount a remote samba share and then make a swap file. You need to edit /bin/create-swap to configure the IP address of your samba server.

Configure the samba server

The samba server should share a directory called swap. The share should have read and write permissions and be accessible by anyone. If you're running Linux, The samba server must be configured to use encrypted passwords. and allow everybody to connect with no password. If you're running windows 95/98/XP just use simple file sharing. You might have trouble with Windows 2K. Win 2K doesn't do simple file sharing by default. So you have to enable it.

Running metasploit

metasploit comes in three different flavors.

msfcli is the command line interface
msfconsole the console based GUI
msfweb is the web based GUI

To learn how to use metasploit, check out www.metasploit.com or search google