Latrina

Untitled

Apr 4th, 2020
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. #!/usr/bin/env python3.8
  2.  
  3. import os
  4. url = "sickness.it"
  5. exec = os.system("ping -c 1 " + url)
  6. if exec == 0:
  7.     print (url, "is alive!")
  8. else:
  9.     print (url, "is down!")
  10.  
  11. if exec == 0:
  12.     os.system("traceroute -n " + url)
Add Comment
Please, Sign In to add comment