DragonBowl

PINGTOOL

Jan 21st, 2023
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.81 KB | Source Code | 0 0
  1. print('''
  2. __        _______ _     ____ ___  __  __ _____   _____ ___
  3. \ \     / / ____| |   / ___/ _ \|  \/  | ____| |_   _/ _
  4. \ \ /\ / /|  _| | |  | |  | | | | |\/| |  _|     | || | | |
  5.  \ V  V / | |___| |__| |__| |_| | |  | | |___    | || |_| |
  6.   \_/\_/  |_____|_____\____\___/|_|  |_|_____|   |_| \___/
  7.  
  8. ____ ___ _   _  ____ _____ ___   ___  _
  9. |  _ \_ _| \ | |/ ___|_   _/ _ \ / _ \| |
  10. | |_) | ||  \| | |  _  | || | | | | | | |
  11. |  __/| || |\ | |_| | | || |_| | |_| | |___
  12. |_|  |___|_| \_|\____| |_| \___/ \___/|_____|
  13.  
  14. ''','''
  15. █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
  16. █░██░██░██░██░██░██░██░██░██░░░░░░░░░░█
  17. █░██░██░██░██░██░██░██░██░██░░░░░░░░░░█
  18. █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
  19. ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  20. ░░█░░░░█▀▀▀█░█▀▀█░█▀▀▄░▀█▀░█▄░░█░█▀▀█░░
  21. ░░█░░░░█░░░█░█▄▄█░█░░█░░█░░█░█░█░█░▄▄░░
  22. ░░█▄▄█░█▄▄▄█░█░░█░█▄▄▀░▄█▄░█░░▀█░█▄▄█░░
  23. ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░''')
  24. print(" ")
  25. op1=int(input("Before you use ping tool you must install pythonping , if you would like to know how to install this than press (1) to continue press (2): "))
  26. if op1 == 1:
  27.     print('''Dont panic ,
  28.    1. Open CMD prompt , you can do this by pressing (Windows Key+R) then type in cmd and press enter
  29.    2. You must have Python 3.8-3.11 to continue , if you are running this program , then you probably have it :)
  30.    3. When the menu opens , type in these exact command  (pip install pythonping)
  31.    4. Wait until it says you have completed it
  32.    5. If it says Requirment already satisfied then you already have it , that was a waste of time :(
  33.    6. Now please restart this program as , we have to update our pip packages . thank you ;)
  34.    ''')
  35. else:
  36.     from os import system
  37.  
  38.     url = str(input("What is the IP address or URL of the website you wish to Ping :) : "))
  39.     system("ping " + url)
  40.     print(" ")
  41.     op2 = int(input(
  42.         "You results are up there ^^^ , if you only see giberish then press (1) to see what these results mean , or else press (2) to continue : "))
  43.     if op2 == 1:
  44.         print('''
  45.    Well if it worked it should look something like this VVV
  46.  
  47.      Pinging 1.1.1.1 with 32 bytes of data:
  48.      Reply from 1.1.1.1: bytes=32 time=21ms TTL=57
  49.      Reply from 1.1.1.1: bytes=32 time=19ms TTL=57
  50.      Reply from 1.1.1.1: bytes=32 time=16ms TTL=57
  51.      Reply from 1.1.1.1: bytes=32 time=15ms TTL=57
  52.  
  53.     line1:  Ping statistics for 1.1.1.1:
  54.     line2:  Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
  55.     line3:  Approximate round trip times in milli-seconds:
  56.     line4:  Minimum = 15ms, Maximum = 21ms, Average = 17ms
  57.  
  58.      Wait dont get a seizure! , ill explain it , Look at line 2
  59.      if (lost=0) than the website is online
  60.      if (lost=1-3) the website is online but may be rate limited meaning that it cant proccess all the pings or the DDOS protection software , used by the website may thing your trying to do a DDOS attack
  61.      if (lost=4) the website is offline
  62.      line4 just means how long it took to receive the ping
  63.  
  64.  
  65.      THANK YOU for using PINGTOOL''')
  66.     else:
  67.         print('''
  68.  
  69.        THANK YOU for using PINGTOOL''')
  70.  
  71. input("press ENTER to EXIT")
  72.  
Advertisement
Add Comment
Please, Sign In to add comment