Beispiel #1
0
def main():
    """The first function to run."""
    print('\n')
    print('\t   _____ ____    __                          ')
    print('\t  / ___// __ \  / /   ____ ___  ____ _____   ')
    print('\t  \__ \/ / / / / /   / __ `__ \/ __ `/ __ \  ')
    print('\t ___/ / /_/ / / /___/ / / / / / /_/ / /_/ /  ')
    print('\t/____/\___\_\/_____/_/ /_/ /_/\__,_/ .___/   ')
    print('\t                                  /_/        ')
    print('\n')
    print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC)
    comm.checkNetConnectionV()
    comm.checkInstalled(SQLMAP_SYM)
    print('')
    global sop
    # The parameters to be passed to the module on run
    sop = Options()
    if args.run:
        if not args.url:
            print(
                bc.WARN +
                '\t[!]  No URL passed as argument with "-u [URL]" - returning to console.\n'
                + bc.ENDC)
            console()
        else:
            run_auto()
    else:
        console()
Beispiel #2
0
def main():
    print('\n')
    print(
        '     _____                      __       __  __           __  ______            __      '
    )
    print(
        '    / ___/___  ____ ___________/ /_     / / / /___ ______/ /_/_  __/___  ____  / /____  '
    )
    print(
        '    \__ \/ _ \/ __ `/ ___/ ___/ __ \   / /_/ / __ `/ ___/ //_// / / __ \/ __ \/ / ___/  '
    )
    print(
        '   ___/ /  __/ /_/ / /  / /__/ / / /  / __  / /_/ / /__/ ,<  / / / /_/ / /_/ / (__  )   '
    )
    print(
        '  /____/\___/\__,_/_/   \___/_/ /_/  /_/ /_/\__,_/\___/_/|_|/_/  \____/\____/_/____/    '
    )
    print(
        '                                                                                        '
    )
    print('\n')
    print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC)
    comm.checkNetConnectionV()
    onstart()
    print('')
    global sop
    # The parameters to be passed to the module on init
    sop = options('', '', '', '')
    console()
Beispiel #3
0
def main():
    """The main function."""
    print('\n\n')
    print(
        '      _____           __   _____ ____    __       _         _           __  _           '
    )
    print(
        '     / __(_)___  ____/ /  / ___// __ \  / /      (_)___    (_)__  _____/ /_(_)___  ____ '
    )
    print(
        '    / /_/ / __ \/ __  /   \__ \/ / / / / /      / / __ \  / / _ \/ ___/ __/ / __ \/ __ |'
    )
    print(
        '   / __/ / / / / /_/ /   ___/ / /_/ / / /___   / / / / / / /  __/ /__/ /_/ / /_/ / / / /'
    )
    print(
        '  /_/ /_/_/ /_/\__,_/   /____/\___\_\/_____/  /_/_/ /_/_/ /\___/\___/\__/_/\____/_/ /_/ '
    )
    print(
        '                                                     /___/                              '
    )
    print('\n')
    print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC)
    comm.checkInstalledOpt(sqlmap)
    global sqlmap
    sqlmap = SQLMAP_SYM
    comm.checkNetConnectionV()
    print('')
    global sop
    sop = Options('php?id=', 'b', '25', '10', '1', '5', 'y', 'gdorksqli', '0')
    console()
Beispiel #4
0
def main():
    print('\n')
    print('\t     ___  ____  __________ __  ')
    print('\t    / _ )/ __/ / __/ __/ // /  ')
    print('\t   / _  / _/  _\ \_\ \/ _  /   ')
    print('\t  /____/_/   /___/___/_//_/    ')
    print('\n')
    print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC)
    comm.checkNetConnectionV()
    comm.checkNetVPNV()
    print('')
    global sop
    sop = options('127.0.0.1', 22, 'files/user.txt', 'files/pwd_john.txt', '0.5', '', '', 'files/proxies.txt')
    console()
Beispiel #5
0
def main():
    print('\n')
    print('\t    ____  __________   _ __     ___   ')
    print('\t   / __ \/  _/ ____/  (_) /_   /__ \  ')
    print('\t  / / / // // / __   / / __/    / _/  ')
    print('\t / /_/ // // /_/ /  / / /_     /_/    ')
    print('\t/_____/___/\____/  /_/\__/    (_)     ')
    print('\n')
    print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC)
    comm.checkNetConnectionV()
    comm.checkInstalled(DIG_SYM)
    print('')
    global sop
    # The parameters to be passed to the module on init
    sop = options('apple.com', '')
    console()
Beispiel #6
0
def main():
    print('\n')
    print('\t    ____           __        __          __   ')
    print('\t   /  _/___  _____/ /_____ _/ /_  ____  / /_  ')
    print('\t   / // __ \/ ___/ __/ __ `/ __ \/ __ \/ __/  ')
    print('\t _/ // / / (__  ) /_/ /_/ / /_/ / /_/ / /_    ')
    print('\t/___/_/ /_/____/\__/\__,_/_.___/\____/\__/    ')
    print('\n')
    print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC)
    comm.checkInstalledFull(INSTABOT_SYM, INSTABOT_GITNAME, INSTABOT_GITRUN)
    comm.checkNetConnectionV()
    print('')
    global sop
    # The parameters to be passed to the module on init
    sop = options()
    console()
Beispiel #7
0
def main():
    print('\n')
    print('    _______           __                _ __                   ___  ')
    print('   / ___/ /  ___ ____/ /__  __ _  ___ _(_) /__ ___  ___  ___  / _/  ')
    print('  / /__/ _ \/ -_) __/  \'_/ /  \' \/ _ `/ / (_-</ _ \/ _ \/ _ \/ _/   ')
    print('  \___/_//_/\__/\__/_/\_\ /_/_/_/\_,_/_/_/___/ .__/\___/\___/_/     ')
    print('                                            /_/                     ')
    print('\n')
    print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC)
    global spoofcheck
    spoofcheck = comm.checkInstalledFull(SPOOFCHECK_SYM, SPOOFCHECK_GITNAME, SPOOFCHECK_GITRUN)
    comm.checkNetConnectionV()
    print('')
    global sop
    sop = options('www.apple.com')
    console()
Beispiel #8
0
def main():
    if os.getuid() != 0:
        print("r00tness is needed due to packet sniffing!")
        print("Run the script again as root/sudo")
        return None
    print('\n')
    print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC)
    comm.checkInstalled(BETTERCAP_SYM)
    global bettercap
    bettercap = BETTERCAP_SYM
    comm.checkInstalledOpt(BEEF_SYM)
    global beef
    beef = BEEF_SYM
    comm.checkNetConnectionV()
    print('')
    global sop
    gateway = comm.getGateway()
    sop = options(INTERFACE_NET, gateway, "y", "y", "", "", '')
    console()
Beispiel #9
0
def main():
    print('\n')
    print('\t   ______                __          ___    ____   ')
    print('\t  / ____/_______  ____ _/ /____     /   |  / __ \  ')
    print('\t / /   / ___/ _ \/ __ `/ __/ _ \   / /| | / /_/ /  ')
    print('\t/ /___/ /  /  __/ /_/ / /_/  __/  / ___ |/ ____/   ')
    print('\t\____/_/   \___/\__,_/\__/\___/  /_/  |_/_/        ')
    print('\n')
    if os.getuid() != 0:
        print('r00tness is needed due to packet sniffing!')
        print('Run the script again as root/sudo')
        return None
    print('\n')
    print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC)
    comm.checkInstalled(CREATEAP_SYM)
    comm.checkNetConnectionV()
    print('\n')
    # gateway = comm.getGateway()
    global sop
    sop = Options(INTERFACE_NET, INTERFACE_MON, '', '', 'FreeWifi', '', '')
    console()
Beispiel #10
0
def main():
    """Main function to run."""
    firstRun()
    if args.add:
        cmodules.addModule(args.add)
        print('\n\n')
        return None
    if args.delete:
        cmodules.removeModule(args.delete)
        print('\n\n')
        return None
    if args.module:
        runModule()
        return None
    if not args.nocheck:
        print('\n\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC)
        timeSinceUpdate()
        comm.checkNetConnectionV()
        comm.getPublicIPV()
        comm.getLocalIP_interfaceV()
        comm.checkNetVPNV()
        comm.checkTorV()
        sleep(1.5)
    if args.www:
        banner()
        print('\tVisit http://0.0.0.0:5000')
        cwww.startWWW()
        return None
    if not args.quite:
        print(bc.WARN)
        welcome()
    else:
        print('')
    if os.getuid() != 0:
        print('   ' + bc.WARN + '[!]  You are not running WMDframe as root. You\'ll might encounter some problems.. You have been warned!\n')

    path = currPath()
    console(path)
Beispiel #11
0
def main():
    print('\n')
    print('      ____  ______                 __    __            _       ')
    print('     / __ )/ ____/  _      _____  / /_  / /___  ____ _(_)___   ')
    print('    / __  / /_     | | /| / / _ \/ __ \/ / __ \/ __ `/ / __ \  ')
    print('   / /_/ / __/     | |/ |/ /  __/ /_/ / / /_/ / /_/ / / / / /  ')
    print('  /_____/_/        |__/|__/\___/_.___/_/\____/\__, /_/_/ /_/   ')
    print('                                             /____/            ')

    print('\n')
    # if os.getuid() != 0:
    #    print("r00tness is needed due to packet sniffing!")
    #    print("Run the script again as root/sudo")
    #    return None
    print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC)
    comm.checkNetConnectionV()
    comm.checkNetVPNV()
    print('')
    global sop
    sop = options('files/user.txt', 'files/pwd_john.txt', 'http://url.com?',
                  'HTTP', 'username', 'password', 10, 'Login failed', '', '',
                  '', '', '', '', '', '', 'y', 'files/proxies.txt')
    console()
Beispiel #12
0
def main():
    """The first function to run."""
    print('\n')
    print('\t    ___    ____                         _ ________  ')
    print('\t   /   |  / __ \     __     _________  (_) __/ __/  ')
    print('\t  / /| | / /_/ /  __/ /_   / ___/ __ \/ / /_/ /_    ')
    print('\t / ___ |/ ____/  /_  __/  (__  ) / / / / __/ __/    ')
    print('\t/_/  |_/_/        /_/    /____/_/ /_/_/_/ /_/       ')
    print('\n')
    if os.getuid() != 0:
        print('r00tness is needed due to packet sniffing!')
        print('Run the script again as root/sudo')
        return None
    print('\n')
    print('\t' + bc.OKBLUE + 'CHECKING REQUIREMENTS' + bc.ENDC)
    comm.checkInstalled(BETTERCAP)
    comm.checkInstalled(CREATEAP)
    comm.checkInstalledOpt(BEEF)
    comm.checkNetConnectionV()
    print('\n')
    gateway_check = comm.getGateway()
    
    # Checking argparse
    if args.interfacen:
        interfacen = args.interfacen
    else:
        interfacen = INTERFACE_NET
    if args.interfacem:
        interfacem = args.interfacem
    else:
        interfacem = INTERFACE_MON
    if args.gateway:
        gateway = args.gateway
    else:
        gateway = gateway_check
    if args.sniffer:
        sniffer = args.sniffer
    else:
        sniffer = 'ARP'
    if args.proxy:
        proxy = args.proxy
    else:
        proxy = 'y'
    if args.target:
        target = args.target
    else:
        target = ''
    if args.snifflog:
        snifflog = args.snifflog
    else:
        snifflog = 'logs/sniff_log.txt'
    if args.apname:
        apname = args.apname
    else:
        apname = 'FreeWIFI'
    if args.aplog:
        aplog = args.aplog
    else:
        aplog = 'logs/ap_log.txt'
    if args.beef:
        beef = args.beef
    else:
        beef = ''
    if args.apargs:
        apargs = args.apargs
    else:
        apargs = ''
    if args.betterargs:
        betterargs = args.betterargs
    else:
        betterargs = ''

    # Starting class
    global sop
    sop = Options(interfacen, interfacem, gateway, sniffer, proxy, target, snifflog, apname, aplog, apargs, betterargs, beef)

    if args.run:
        run()
    else:
        console()