Ejemplo n.º 1
0
def run_requester(url):
    res = {}
    for key, binary in REQUESTERS.iteritems():
        lang, libname = key.split('.', 1)

        r = execute(lang, binary, url, base='bin/requester/')
        res[key] = r
    return res
Ejemplo n.º 2
0
#!/usr/local/bin/python3.9
# coding: UTF-8
import sys
# ty
from util import pprint, execute
from const import PARSERS, REQUESTERS
url = sys.argv[1]
res = {}
for key, binary in PARSERS.items():
    lang, libname = key.split('.', 1)
    r = execute(lang, binary, url, base='bin/parser/')
    res[key] = r
pprint(res)

res = {}
for key, binary in REQUESTERS.items():
    lang, libname = key.split('.', 1)
    r = execute(lang, binary, url, base='bin/requester/')
    res[key] = r
pprint(res)
Ejemplo n.º 3
0
#!/usr/bin/python

import sys
from util import execute
from const import PARSERS, REQUESTERS

test_target = "http://11.11.11.11"
if len(sys.argv) > 1:
    test_target = sys.argv[1]

for lang_library, binary in PARSERS.iteritems():
    lang, library = lang_library.split(".", 1)
    print(lang_library)
    print(execute(lang, binary, test_target, "bin/parser/"))

for lang_library, binary in REQUESTERS.iteritems():
    lang, library = lang_library.split(".", 1)
    print(lang_library)
    print(execute(lang, binary, test_target, "bin/requester/"))