def scanUrlsSQLmap(filenameVulnUrl):
    print(('\n\n\n' + bcolors.HEADER))
    print('  #===============================#')
    print('  #                               #')
    print('  #        Scan urls with         #')
    print('  #            SQLmap             #')
    print('  #                               #')
    print('  #===============================#')
    print(('\n' + bcolors.ENDC))
    if (shutil.which('sqlmap') is None):
        print("  SQLmap is not installed on system - can't go on.")
        print('  Install sqlmap and run command below (sudo pacman -S sqlmap, sudo apt-get install sqlmap, etc.)')
        print('  \nCommand:')
        print((('  sqlmap -m "' + filenameVulnUrl) + '\n'))
    elif (filenameVulnUrl == '0'):
        print('  No filename in memory, please specify.')
        filenameVulnUrl = input(((bcolors.ENDC + '  Filename with urls: ') + bcolors.OKBLUE))
        if (not os.path.isfile(filenameVulnUrl)):
            print((bcolors.FAIL + '  Specified file does not exist.'))
            print((bcolors.FAIL + '  Exiting'))
            sys.exit()
    print((bcolors.ENDC + '  SQLmap will be started with arguments dbs, batch, random-agent, 4xthreads.'))
    fileDestination = ((os.getcwd() + '/') + filenameVulnUrl)
    command = (('sqlmap -m ' + fileDestination) + ' --dbs --batch --random-agent --threads 4')
    print(('Command to execute: ' + command))
    input((bcolors.ENDC + '  Press enter to continue\n'))
    print((bcolors.ENDC + '  Starting SQLmap - follow onscreen instructions'))
    print((bcolors.BOLD + '  Press Ctrl + c to exit\n\n\n'))
    os.system(command)
def scanUrlsSQLmap(filenameVulnUrl):
    print(('\n\n\n' + bcolors.HEADER))
    print('  #===============================#')
    print('  #                               #')
    print('  #        Scan urls with         #')
    print('  #            SQLmap             #')
    print('  #                               #')
    print('  #===============================#')
    print(('\n' + bcolors.ENDC))
    if (shutil.which('sqlmap') is None):
        print("  SQLmap is not installed on system - can't go on.")
        print('  Install sqlmap and run command below (sudo pacman -S sqlmap, sudo apt-get install sqlmap, etc.)')
        print('  \nCommand:')
        print((('  sqlmap -m "' + filenameVulnUrl) + '\n'))
    elif (filenameVulnUrl == '0'):
        print('  No filename in memory, please specify.')
        filenameVulnUrl = input(((bcolors.ENDC + '  Filename with urls: ') + bcolors.OKBLUE))
        if (not os.path.isfile(filenameVulnUrl)):
            print((bcolors.FAIL + '  Specified file does not exist.'))
            print((bcolors.FAIL + '  Exiting'))
            sys.exit()
    print((bcolors.ENDC + '  SQLmap will be started with arguments dbs, batch, random-agent, 4xthreads.'))
    fileDestination = ((os.getcwd() + '/') + filenameVulnUrl)
    command = (('sqlmap -m ' + fileDestination) + ' --dbs --batch --random-agent --threads 4')
    print(('Command to execute: ' + command))
    input((bcolors.ENDC + '  Press enter to continue\n'))
    print((bcolors.ENDC + '  Starting SQLmap - follow onscreen instructions'))
    print((bcolors.BOLD + '  Press Ctrl + c to exit\n\n\n'))
    os.system(command)