Beispiel #1
0
def main(argv):
    parse_command_line(argv)

    logging.basicConfig(
        format='%(message)s',
        level=(
            logging.INFO if command_line_arguments.verbose else logging.WARNING
        )
    )

    command = command_line_arguments.command
    if command == 'scan':
        scan(command_line_arguments.filename)
    elif command == 'dump':
        dump(command_line_arguments.dbname)
    elif command == 'tally':
        tally(command_line_arguments.dbnames)
    else:
        raise SignatrixError('unrecognized command: ' + command)
Beispiel #2
0
        config_file = options["config_file"]

    print("config: %s" % config_file)
    if not os.path.exists(config_file):
        raise ValueError("config_file not found: {}".format(config_file))

    return config_file


# --------------------------------------------------------------
# config affairs
# look for default config name in lib/config.py
args = sys.argv
args = args[1:]

options = command_line.parse_command_line(args)

conf = config.read_config(get_config_filename(options))

override_config_with_command_line_options(conf, options)

conf["GENERAL"]["VERSION"] = "0.9.9.0.2"

print(("NTLM authorization Proxy Server v%s" % conf["GENERAL"]["VERSION"]))
print("Copyright (C) 2001-2012 by Tony Heupel, Dmitry Rozmanov, and others.")

config = config_affairs.arrange(conf)

# --------------------------------------------------------------
# let's run it
serv = server.AuthProxyServer(config)
Beispiel #3
0
    if options.has_key('config_path') and options['config_path'] != '':
        config_file = options['config_path']
    else:
        config_file += 'server.cfg'

    return config_file



#--------------------------------------------------------------
# config affairs
# look for default config name in lib/config.py
args = sys.argv
args = args[1:]

options = command_line.parse_command_line(args)

conf = config.read_config(get_config_filename(options))

override_config_with_command_line_options(conf, options)

conf['GENERAL']['VERSION'] = '0.9.9.0.2'

print 'NTLM authorization Proxy Server v%s' % conf['GENERAL']['VERSION']
print 'Copyright (C) 2001-2012 by Tony Heupel, Dmitry Rozmanov, and others.'

config = config_affairs.arrange(conf)


#--------------------------------------------------------------
# let's run it