#!/usr/bin/env python ########################################################################### # # # Fast-Track - A new beginning... # # # # Created by: David Kennedy (ReL1K) # # Developer: Joey Furr (j0fer) # # # # Can find us on IRC: # # irc.freenode.net #social-engineer # # # # DISCLAIMER: This is only for testing purposes and can only be # # used where strict consent has been given. Do not use this for # # illegal purposes period. The creators of this tool hold no # # responsibility for any misuse or abuse of this tool. # # # # Please read the LICENSE file under readme for licensing agreements. By # # using Fast-Track in any purpose you agree to these licensing agreements # # # ########################################################################### import sys,os,time,subprocess # ########################################################################### if os.geteuid() != 0: # Check if we're root print "\nFast-Track v4 - A new beginning...\n\n" print "Fast-Track is not running under root. Please re-run the tool under root...\n" sys.exit(1) readversion=file("bin/version/version","r") for line in readversion: version=line.rstrip() definepath=os.getcwd() mainusage="""\n----------------------------------------------------------------\n\nFast-Track - A new beginning...\n\nAutomated Penetration Testing\n\nWritten by David Kennedy (ReL1K)\n\nPlease read the README and LICENSE before using\nthis tool for acceptable use and modifications.\n\n----------------------------------------------------------------\nModes:\n\nInteractive Menu Driven Mode: -i\nCommand Line Mode: -c\nWeb GUI Mode -g\n\nExamples: ./fast-track.py -i\n ./fast-track.py -c\n ./fast-track.py -g\n ./fast-track.py -g \n\nUsage: ./fast-track.py \n""" remold=subprocess.Popen("rm -rf bin/appdata/* 2> /dev/null", shell=True).wait() # If less than two, print base message if len(sys.argv) < 2: print mainusage else: try: var1=sys.argv[1] #Assign variables to sys.arg var2=sys.argv[2] var3=sys.argv[3] var4=sys.argv[4] var5=sys.argv[5] var6=sys.argv[6] var7=sys.argv[7] except IndexError: # Used incase sys.arg isn't specified pass if sys.argv[1] == '-i': # -i for menu mode definepath=os.getcwd() sys.path.append("%s/bin/menu/" % (definepath)) try: reload(main) # import the main menu except Exception:pass import main else: print mainusage # Print MainUsage if invalid syntax # Start GUI if sys.argv[1] == '-g': definepath=os.getcwd() sys.path.append("%s/bin/web/" % (definepath)) try: import ftgui except Exception, e: print e print "Address already in use.." # -c for command line if sys.argv[1] == '-c': # define where commandmenu mode modules are definepath=os.getcwd() sys.path.append("%s/bin/ftsrc/" % (definepath)) # Show command line menu print """ ************************************************************************ Fast-Track Command Line - A new beginning... ************************************************************************ **** MAKE SURE YOU INSTALL ALL THE DEPENDENCIES FIRST (setup.py) **** Visit http://www.secmaniac.com for tutorials or to file a bug. 1. Update Fast-Track 2. Autopwn Automated 3. MS-SQL Injector 4. MS-SQL Bruter 5. Binary to Hex Payload Generator 6. Mass Client-Side Attack 7. Exploits 8. SQLPwnage 9. Payload Generator 10. Changelog 11. Credits 12. About Usage: fast-track.py -c """ try: if var2 == '1': import updateft ### END Update Everything ### START Metasploit Autopwn Feature ### if var2 == '2': print """ Metasploit Autopwn Automated Metasploit's Autopwn Function can require some knowledge in order to set it up. Fast-Track tries to simplify that. Simply type ./fast-track -c 2 <-r or -b> (reverse or bind) to launch the exploits. Usage: ./fast-track.py -c 2 <-r or -b> <--reverse or bind Examples: ./fast-track.py -c 2 192.168.1.1-254 -b ./fast-track.py -c 2 "-PN 192.168.1.1-254" -r ./fast-track.py -c 2 "-T 1 192.168.1.1/24" -r\n\n """ if var3: import autopwn ### END Metasploit Autopwn Feature ### ### START SA SQL Injector ### if var2 == '3': print """\nMSSQL Root SQL Injector\n\nOptions:\n\n1. Binary Payload Injection GET\n2. Reverse FTP NetCat Payload GET\n3. Manual Setup GET\n4. Binary Payload Injection POST\n\nUsage: ./fast-track.py -c 3