Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import sys
- def resolve():
- sub = ('www','mail', 'webmail', 'email', 'direct-connect-mail',
- 'direct', 'direct-connect', 'cpanel', 'ftp', 'forum', 'blog',
- 'm', 'dev', 'record', 'ssl', 'dns', 'help', 'ns', 'ns1', 'ns2',
- 'ns3', 'ns4', 'irc', 'server', 'status', 'status', 'portal', 'beta',
- 'admin', 'imap', 'smtp')
- i = 0
- while (i < 31):
- print("")
- print ("RESOLVING "+ sub[i] +" SERVICE")
- command = "ping -c 1 "+sub[i]+"."+target+""
- print ("")
- os.system(command)
- i = i + 1
- target = sys.argv[1]
- resolve()
- print ("Press any key to exit.")
- pause = input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement