示例#1
0
def prerun(options):
    """ Run misc flags that don't necessarily have anything to do
    with fingerprinting or exploiting.
    """

    # first check if we need to generate a payload
    if options.generate_payload:
        generate_payload.run(options)

    # Check to see if we need to run the discovery module
    if options.discovery_file:
        discovery.run(options)

    # then check if they want a listing of all deployers
    if options.deploy_list:
        deploy_utils.deploy_list()

    if options.aux_list:
        deploy_utils.auxiliary_list()

    if path.isdir(state.serve_dir):
        # stale temp dir from a crash, etc.
        rmtree(state.serve_dir)

    # create our temporary directory
    mkdir(state.serve_dir)
示例#2
0
def prerun(options):
    """ Run misc flags that don't necessarily have anything to do
    with fingerprinting or exploiting.
    """

    # first check if we need to generate a payload
    if options.generate_payload:
        generate_payload.run(options)

    # then check if they want a listing of all deployers
    if options.deploy_list:
        deploy_utils.deploy_list()

    if options.aux_list:
        deploy_utils.auxiliary_list()

    if path.isdir(state.serve_dir):
        # stale temp dir from a crash, etc.
        rmtree(state.serve_dir)

    # create our temporary directory
    mkdir(state.serve_dir)

    # weblogic libcheck
    if not deploy_utils.check_wl_libs():
        utility.Msg("WebLogic libraries not found, disabling platform...", LOG.DEBUG)
        state.supported_platforms.remove('weblogic')
示例#3
0
def prerun(options):
    """ Run misc flags that don't necessarily have anything to do
    with fingerprinting or exploiting.
    """

    # first check if we need to generate a payload
    if options.generate_payload:
        generate_payload.run(options)

    # Check to see if we need to run the discovery module
    if options.discovery_file:
        discovery.run(options)

    # then check if they want a listing of all deployers
    if options.deploy_list:
        deploy_utils.deploy_list(options.deploy_list)

    if options.aux_list:
        deploy_utils.auxiliary_list(options.aux_list)

    if path.isdir(state.serve_dir):
        # stale temp dir from a crash, etc.
        rmtree(state.serve_dir)

    # create our temporary directory
    mkdir(state.serve_dir)
示例#4
0
def prerun(options):
    """ Run misc flags that don't necessarily have anything to do
    with fingerprinting or exploiting.
    """

    # first check if we need to generate a payload
    if options.generate_payload:
        generate_payload.run(options)

    # then check if they want a listing of all deployers
    if options.deploy_list:
        deploy_utils.deploy_list()

    if options.aux_list:
        deploy_utils.auxiliary_list()

    if path.isdir(state.serve_dir):
        # stale temp dir from a crash, etc.
        rmtree(state.serve_dir)

    # create our temporary directory
    mkdir(state.serve_dir)

    # weblogic libcheck
    if not deploy_utils.check_wl_libs():
        utility.Msg("WebLogic libraries not found, disabling platform...", LOG.DEBUG)
        state.supported_platforms.remove('weblogic')