Beispiel #1
0
def api_mode():
    conf.API_OUTPUT = os.path.join(paths.DATA_PATH, conf.API_MODE)
    if not os.path.exists(conf.API_OUTPUT):
        os.mkdir(conf.API_OUTPUT)

    file = runApi()
    for line in open(file):
        dest = line.strip()
        if dest:
            eg.queue.put(dest)
Beispiel #2
0
def api_mode():
    conf.API_OUTPUT = os.path.join(paths.DATA_PATH, conf.API_MODE)
    if not os.path.exists(conf.API_OUTPUT):
        os.mkdir(conf.API_OUTPUT)

    file = runApi()
    for line in open(file):
        for name,exp in conf.MODULE_PLUGIN.items():
            module = dict()
            module["sub"] = line.strip()
            module["name"] = name
            if module["sub"]:
                module["poc"] = exp
                th.queue.put(module)