def main(argv):
    opts = cvtools.readinputs(argv)
        
    username = None
    password = None
    if not opts.get('username') and not opts.get('password'):
        try:
            # Prompt the user for the credentials
            username = raw_input("Qualys Username: "******"Qualys Password: ")
        except KeyboardInterrupt, e:
            cvtools.usage()
            sys.exit()
Пример #2
0
def main(argv):
    opts = cvtools.readinputs(argv)

    username = None
    password = None
    if not opts.get('username') and not opts.get('password'):
        try:
            # Prompt the user for the credentials
            username = raw_input("Qualys Username: "******"Qualys Password: ")
        except KeyboardInterrupt, e:
            cvtools.usage()
            sys.exit()
def main(argv):
    opts = cvtools.readinputs(argv)
        
    if not opts['username'] and not opts['password']:
        cvtools.usage()

    username = opts['username']
    password = opts['password']

    print "Downloading Qualys KB - this can take a few minutes..."
    kb_dl = cvtools.download_kb(username, password)

    if kb_dl:
        print "Qualys KB downloaded"
        print "Will now parse XML and convert to CSV - this will also take a few minutes..."
        cvtools.convert_kb()

    print "All done! The converted KB is located in: %s" % ( os.path.join(CV_HOME, 'kb.csv'))
Пример #4
0
def main(argv):
    opts = cvtools.readinputs(argv)

    if not opts['username'] and not opts['password']:
        cvtools.usage()

    username = opts['username']
    password = opts['password']

    print "Downloading Qualys KB - this can take a few minutes..."
    kb_dl = cvtools.download_kb(username, password)

    if kb_dl:
        print "Qualys KB downloaded"
        print "Will now parse XML and convert to CSV - this will also take a few minutes..."
        cvtools.convert_kb()

    print "All done! The converted KB is located in: %s" % (os.path.join(
        CV_HOME, 'kb.csv'))