Example #1
0
def ticknormal():
    num = random.randint(7, 7)

    temp = zmaptool.Zmaptool()

    temp.do_scan(port=operator.get(str(num)), num='30')
    print('Tick! The time is: %s' % datetime.now())
Example #2
0
def tick():
    num = random.randint(1, 1)

    temp = zmaptool.Zmaptool()

    temp.do_scan(port=operator.get(str(num)), num='4', needdetail='1')
    print('Tick! The time is: %s' % datetime.now())
Example #3
0
def zmaptask():
    num = random.randint(8, 8)

    temp = zmaptool.Zmaptool()

    temp.do_scan(port=operator.get(str(num)), num='20')
    print('Tick! The time is: %s' % datetime.now())