Пример #1
0
def dotransform(request, response):
    ns = login()
    p = policy(ns)
    r = scan(ns, request.value, p).report
    while r.status != 'completed':
        sleep(1)
    nr = NessusReport(r.name)
    nr.uuid = r.uuid
    response += nr
    return response
Пример #2
0
def dotransform(request, response):
    s = login()
    if s is None:
        return response
    p = policy(s)
    if p is None:
        return response
    r = scan(s, request.value, p).report
    while r.status != 'completed':
        sleep(1)
    nr = NessusReport(r.name)
    nr.uuid = r.uuid
    nr.server = s.server
    nr.port = s.port
    response += nr
    return response
Пример #3
0
def dotransform(request, response):
    s = login()
    if s is None:
        return response
    p = policy(s)
    if p is None:
        return response
    r = scan(s, request.value, p).report
    while r.status != 'completed':
        sleep(1)
    nr = NessusReport(r.name)
    nr.uuid = r.uuid
    nr.server = s.server
    nr.port = s.port
    response += nr
    return response