Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.59 KB | None | 0 0
  1. import os
  2. import sys
  3. def resolve():
  4.     sub = ('www','mail', 'webmail', 'email', 'direct-connect-mail',
  5.             'direct', 'direct-connect', 'cpanel', 'ftp', 'forum', 'blog',
  6.             'm', 'dev', 'record', 'ssl', 'dns', 'help', 'ns', 'ns1', 'ns2',
  7.             'ns3', 'ns4', 'irc', 'server', 'status', 'status', 'portal', 'beta',
  8.             'admin', 'imap', 'smtp')
  9.     i = 0
  10.     while (i < 31):
  11.         print("")
  12.         print ("RESOLVING "+ sub[i] +" SERVICE")
  13.         command = "ping -c 1 "+sub[i]+"."+target+""
  14.         print ("")
  15.         os.system(command)
  16.        
  17.         i = i + 1  
  18.  
  19. target = sys.argv[1]
  20. resolve()
  21. print ("Press any key to exit.")
  22. pause = input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement