Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random as q
- import subprocess as w
- import datetime as e
- qq = "ping test result-{}.txt".format(e.date.today())
- qw = "ping test error-{}.txt".format(e.date.today())
- with open (qq, mode='w') as r, open(qw,mode='w') as t:
- for y in range(256):
- a,s,d,f= q.randint(0,255), q.randint(0,255), q.randint(0,255), q.randint(0,255)
- ww = 'ping {}.{}.{}.{}'.format(a,s,d,f)
- print(ww)
- t.write(ww)
- w.call(ww,stdout=r,stderr=t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement