Example #1
0
def testVector(suffle=False):
	g='/20'
	net1=ix.ip_network(unicode('0.0.0.0'+g))
	lIP=list(net1.hosts())
	lIP=[ix.ip_address(unicode(subnet(str(net1)).first()))]+lIP+[ix.ip_address(unicode(subnet(str(net1)).last()))]
	l=len(lIP)
	C=['0.0.0.0/20']*l
	net2=ix.ip_network(u'0.0.4.0/22')
	net3=ix.ip_network(u'0.0.6.0/24')
	net4=ix.ip_network(u'0.0.14.0/23')
	net5=ix.ip_network(u'0.0.8.0/24')
	net6=ix.ip_network(u'0.0.9.0/24')
	for i,w in enumerate(lIP):
		if w in net2:
			C[i]='0.0.4.0/22'
		if w in net3:
			C[i]='0.0.6.0/24'
		if w in net4:
			C[i]='0.0.14.0/23'
		if w in net5:
			C[i]='0.0.8.0/24'
		if w in net6:
			C[i]='0.0.9.0/24'
	if shuffle:
		x=range(l)
		shuffle(x)
		E=int((99.0/100.0)*l)
		ind=x[0:E]
		C = del_indices(C,ind)
		lIP= del_indices(lIP,ind)
	dic=list2dic(C,[str(xx) for xx in lIP])
	return dic.values()
Example #2
0
def uos2bracket(uos):
	l=len(uos)
	br=[]
	lb=[]
	for i,w in enumerate(uos):
		if w=='':continue
		subs=[xx.strip(' ') for xx in w.split('U')]
		for v in subs:
			br.append([subnet(v).first(),subnet(v).last()])
			lb.append(str(i))
	return [br,lb]
Example #3
0
def bracket2sub(bracket,a1,b1,g):
	gi=int(g.strip('/'))
	# all IPs should be in form of strings
	out=''
	if a1 is None:
		a=-1
	else:
		a=int(ix.ip_address(unicode(a1)))
	if b1 is None:
		b=2**33
	else:
		b=int(ix.ip_address(unicode(b1)))
	sub,pl=commonPrefix(bracket)
	rootsub=subnet(sub)
	re=ipClass(rootsub.first()).int()
	le=ipClass(rootsub.last()).int()
	root=ix.ip_network(unicode(sub))
	if ((re <= a) or (le >= b)):
		if pl < gi :
			L,R=rootsub.split()
			brL=[L.first(),L.last()]
			brR=[R.first(),R.last()]
			out=(out+' U '+bracket2sub(brL,a1,b1,g)).strip('U ')
			out=(out+' U '+bracket2sub(brR,a1,b1,g)).strip('U ')
		else:
			return out
	else:
		return rootsub.string()
	out=out.strip('U ')
	return out
Example #4
0
def growSub(br,g='/24'):
	if br is None:
		return None
	ll=len(br)
	brr=[['0.0.0.0','0.0.0.0']]*ll
	for i,w in enumerate(br):
		temp=list(w)
		pref,l=commonPrefix(w)
		if l <= int(g.strip('/')):
			brr[i]=w
		else:
			subg=subnet(pref)
			while (l > int(g.strip('/'))):
				subg=subg.grow()
				l=l-1
				net=ix.ip_network(unicode(subg.string()))
				if (ll==1):
					temp=[subg.first(),subg.last()]
				elif (i==0 and (ix.ip_address(unicode(ipClass(br[i+1][0]).first(g))) not in net)):
					temp=[subg.first(),subg.last()]
				elif(i==(ll-1) and (ix.ip_address(unicode(ipClass(br[i-1][1]).last(g))) not in net)):
					temp=[subg.first(),subg.last()]
				elif ((ix.ip_address(unicode(ipClass(br[i-1][1]).last(g))) not in net) and (ix.ip_address(unicode(ipClass(br[i+1][0]).first(g))) not in net)):
					temp=[subg.first(),subg.last()]
				else : break				
				brr[i]=temp
	return brr
Example #5
0
	def prev(self,slash='/32'):
		subString=str(ix.ip_address(int(self.prefix(int(slash.strip('/'))),2)))
		ipSub=subnet(subString+slash)
		first_ip=ipSub.first()
		if first_ip=='0.0.0.0':
			return None
		prev_ip=str(ix.ip_address((int(ix.ip_address(unicode(first_ip)))-1)))
		return prev_ip
Example #6
0
	def next(self,slash='/32'):
		subString=str(ix.ip_address(int(self.prefix(int(slash.strip('/'))),2)))
		ipSub=subnet(subString+slash)
		last_ip=ipSub.last()
		if last_ip=='255.255.255.255':
			return None
		next_ip=str(ix.ip_address((int(ix.ip_address(unicode(last_ip)))+1)))
		return next_ip
Example #7
0
def tidosmain():
    while True:
        try:
            main = raw_input(''+M+'                                    ' + color.BOLD + 'TID :>  ' + color.END)
            if main == "info":
		print ""+O+color.BOLD+"                    [!] Collecting info about your network..."
		time.sleep(0.5)
		print ""+G+color.BOLD+"                    [*] Info collected... Preparing results..."+color.END
		time.sleep(1)         
                info()
	    elif main == "geoip":
		time.sleep(0.5)
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
		geoIP()
	    elif main == "subdom":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
		subdom()
	    elif main == "grabhead":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
		grabhead()
	    elif main == "subnet":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
		subnet()
	    elif main == "dnschk":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
		dnschk()
	    elif main == "nmap":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
		nmapmain()
	    elif main == "pglink":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
		links()
	    elif main == "revip":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
		revip()
            elif main == "help":
                print ""+O+color.BOLD+"                      +================================================================+"
                print ""+C+color.BOLD+"                                                  ╦ ╦╔═╗╦  ╔═╗"
                print ""+C+color.BOLD+"                                                  ╠═╣║╣ ║  ╠═╝"
                print ""+C+color.BOLD+"                                                  ╩ ╩╚═╝╩═╝╩  "
                print ""+O+color.BOLD+"                      +================================================================+"
                time.sleep(0.2)
                print ""+C+color.BOLD+"                         [1] help "+GR+"- Displays this help message"
                time.sleep(0.05)
                print ""+P+color.BOLD+"                         [2] banner "+GR+"- Prints a new banner"
                time.sleep(0.05)                
                print ""+G+color.BOLD+"                         [3] cls "+GR+"- Clears the screen"
                time.sleep(0.05)
                print ""+R+color.BOLD+"                         [4] info "+GR+"- Displays information about your Network"
                time.sleep(0.05)
                print ""+C+color.BOLD+"                         [5] piweb "+GR+"- Pings a website"
		time.sleep(0.05)
		print ""+M+color.BOLD+"                         [6] grabhead"+GR+" - Grabs the HTTP Headers of a Website"
		time.sleep(0.05)
		print ""+T+color.BOLD+"                         [7] whois"+GR+" - Get WHOIS info of a website"
		time.sleep(0.05)
		print ""+P+color.BOLD+"                         [8] revip"+GR+" - Do a Reverse IP LookUP of a Website"
		time.sleep(0.05)
		print ""+M+color.BOLD+"                         [9] revdns"+GR+" - Does a Reverse DNS LookUP of Website"
		time.sleep(0.05)
		print ""+R+color.BOLD+"                         [10] geoip"+GR+" - Does a GeoIP Lookup of the website"
		time.sleep(0.05)
		print ""+C+color.BOLD+"                         [11] subdom"+GR+" - Launches the Sub-Domain scanner"
		time.sleep(0.05)
		print ""+G+color.BOLD+"                         [12] subnet"+GR+" - Does a SubNet Scan of a Website"
		time.sleep(0.05)
		print ""+P+color.BOLD+"                         [13] dnschk"+GR+" - Starts up a DNS LookUP of a Website"
		time.sleep(0.05)
                print ""+B+color.BOLD+"                         [14] gsearch"+GR+" - Search Google for a DORK or a Query"
                time.sleep(0.05)
		print ""+O+color.BOLD+"                         [15] pglink"+GR+" - Dumps a list of the links with Website"
		time.sleep(0.05)
		print ""+C+color.BOLD+"                         [16] adminpnl"+GR+" - Hunt for the Admin Panel of a Website"
		time.sleep(0.05)
		print ""+B+color.BOLD+"                         [17] clikjak"+GR+" - Test a website for clickjackabilities"
		time.sleep(0.05)
		print ""+O+color.BOLD+"                         [18] honeypot"+GR+" - Test whether a IP is a honeypot"
		time.sleep(0.05)
		print ""+R+color.BOLD+"                         [19] zonetrans"+GR+" - Test a Web for ZoneTransfer Vulerability"
		time.sleep(0.05)
		print ""+G+color.BOLD+"                         [20] nmap"+GR+" - For Advanced Reconnaissance on a Website" 
		time.sleep(0.05)
                print ""+C+color.BOLD+"                         [21] fl00d"+GR+" - Flood a website at the UDP level dead"
                time.sleep(0.05)
                print ""+R+color.BOLD+"                         [22] exit"+GR+" - Quits this tool "
                time.sleep(0.05)
                print ""+P+color.BOLD+"                         [23] contact"+GR+" - Contact me for queries :)"
                time.sleep(0.05)
                print ""+O+color.BOLD+"                      +=================================================================+"
            elif main == "zonetrans":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
                zone()
            elif main == "honeypot":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
                honeypot()
            elif main == "adminpnl":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
                adminpanel()
            elif main == "clikjak":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
                clickjack()
            elif main == "fl00d":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
                UDoS()
	    elif main == "whois":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
		whoischeckup()
            elif main == "gsearch":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
                googleSearch()
	    elif main == "revdns":
		print ""+P+color.BOLD+"                    [!] Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                    [*] Launching module..."+color.END
		time.sleep(1)
		revdns()
            elif main == "contact":
                print(''+O+color.BOLD+'                 +=====================================================================+' + color.END)
                print(''+T+color.BOLD+'                                      ╔═╗╔═╗╔╗╔╔╦╗╔═╗╔═╗╔╦╗  ╔╦╗╔═╗')
                time.sleep(0.1)
                print(''+T+color.BOLD+'                                      ║  ║ ║║║║ ║ ╠═╣║   ║   ║║║║╣ ')
                time.sleep(0.1)
                print(''+T+color.BOLD+'                                      ╚═╝╚═╝╝╚╝ ╩ ╩ ╩╚═╝ ╩   ╩ ╩╚═╝')
                time.sleep(0.1)
                print(''+O+color.BOLD+'                 +=====================================================================+' + color.END)
                print(''+T+color.BOLD+'                          Facebook :>'+GR+'' + color.BOLD + ' https://www.facebook.com/pinaxx.robinson' + color.END)
                time.sleep(0.3)
                print(''+T+color.BOLD+'                          Instagram :>'+GR+'' + color.BOLD + ' @tID - www.instagram.com/the_infected_drake'+color.END)
                time.sleep(0.3)
                print(''+T+color.BOLD+'                          Email me :>'+GR+'' + color.BOLD + ' [email protected]' + color.END)
                print(''+O+color.BOLD+'                 +=====================================================================+' + color.END)
            elif main == "piweb":
                piweb()
            elif main == "banner":
                print (""+C+color.BOLD+"                                   ╔╗╔╔═╗╦ ╦  ╔╗ ╔═╗╔╗╔╔╗╔╔═╗╦═╗")
                time.sleep(0.1)
                print (""+C+color.BOLD+"                                   ║║║║╣ ║║║  ╠╩╗╠═╣║║║║║║║╣ ╠╦╝")
                time.sleep(0.1)
                print (""+C+color.BOLD+"                                   ╝╚╝╚═╝╚╩╝  ╚═╝╩ ╩╝╚╝╝╚╝╚═╝╩╚═")
                time.sleep(0.5)
                os.system('clear')
                banner()
                banner1()
            elif main == "cls":
                time.sleep(0.1)
                print (""+C+color.BOLD+"                                ╔═╗╦  ╔═╗╔═╗╦═╗  ╔═╗╔═╗╦═╗╔═╗╔═╗╔╗╔")
                time.sleep(0.1)
                print (""+C+color.BOLD+"                                ║  ║  ║╣ ╠═╣╠╦╝  ╚═╗║  ╠╦╝║╣ ║╣ ║║║")
                time.sleep(0.1)
                print (""+C+"                                ╚═╝╩═╝╚═╝╩ ╩╩╚═  ╚═╝╚═╝╩╚═╚═╝╚═╝╝╚╝")
                time.sleep(0.5)
                os.system('clear')
            elif main == "exit":
                print (''+O+'                   +==============================================================+' + color.END)
                print (""+C+color.BOLD+"                                          ╔═╗ ╦ ╦╦╔╦╗")
                time.sleep(0.1)
                print (""+C+color.BOLD+"                                          ║═╬╗║ ║║ ║")
                time.sleep(0.1) 
                print (""+C+color.BOLD+"                                          ╚═╝╚╚═╝╩ ╩" + color.END)
                time.sleep(0.1)
                print(''+O+color.BOLD+'                    +==============================================================+' + color.END)
                print (""+R+color.BOLD+"                                         [*] \033[91m" + "Exiting..." + color.END)
                time.sleep(0.3)
                print (""+GR+color.BOLD+"                                [*] " + "Remember the Infected Drake" + color.END)
                time.sleep(0.3)
                print (""+O+color.BOLD+"                                        [*] " + "GoodBye... ^_^" + color.END)
                time.sleep(0.3)
                print (''+O+color.BOLD+'                    +==============================================================+' + color.END)
                sys.exit()
            elif main == "":
                print (""+R+"                             [!] " + color.UNDERLINE + "\033[91m" + "Enter an option properly..." + color.END)
	    elif main == "1": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "2": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "3": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "4": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "5": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "6": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "7": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "8": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "9": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "10": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "11": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "12": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "13": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "14": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "15": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "16": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "17": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "18": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "19": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "20": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
	    elif main == "21": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
            else:
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the corresponding keyword..."+color.END)
        except KeyboardInterrupt:
                print (""+R+"\n                             [!] " + color.UNDERLINE + "\033[91m" + " Use 'exit' to close the tool!" + color.END)
                tidosmain()
Example #8
0
def activeo(web):

    print " [!] Module Selected : Active Reconnaissance\n\n"
    activeban()
    print ''
    time.sleep(0.3)
    v = raw_input('' + GR + '  [#] \033[1;4mTID\033[0m' + GR + ' :> ' +
                  color.END)
    print ''
    if v.strip() == '1':
        print C + ' [!] Type Selected : Ping/NPing Enumeration'
        piwebenum(web)
        print '\n\n'
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        activeo(web)

    elif v.strip() == '2':
        print C + ' [!] Type Selected : Grab HTTP Headers'
        grabhead(web)
        print '\n\n'
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        activeo(web)

    elif v.strip() == '3':
        print C + ' [!] Type Selected : HTTP Allowed Methods'
        httpmethods(web)
        print '\n\n'
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        activeo(web)

    elif v.strip() == '4':
        print C + ' [!] Type Selected : robots.txt and sitemap.xml Hunt'
        robot(web)
        print '\n\n'
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        activeo(web)

    elif v.strip() == '5':
        print C + ' [!] Type Selected : Subnet Enumeration'
        subnet(web)
        print '\n\n'
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        activeo(web)

    elif v.strip() == '6':
        print C + ' [!] Type Selected ' + B + ': Traceroute'
        traceroute(web)
        print '\n\n'
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        activeo(web)

    elif v.strip() == '7':
        print C + ' [!] Type Selected : DNS Hosts'
        sharedns(web)
        print '\n\n'
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        activeo(web)

    elif v.strip() == '8':
        print C + ' [!] Type Selected : SSL Certificate'
        sslcert(web)
        print '\n\n'
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        activeo(web)

    elif v.strip() == '9':
        print C + ' [!] Type Selected : CMS Detection'
        cms(web)
        print '\n\n'
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        activeo(web)

    elif v.strip() == '10':
        print C + ' [!] Type Selected : Server Detection'
        serverdetect(web)
        print '\n\n'
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        activeo(web)

    elif v.strip() == '11':
        print C + ' [!] Type Selected : Operating System Fingerprinting'
        osdetect(web)
        print '\n\n'
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        activeo(web)

    elif v.strip() == 'A':
        print C + ' [!] Type Selected : All Modules'
        time.sleep(0.5)
        print C + ' [*] Firing up module -->' + B + ' Ping Enum'
        piwebenum(web)
        print C + ' [!] Module Completed -->' + B + ' PIng\n'

        time.sleep(1)
        print C + ' [*] Firing up module -->' + B + ' Grab Headers'
        grabhead(web)
        print C + '\n [!] Module Completed -->' + B + ' Grabhead\n'

        time.sleep(1)
        print C + ' [*] Firing up module -->' + B + ' Robots.txt Hunter'
        robot(web)
        print C + '\n [!] Module Completed -->' + B + ' Robot Hunter\n'
        time.sleep(1)

        print C + ' [*] Firing up module -->' + B + ' Subnet Enumeration'
        subnet(web)
        print C + '\n [!] Module Completed -->' + B + ' Subnet Enumeration\n'
        time.sleep(1)

        print C + ' [*] Firing up module -->' + B + ' Traceroute'
        traceroute(web)
        print C + '\n [!] Module Completed -->' + B + ' Traceroute\n'
        time.sleep(1)

        print C + ' [*] Firing up module -->' + B + ' Shared DNS Servers'
        sharedns(web)
        print C + '\n [!] Module Completed -->' + B + ' Shared DNS Servers\n'
        time.sleep(1)

        print C + ' [*] Firing up module -->' + B + ' SSl Certificate Info'
        sslcert(web)
        print C + '\n [!] Module Completed -->' + B + ' SSl Cert\n'
        time.sleep(1)

        print C + ' [*] Firing up module -->' + B + ' CMS Detection'
        cms(web)
        print C + '\n [!] Module Completed -->' + B + ' CMS Detect\n'
        time.sleep(1)

        print C + ' [*] Firing up module -->' + B + ' Server Detection'
        serverdetect(web)
        print C + '\n [!] Module Completed -->' + B + ' Server Detect\n'
        time.sleep(1)

        print C + ' [*] Firing up module -->' + B + ' OS Fingerprinting'
        osdetect(web)
        print C + '\n [!] Module Completed -->' + B + ' OS Detect\n'
        time.sleep(1)

        print C + '\n [!] All scantypes have been tested on target...'
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        print C + ' [*] Going back to menu...'
        time.sleep(3)
        os.system('clear')
        footprintban1()
        footprint(web)

    elif v.strip() == '99':
        print C + ' [*] Back to the menu !'
        os.system('clear')
        footprintban1()
        footprint(web)

    else:
        dope = [
            'You high dude?', 'Shit! Enter a valid option',
            'Whoops! Thats not an option', 'Sorry! You just typed shit'
        ]
        print dope[randint(0, 3)]
        time.sleep(0.7)
        os.system('clear')
        activeo(web)
Example #9
0
def cluster2sub(C,g_in='/24',g_out=None):
	if g_out is None:
		g_out=g_in
	#C is a list of lists, each item being a cluster
	labels1=[[str(i)]*len(w) for i,w in enumerate(C)]
	labels=flatten(labels1)
	V=flatten(C)
	N1,pN = commonPrefix(V) #tentative
	N=subnet(N1) #tentative
	br,lb=bracketIP(V,labels,g_in)
	br=growSub(br,g_out)
	sub1=['0']*len(br)
	sub=['0']*len(set(lb))
	for i,w in enumerate(br):
		abr=ipClass(w[0])
		bbr=ipClass(w[1])
		a1=abr.prev(g_out)
		b1=bbr.next(g_out)
		if i==0:
			a_p = ipClass(N.first()).prev('/32') #tentative
		else :
			a_p = br[i-1][1]
		if i==len(br)-1:
			b_n = ipClass(N.last()).next('/32') #tentative
		else:
			b_n = br[i+1][0]
		if ((a1 is not None) and (a_p is not None)):
			if ipClass(a1).int() > ipClass(a_p).int() :
				a = a1
			else:
				a = a_p
		elif ((a1 is None) and (a_p is not None)):
			a=a_p
		elif ((a1 is not None) and (a_p is None)):
			a=a1
		else:
			a=None
		if ((b1 is not None) and (b_n is not None)):
			if ipClass(b1).int() > ipClass(b_n).int() :
				b = b_n
			else :
				b = b1
		elif ((b1 is None) and (b_n is not None)):
			b=b_n
		elif ((b1 is not None) and (b_n is None)):
			b=b1
		else:
			b=None
		sub1[i]=bracket2sub(w,a,b,g_out)
	dic=list2dic(lb,sub1)
	fl=['0']*len(dic.keys())
	for i,w in enumerate(dic.keys()):
		temp1=list(dic[w])
		to_del=[]
		for j in range(len(temp1)):
			if temp1[j].find('/')==-1:
				to_del.append(j)
		temp1=del_indices(temp1,to_del)
		sub[i]=' U '.join(temp1)
		fl[i]=w
	fl,sub=order(fl,sub)
	return sub
Example #10
0
from ipClass import *
from subnet import *
import pylab as pl
import numpy as num
from ipCluster import *
if __name__=='__main__':
	lse=[]
	lsb=[]
	oo=[]
	with open('Inputs/comcast','r') as f:
		st=f.read()
	ip=st.split(',')
	for xx in ip:
		a=subnet(xx.strip())
		aa=ipClass(a.first())
		az=ipClass(a.last())
		lse.append(az.int())
		lsb.append(aa.int())
	b=sorted(lsb)
	e=sorted(lse)
	l=len(b)
	clus=[('0','0')]*l
	state_end=-1
	state_beg=-1
	for i,st in enumerate(b):
		if i==l-1:
			pass
		if e[i]>state_end and st> state_beg:
			state_end=e[i]
			state_beg=st
			clus[i][0]=st
Example #11
0
def passiveo(web):

    print(" [!] Module Selected : Passive Reconnaissance\n")
    passiveban()
    v = raw_input('' + GR + '  [#] \033[1;4mTID\033[0m' + GR + ' :> ' +
                  color.END)
    print('\n\n')
    if v.strip() == '1':
        print(C + ' [!] Type Selected ' + B + ': Ping Check')
        piweb(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '2':
        print(C + ' [!] Type Selected ' + B + ': WhoIS Checkup')
        whoischeckup(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '3':
        print(C + ' [!] Type Selected ' + B + ': GeoIP Lookup')
        getgeoip(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '4':
        print(C + ' [!] Type Selected ' + B + ': DNS Lookup')
        dnschk(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '5':
        print(C + ' [!] Type Selected ' + B + ': Subdomain Scan')
        subdom(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '6':
        print(C + ' [!] Type Selected ' + B + ': Reverse DNS Lookup')
        revdns(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '7':
        print(C + ' [!] Type Selected : Subnet Enumeration')
        subnet(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '8':
        print(C + ' [!] Type Selected ' + B + ': Reverse IP Lookup')
        revip(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '9':
        print(C + ' [!] Type Selected ' + B + ': IP History')
        iphistory(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '10':
        print(C + ' [!] Type Selected ' + B + ': Page Links')
        links(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '11':
        print(C + ' [!] Type Selected ' + B + ': Google Search')
        googleSearch()
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '12':
        print(C + ' [!] Type Selected ' + B + ': Google Dorker')
        googledorker(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '13':
        print(C + ' [!] Type Selected ' + B + ': Wayback Machine')
        webarchive(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '14':
        print(C + ' [!] Type Selected ' + B + ': Hacked Email Check')
        hackedmail()
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '15':
        print(C + ' [!] Type Selected ' + B + ': Mail to Domain')
        mailtodom()
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '16':
        print(C + ' [!] Type Selected ' + B + ': Google Groups Enum')
        googlegroups(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '17':
        print(C + ' [!] Type Selected ' + B + ': Check Username')
        checkuser(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '18':
        print(C + ' [!] Type Selected ' + B + ': PasteBin Posts')
        pastebin(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '19':
        print(C + ' [!] Type Selected ' + B + ': LinkedIn Gathering')
        linkedin(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '20':
        print(C + ' [!] Type Selected ' + B + ': Google Plus Gathering')
        googlenum(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '21':
        print(C + ' [!] Type Selected ' + B + ': Public Contact Info')
        getconinfo(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '22':
        print(C + ' [!] Type Selected ' + B + ': CENSYS Gathering')
        censysdom(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '23':
        print(C + ' [!] Type Selected ' + B + ': Threat Intel Gathering')
        threatintel(web)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        passiveo(web)

    elif v.strip() == '99':
        print(C + ' [*] Back!')
        time.sleep(0.7)
        os.system('clear')

    elif v.strip() == 'A':
        print(C + ' [!] Type Selected ' + B + ': All Modules\n')
        time.sleep(0.5)

        print(C + ' [*] Firing up module -->' + O + ' Ping Check')
        piweb(web)
        print(C + '\n [!] Module Completed -->' + O + ' Piweb\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' WHOIS ')
        whoischeckup(web)
        print(C + '\n [!] Module Completed -->' + O + ' WHOIS\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' GeoIP Lookup ')
        getgeoip(web)
        print(C + '\n [!] Module Completed -->' + O + ' GeoIP\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' DNS Enumeration ')
        dnschk(web)
        print(C + '\n [!] Module Completed -->' + O + ' DNS Enum\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' Subdomain Scan ')
        subdom(web)
        print(C + '\n [!] Module Completed -->' + O + ' Subdom\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' Subnet Calc. ')
        subnet(web)
        print(C + '\n [!] Module Completed -->' + O + ' Subnet Calculation\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' Reverse DNS Lookup ')
        revdns(web)
        print(C + '\n [!] Module Completed -->' + O + ' RevDNS\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' IP History Lookup ')
        iphistory(web)
        print(C + '\n [!] Module Completed -->' + O + ' RevIP\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' Reverse IP Lookup ')
        revip(web)
        print(C + '\n [!] Module Completed -->' + O + ' RevIP\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' Web Links ')
        links(web)
        print(C + '\n [!] Module Completed -->' + O + ' Web Links\n')
        time.sleep(1)

        print(C + ' [!] Firing up module -->' + O + ' Google Search')
        googleSearch()
        print(C + '\n [!] Module Completed -->' + O + ' GSearch\n')
        time.sleep(1)

        print(C + ' [!] Firing up module -->' + O + ' WayBack Machine')
        webarchive(web)
        print(C + '\n [!] Module Completed -->' + O + ' WayBack Machine\n')
        time.sleep(1)

        print(C + ' [!] Firing up module -->' + O + ' Hacked Email Checker')
        hackedmail()
        print(C + '\n [!] Module Completed -->' + O + ' Hacked Email\n')
        time.sleep(1)

        print(C + ' [!] Firing up module -->' + O + ' Mail to Domain')
        mailtodom()
        print(C + '\n [!] Module Completed -->' + O + ' Mail to Domain\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' Google Groups Enum')
        googlegroups(web)
        print(C + '\n [!] Module Completed -->' + O + ' GGroups\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' Check Username')
        checkuser(web)
        print(C + '\n [!] Module Completed -->' + O + ' Username\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' LinkedIn gathering')
        linkedin(web)
        print(C + '\n [!] Module Completed -->' + O + ' LinkedIn\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' Pastebin Posts')
        pastebin(web)
        print(C + '\n [!] Module Completed -->' + O + ' Pastebin\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' Google Plus Gathering')
        googlenum(web)
        print(C + '\n [!] Module Completed -->' + O +
              ' Google Plus Gathering\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' Google Dorker')
        googledorker(web)
        print(C + '\n [!] Module Completed -->' + O + ' GDorker\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' Public Contact Info')
        getconinfo(web)
        print(C + '\n [!] Module Completed -->' + O + ' Public Contact info\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' Gathering via CENSYS')
        censysdom(web)
        print(C + '\n [!] Module Completed -->' + O + ' CENSYS Gathering\n')
        time.sleep(1)

        print(C + ' [*] Firing up module -->' + O + ' Threat Intelligence')
        threatintel(web)
        print(C + '\n [!] Module Completed -->' + O + ' Threat Intelligence\n')
        time.sleep(1)

        print(G + ' [+] All modules successfully completed!')
        time.sleep(3)
        raw_input(O + ' [#] Press ' + GR + 'Enter' + O + ' to continue...')
        print(GR + ' [*] Going back...')
        os.system('clear')
        passiveo(web)

    else:
        dope = [
            'You high dude?', 'Shit! Enter a valid option',
            'Whoops! Thats not an option', 'Sorry! You just typed shit'
        ]
        print(C + '\n [!] ' + dope[randint(0, 3)])
        os.system('clear')
        passiveo(web)
Example #12
0
def prefix_break(P):
	# P is list of prefixes
	S=[(ipClass(subnet(xx).first()).int(),0) for xx in list(set(P))]
	E=[(ipClass(subnet(xx).last()).int(),1) for xx in list(set(P))]
	A=sorted(S+E)
	ipx,fg=zip(*A)
	ipB=[]
	q=list2Queue(list(ipx),list(fg))
	j=-1
	ns=0
	while not q.empty():
		j=j+1
		x=q.get()
		if j==0:
			S=x[-1]
			a=x[0]
			l=x[1]
			ns=ns+l
			j=j+1
			continue
		Sn=x[-1]
		an=x[0]
		l=x[1]
		if S==0 and Sn==0:
			ipB.append([a,an-1])
			ns=ns+l
			a=an
		elif S==0 and Sn==1:
			ipB.append([a,an])
			ns=ns-l
			if ns>0:
				a=an+1
			else:
				a=None
			S=Sn
		elif S==1 and Sn==1:
			ipB.append([a,an])
			ns=ns-l
			if ns>0 :
				a=an+1
			else:
				a=None
		else:
			if ns > 0:
				if a is None :
					print 'ip Break code has a bug:Report'
				else:
					ipB.append([a,an-1])
					a=an
					ns=ns+l
			else:
				ns=ns+l
				a=an
			S=0
	ipR=[]
	for w in ipB:
		b1=ipClass(w[0]).string()
		b2=ipClass(w[1]).string()
		bw=[b1,b2]
		if w[0]==0:
			a=None
		else:
			a=ipClass(w[0]-1).string()
		if w[1]==2*32-1:
			b=None
		else:
			b=ipClass(w[1]+1).string()
		ipR=ipR+[xx.strip() for xx in bracket2sub(bw,a,b,'/24').split('U')]
	return ipR
Example #13
0
def tidosmain():
    while True:
        try:
            main = raw_input(''+M+'                                    ' + color.BOLD + 'TID :>  ' + color.END)
            if main == "info":
		print ""+O+color.BOLD+"                       Collecting info about your network..."
		time.sleep(0.5)
		print ""+G+color.BOLD+"                    Info collected... Preparing results..."+color.END
		time.sleep(1)         
                info()
	    elif main == "geoip":
		time.sleep(0.5)
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.4)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
		geoIP()
            elif main == "webex":
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
                webex()
	    elif main == "subdom":
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
		subdom()
	    elif main == "grabhead":
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
		grabhead()
	    elif main == "subnet":
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
		subnet()
	    elif main == "dnschk":
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
		dnschk()
	    elif main == "nmap":
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
		nmap()
	    elif main == "pglink":
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
		links()
	    elif main == "nping":
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
		nping()
	    elif main == "revip":
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
		revip()
            elif main == "help":
                print ""+O+color.BOLD+"                      +================================================================+"
                print ""+C+color.BOLD+"                                                  ╦ ╦╔═╗╦  ╔═╗"
                print ""+C+color.BOLD+"                                                  ╠═╣║╣ ║  ╠═╝"
                print ""+C+color.BOLD+"                                                  ╩ ╩╚═╝╩═╝╩  "
                print ""+O+color.BOLD+"                      +================================================================+"
                time.sleep(0.2)
                print ""+C+color.BOLD+"                          [1] help "+GR+"- Displays this help message"
                time.sleep(0.05)
                print ""+P+color.BOLD+"                          [2] banner "+GR+"- Prints a new banner"
                time.sleep(0.05)                
                print ""+G+color.BOLD+"                          [3] cls "+GR+"- Clears the screen"
                time.sleep(0.05)
                print ""+T+color.BOLD+"                          [4] info "+GR+"- Displays information about your Network"
                time.sleep(0.05)
                print ""+C+color.BOLD+"                          [5] piweb "+GR+"- Pings a website"
                time.sleep(0.205)
		print ""+R+color.BOLD+"                          [6] nping"+GR+" - Perform a nPing(NMap-Ping) on a Website"
		time.sleep(0.05)             
                print ""+T+color.BOLD+"                          [7] webex"+GR+" - Check whether a website exists or not"
                time.sleep(0.05)
		print ""+M+color.BOLD+"                          [8] grabhead"+GR+" - Grabs the HTTP Headers of a Website"
		time.sleep(0.05)
		print ""+B+color.BOLD+"                          [9[ trace"+GR+" - Use MTR for Advanced TraceRoute of Web"
		time.sleep(0.05)
		print ""+T+color.BOLD+"                          [10] whois"+GR+" - Get WHOIS info of a website"
		time.sleep(0.05)
		print ""+P+color.BOLD+"                          [11] revip"+GR+" - Do a Reverse IP LookUP of a Website"
		time.sleep(0.05)
		print ""+M+color.BOLD+"                          [13] revdns"+GR+" - Does a Reverse DNS LookUP of Website"
		time.sleep(0.05)
		print ""+R+color.BOLD+"                          [12] geoip"+GR+" - Does a GeoIP Lookup of the website"
		time.sleep(0.05)
		print ""+C+color.BOLD+"                          [13] subdom"+GR+" - Launches the Sub-Domain scanner"
		time.sleep(0.05)
		print ""+G+color.BOLD+"                          [14] subnet"+GR+" - Does a SubNet Scan of a Website"
		time.sleep(0.05)
		print ""+P+color.BOLD+"                          [15] dnschk"+GR+" - Starts up a DNS LookUP of a Website"
		time.sleep(0.05)
                print ""+B+color.BOLD+"                          [16] gsearch"+GR+" - Search Google about a Website"
                time.sleep(0.05)
		print ""+C+color.BOLD+"                          [17] pglink"+GR+" - Dumps a list of the links with Website"
		time.sleep(0.05)
		print ""+G+color.BOLD+"                          [18] nmap"+GR+" - Shoots up NMap Port Scan on a Website" 
		time.sleep(0.05)
                print ""+O+color.BOLD+"                          [19] fl00d"+GR+" - Flood a website at the UDP level dead"
                time.sleep(0.05)		
                print ""+R+color.BOLD+"                          [20] exit"+GR+" - Quits this tool "
                time.sleep(0.05)
                print ""+M+color.BOLD+"                          [21] contact"+GR+" - Contact me for queries :)"
                time.sleep(0.05)
                print ""+O+color.BOLD+"                     +=================================================================+"
            elif main == "fl00d":
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
                UDoS()
	    elif main == "whois":
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
		whoischeckup()
	    elif main == "trace":
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
		trcrt()
            elif main == "gsearch":
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
                googleSearch()
	    elif main == "revdns":
		print ""+P+color.BOLD+"                      Preparing scripts about the info you requested..."+color.END
		time.sleep(0.3)
		print ""+G+color.BOLD+"                        Launching module..."+color.END
		time.sleep(1)
		revdns()
            elif main == "contact":
                print(''+O+color.BOLD+'                 +=====================================================================+' + color.END)
                print(''+T+color.BOLD+'                                      ╔═╗╔═╗╔╗╔╔╦╗╔═╗╔═╗╔╦╗  ╔╦╗╔═╗')
                time.sleep(0.1)
                print(''+T+color.BOLD+'                                      ║  ║ ║║║║ ║ ╠═╣║   ║   ║║║║╣ ')
                time.sleep(0.1)
                print(''+T+color.BOLD+'                                      ╚═╝╚═╝╝╚╝ ╩ ╩ ╩╚═╝ ╩   ╩ ╩╚═╝')
                time.sleep(0.1)
                print(''+O+color.BOLD+'                 +=====================================================================+' + color.END)
                print(''+T+color.BOLD+'                          Facebook :>'+GR+'' + color.BOLD + ' https://www.facebook.com/pinaxx.robinson' + color.END)
                time.sleep(0.3)
                print(''+T+color.BOLD+'                          Instagram :>'+GR+'' + color.BOLD + ' @tID - www.instagram.com/the_infected_drake'+color.END)
                time.sleep(0.3)
                print(''+T+color.BOLD+'                          Email me :>'+GR+'' + color.BOLD + ' [email protected]' + color.END)
                print(''+O+color.BOLD+'                 +=====================================================================+' + color.END)
            elif main == "piweb":
                piweb()
            elif main == "banner":
                print (""+C+color.BOLD+"                                   ╔╗╔╔═╗╦ ╦  ╔╗ ╔═╗╔╗╔╔╗╔╔═╗╦═╗")
                time.sleep(0.1)
                print (""+C+color.BOLD+"                                   ║║║║╣ ║║║  ╠╩╗╠═╣║║║║║║║╣ ╠╦╝")
                time.sleep(0.1)
                print (""+C+color.BOLD+"                                   ╝╚╝╚═╝╚╩╝  ╚═╝╩ ╩╝╚╝╝╚╝╚═╝╩╚═")
                time.sleep(0.5)
                os.system('clear')
                banner()
                banner1()
            elif main == "cls":
                time.sleep(0.1)
                print (""+C+color.BOLD+"                                ╔═╗╦  ╔═╗╔═╗╦═╗  ╔═╗╔═╗╦═╗╔═╗╔═╗╔╗╔")
                time.sleep(0.1)
                print (""+C+color.BOLD+"                                ║  ║  ║╣ ╠═╣╠╦╝  ╚═╗║  ╠╦╝║╣ ║╣ ║║║")
                time.sleep(0.1)
                print (""+C+"                                ╚═╝╩═╝╚═╝╩ ╩╩╚═  ╚═╝╚═╝╩╚═╚═╝╚═╝╝╚╝")
                time.sleep(0.5)
                os.system('clear')
            elif main == "exit":
                print (''+O+'                   +==============================================================+' + color.END)
                print (""+C+color.BOLD+"                                          ╔═╗ ╦ ╦╦╔╦╗")
                time.sleep(0.1)
                print (""+C+color.BOLD+"                                          ║═╬╗║ ║║ ║")
                time.sleep(0.1) 
                print (""+C+color.BOLD+"                                          ╚═╝╚╚═╝╩ ╩" + color.END)
                time.sleep(0.1)
                print(''+O+color.BOLD+'                    +==============================================================+' + color.END)
                print (""+M+color.BOLD+"                                         [*] \033[91m" + "Exiting..." + color.END)
                time.sleep(0.3)
                print (""+GR+color.BOLD+"                                [*] " + "Remember the Infected Drake" + color.END)
                time.sleep(0.3)
                print (""+O+color.BOLD+"                                        [*] " + "GoodBye... ^_^" + color.END)
                time.sleep(0.3)
                print (''+O+color.BOLD+'                    +==============================================================+' + color.END)
                sys.exit()
            elif main == "":
                print (""+R+"                             [!] " + color.UNDERLINE + "\033[91m" + "Enter an option properly..." + color.END)
	    elif main == "1": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly...")
	    elif main == "2": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly...")
	    elif main == "3": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly...")
	    elif main == "4": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly...")
	    elif main == "5": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly...")
	    elif main == "6": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly...")
	    elif main == "7": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly...")
	    elif main == "8": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly...")
	    elif main == "9": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly")
	    elif main == "10": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly")
	    elif main == "11": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly")
	    elif main == "12": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly")
	    elif main == "13": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly")
	    elif main == "14": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly")
	    elif main == "15": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly")
	    elif main == "16": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly")
	    elif main == "17": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly")
	    elif main == "18": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly")
	    elif main == "19": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly")
	    elif main == "20": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly")
	    elif main == "21": 
		print (R+"                               [!] " + color.UNDERLINE + "\033[91m" + "Enter the keyword properly")
            else:
                print (""+R+"                              [!] " + color.UNDERLINE + "\033[91m" + "That is not an option! Type 'help'" + color.END)
        except KeyboardInterrupt:
                print (""+R+"                             [!] " + color.UNDERLINE + "\033[91m" + " Use 'exit' to close the tool!" + color.END)
                tidosmain()
Example #14
0
	def sub(self,g):
		l=int(g.split('/')[1])
		temp=int(self.prefix(l),2)
		ip=str(ix.ip_address(temp))
		return subnet(ip+g)
Example #15
0
	def last(self,slash='/32'):
		subString=str(ix.ip_address(int(self.prefix(int(slash.strip('/'))),2)))
		ipSub=subnet(subString+slash)
		last_ip=ipSub.last()
		return last_ip