Ejemplo n.º 1
0
def resource():
    print('/resource AT Artur reached...')
    # Read values from request. Supports both GET and POST, whichever is sent.
    sendip = request.values.get('sendip')
    sendport = request.values.get('sendport')
    ttl = request.values.get('ttl')
    id = request.values.get('id')
    noask = request.values.getlist('noask')

    return vra_resource.resource_handler(sendip, sendport, ttl, id, noask)
Ejemplo n.º 2
0
# print(str(time.localtime()))
#while i < 2:

print("Testing break")

def test():
    i = 0
    while i < 10:
        if i is 4:
            break
        print("i=" + str(i))
        i += 1
    print("Reached the end of the test")

test()

import vra_query

queries = {}


print("Socket info: " + str(a))

def testin_taas():
    global queries
"""

print(vra_resource.hosts_from_web("http://maatriks.eu/web_machines.txt"))

vra_resource.resource_handler(0, 0, "3", "a", ["11.22.33.44_14", "111.222.333.424_23456"], False)