Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import sys
- import urllib2
- import re
- import string
- def banner():
- print '''
- d8888
- d8P888
- d8P 888
- 888 888 d8P 888
- 888 888 d88 888
- Y88 88P 8888888888
- Y8bd8P 888
- Y88P 888 Team
- [#] By Cyber-Crystal [#]
- [#] WwW.V4-Team.Com [#]
- '''
- if len(sys.argv) < 2:
- banner()
- print "\n"
- print "Get ALl HostName For all datecenters"
- print "well be use 192.168.1.1 End 192.168.1.254 ok !!\n"
- print "use %s IP_Target" % sys.argv[0]
- sys.exit()
- def server():
- try:
- ss = sys.argv[1]
- sp = ss.split('.')
- buf = sp[0]+"."
- buf += sp[1]+"."
- buf += sp[2]
- for i in range(1,254):
- try:
- v4 = buf+"."+str(i)
- file = open("datacenter.txt", 'a')
- url = urllib2.urlopen("http://s92443018.onlinehome.us/cgi-bin/host.php?"+v4)
- date = url.read()
- find = re.findall("Hostname: (.*?)<br>",date)
- for host in range(len(find)):
- print find[host] + " Ip :: " +v4
- file.write(find[host]+" : ip : "+v4+"\n")
- except IOError:
- pass
- except IOError:
- pass
- server()
- print "\n\n"
- print "you Wint reverse Domans ALl server ? \n"
- a = raw_input(" yes / no : ")
- def reverse():
- try:
- ss = sys.argv[1]
- sp = ss.split('.')
- buf = sp[0]+"."
- buf += sp[1]+"."
- buf += sp[2]
- for i in range(1,254):
- try:
- v4 = buf+"."+str(i)
- file = open(v4+".txt" , "a")
- #file = open(sys.argv[1], 'a')
- url = urllib2.urlopen("http://sameip.org/ip/"+v4)
- date = url.read()
- find = re.findall('target="_blank">(.+)</a>',date)
- cw = len(find)-3
- for o in range(cw):
- print "Get siets for : "+v4
- coms = find[o]
- file.write(coms+"\n")
- except IOError:
- pass
- except IOError:
- pass
- if a == 'yes':
- reverse()
- else :
- print "v4-team.com"
- print "Exit"
- sys.exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement