Esempio n. 1
0
def start():
    # import
    from lib._fileSave import saved
    from requests import post
    import json
    from random import randint
    from lib.check import chost, flib
    host = raw_input(C + '[*]' + W + 'asm>[reverse_ip] Host: ')  # Target
    file = raw_input(C + '[*]' + W + 'asm>[reverse_ip] show File output?y/n '
                     )  # y = Save To File n = Show Recv
    dom = flib(host)  # Bad protocol [http:// https://]
    xdom = 'http://domains.yougetsignal.com/domains.php'
    if chost(dom) == True:  # Check For Host
        print '[*] Starting ... [*]'
        print '[*] host %s is Activ [*]' % dom
        print '[*] Please White ... [*]'
        try:
            rQx = post(xdom, {'remoteAddress': dom})  # Request Send
            print '[*] Request Send [*]'
            data = json.loads(rQx.text)  # Json Load
            sors = "\tSorgulanan Site = " + data["remoteAddress"] + '\n'
            tops = "\tToplam Site = " + data["domainCount"] + '\n'
            ipas = "******" + data["remoteIpAddress"] + '\n'
            reverse = str(sors + tops + ipas)  # All
            if (file == 'y' or file == 'Y'):  # Save To File
                rand = str(randint(0, 2000))
                fname = rand + 'reverseip_' + dom.replace(
                    '.', '_') + '.html'  # File Name
                fsave = saved(reverse, fname)
                for domain in (data["domainArray"]):
                    fsave = saved('\t' + domain[0] + '\n', fname)
                if (fsave == True):
                    print '[*] Saved To output/' + fname + ' success [*]'  # Save True
                elif (fsave == False):
                    print '[*] bad to saved file [*]'  # Save False
                else:
                    pass
            elif (file == 'n' or file == 'N'):  # Show Recv
                print
                print C + reverse
                for domain in (data["domainArray"]):
                    print(C + '\t' + domain[0])  # Show Data
                print
            else:
                print
                print C + reverse
                for domain in (data["domainArray"]):
                    print(C + '\t' + domain[0])  # Show Data
                print
            print W + '[+] End [+]'
        except:
            print '[-] oops error [-]'
            print W + '[+] End [+]'
            print GR + '[Type 98 to Back]' + W
            print GR + '[Type 99 to Exit]' + W
            print GR + '[Type 100 to options]' + W
    else:
        print R + '[-] oops Error(%s) occured; invalid URL [-]' % dom  # Error Host is Ofline or invalid url
        print W + '[*] END [*]'
        start()  # continue
Esempio n. 2
0
def start():
	# import
	from urllib import urlopen
	from random import randint
	from bs4 import BeautifulSoup
	from lib._fileSave import saved
	from lib.check import chost,flib
	host = raw_input(C+'[*]'+W+'asm>[reverse_mx] Host: ') # Target
	dom = flib(host) # Bad protocol [http:// https://]
	if chost(dom) == True: # Check For Host
		def psend(host):
			send = urlopen('http://www.viewdns.info/reversemx/?mx='+host).read() # Send Request
			bs = BeautifulSoup(send,'html.parser').find('font',face="Courier") # Parser Page
			return str(bs).replace('''<script class="stripe-button" data-amount="19900" data-currency="usd" data-description="Full report for 'google.com'" data-image="/images/ok.GIF" data-key="pk_live_ey9TT0KvaFQoLWRyDYg9oqQd" data-label="Download The Full Report for $199" data-name="" src="https://checkout.stripe.com/checkout.js"></script>''','')
		# try:
		print '[*] Starting ... [*]'
		print '[*] ip/host %s is Activ [*]'%dom
		print '[*] Please White ... [*]'
		rand = str(randint(0,2000))
		fname = rand+'reverse_mx_'+dom.replace('.','_')+'.html' # File Name
		recv = psend(dom)
		fsave = saved(recv,fname) # Save To File
		if(fsave==True):
			print '[*] Saved To output/'+fname+' success [*]' # Seve True
		elif(fsave==False):
			print '[*] bad to saved file [*]' # Save False
		else:
			pass
		print W+'[*] END [*]' # End process
		# except:
			# print '[-] oops error [-]'
	else:
		print R+'[-] oops Error(%s) occured; invalid URL [-]'%dom # Error Host is Ofline or invalid url
		print W+'[*] END [*]'
		start() # continue
Esempio n. 3
0
def start():
    # import
    from urllib import urlopen
    from lib._fileSave import saved
    from random import randint
    from lib.check import chost, flib
    import lib.builtwith
    import sys
    host = raw_input(C + '[*]' + W +
                     'asm>[frameworks_activ_web] Host: ')  # Target
    file = raw_input(C + '[*]' + W +
                     'asm>[frameworks_activ_web] show File output?y/n '
                     )  # y = Saved To File n = Show Recv
    dom = flib(host)  # Bad protocol [http:// https://]
    # # Check for Host
    if chost(dom) == True:
        # 	# Start
        print '[*] Starting ... [*]'
        print '[*] ip/host %s is Activ [*]' % dom
        print '[*] Please White ... [*]'
        # try:
        results = lib.builtwith.builtwith('http://' + dom)
        if (file == 'y' or file == 'Y'):  # file Save
            rand = str(randint(0, 2000))
            fname = rand + 'frameworks_activ_web_' + dom.replace(
                '.', '_') + '.html'  # File Name
            for result in sorted(results.items()):
                rQn = '\t%s: %s\n' % result
                fsave = saved(rQn, fname)  # Saved
            if (fsave == True):
                print '[*] Saved To output/' + fname + ' success [*]'  # File Save True
            elif (fsave == False):
                print '[*] bad to saved file [*]'  # File Not Save
            else:
                pass

        elif (file == 'n' or file == 'N'):  # Show Recv
            print
            for result in sorted(results.items()):
                rQn = '\t%s: %s' % result
                print C + rQn  # Show Recv
            print
        else:
            print
            for result in sorted(results.items()):
                rQn = '\t%s: %s' % result
                print C + rQn  # Show Recv
            print
        print W + '[*] END [*]'  # End Process
        print GR + '[Type 98 to Back]' + W
        print GR + '[Type 99 to Exit]' + W
        print GR + '[Type 100 to options]' + W
        # except:
        # Error
        # print '[-] oops error [-]'
    else:
        print R + '[-] oops Error(%s) occured; invalid URL [-]' % dom  # Error For Host
        print W + '[*] END [*]'
        start()  # Continue
Esempio n. 4
0
def start():
    # import
    from urllib import urlopen
    from lib._fileSave import saved
    from random import randint
    from lib.check import chost, flib
    host = raw_input(C + '[*]' + W + 'asm>[http_header] Host/ip: ')  # Target
    file = raw_input(C + '[*]' + W + 'asm>[http_header] show File output?y/n '
                     )  # y = Save To File n = show Recv
    dom = flib(host)  # Bad protocol [http:// https://]
    if chost(dom) == True:  # Check For Host
        print '[*] Starting ... [*]'
        print '[*] ip/host %s is Activ [*]' % dom
        print '[*] Please White ... [*]'
        try:
            rQx = urlopen('http://' + dom).headers.items()  # Send Request
            print '[*] Request Send [*]'
            if (file == 'y' or file == 'Y'):  # Save To File
                rand = str(randint(0, 2000))
                fname = rand + 'httpHeader_' + dom.replace(
                    '.', '_') + '.html'  # File Name
                for key, value in rQx:
                    response = '\t' + key + ' : ' + value + '\n'
                    fsave = saved(response, fname)
                if (fsave == True):
                    print '[*] Saved To output/' + fname + ' success [*]'  # Save File True
                elif (fsave == False):
                    print '[*] bad to saved file [*]'  # Save File False
                else:
                    pass
            elif (file == 'n' or file == 'N'):  # Show Recv
                print
                for x, r in rQx:
                    if x == 'set-cookie':
                        print '\t' + C + 'set-cookie' + ' : ' + ' . . .'
                        continue
                    print '\t' + C + x + ' : ' + r
                print
            else:
                print
                for x, r in rQx:
                    if x == 'set-cookie':
                        print '\t' + C + 'set-cookie' + ' : ' + ' . . .'
                        continue
                    print '\t' + C + x + ' : ' + r
                print
            print W + '[*] END [*]'  # End Process
            print GR + '[Type 98 to Back]' + W
            print GR + '[Type 99 to Exit]' + W
            print GR + '[Type 100 to options]' + W
        except:
            print '[-] oops error [-]'  # Error Null :(
    else:
        print R + '[-] oops Error(%s) occured; invalid URL [-]' % dom  # Error Host
        print W + '[*] END [*]'  # End Process
        start()  # Continue
Esempio n. 5
0
def start():
	# import
	from requests import get
	from socket import gethostbyname
	from random import randint
	from lib._fileSave import saved
	from lib.check import chost,flib
	host = raw_input(C+'[*]'+W+'asm>[ipapi] Host/ip: ') # Target
	file = raw_input(C+'[*]'+W+'asm>[ipapi] show File output?y/n ') # y = Save To File n = Show Recv
	dom = flib(host)
	if chost(dom) == True: # Check For Host
		print '[*] Starting ... [*]'
		print '[*] ip/host %s is Activ [*]'%dom
		print '[*] Please White ... [*]'
		url = gethostbyname(dom)
		xdom = 'https://ipapi.co/'+url+'/json';
		index = ['ip', 'city', 'region', 'country','country_name', 'postal','latitude', 'longitude', 'timezone', 'asn','org'] # Option
		usage = {'user-agent': 'ipapi/ipapi-python/0.5.1'} # User Agent
		try:
			rQx = get(xdom,headers=usage).json() # Request Send
			print '[*] Request Send [*]'
			if (file == 'y' or file == 'Y'):# Save To File
				rand =str(randint(0,2000))
				fname = '../../../output/'+rand+'ipapi_'+dom.replace('.','_')+'.html' # File Name
				for x in index:
					output = str(x)+' : '+str(rQx[x])+'\n'
					fsave = saved(output,fname)
				if(fsave==True):
					print '[*] Saved To output/'+fname+' success [*]' # Save True
				elif(fsave==False):
					print '[*] bad to saved file [*]' # Save False
				else:
					pass
			elif(file == 'n' or file == 'N'): # Show Recv
				print
				for x in index:
					output = C+str(x)+' : '+str(rQx[x])
					print '\t'+output
				print
			else:
				print
				for x in index:
					output = C+str(x)+' : '+str(rQx[x])
					print '\t'+output
				print
			print W+'[*] END [*]'# End Process
			print GR+'[Type 98 to Back]'+W
			print GR+'[Type 99 to Exit]'+W
			print GR+'[Type 100 to options]'+W
		except:
			print '[-] oops error [-]' # Error Null :(
	else:
		print R+'[-]'' oops Error(%s) occured; Server offline or invalid URL [-]'%dom # Error Host
		print W+'[*] END [*]'
		start() # Continue
Esempio n. 6
0
def start():
    # import
    from urllib import urlopen
    from bs4 import BeautifulSoup
    from lib._fileSave import saved
    from random import randint
    from lib.check import chost, flib
    host = raw_input(C + '[*]' + W + 'asm>[whois] Host/ip: ')  # Target
    file = raw_input(
        C + '[*]' + W +
        'asm>[whois] show File output?y/n ')  # y = Save To File n = Show Recv
    dom = flib(host)
    xdom = 'https://whois.com/whois/' + dom
    if chost(dom) == True:  # Check For Host
        print '[*] Starting ... [*]'
        print '[*] ip/host %s is Activ [*]' % dom
        print '[*] Please White ... [*]'
        try:
            rQx = urlopen(xdom).read()  # Send Request
            rQn = BeautifulSoup(rQx, 'html.parser')
            if (file == 'y' or file == 'Y'):
                rand = str(randint(0, 2000))
                fname = rand + 'whois_' + dom.replace(
                    '.', '_') + '.html'  # File Name
                fsave = saved(str(rQn.find('pre', id="registrarData")),
                              fname)  # Save To File
                if (fsave == True):
                    print '[*] Saved To output/' + fname + ' success [*]'  # Save True
                elif (fsave == False):
                    print '[*] bad to saved file [*]'  # Save False
                else:
                    pass
            elif (file == 'n' or file == 'N'):
                print
                print C + rQn.find('pre', id="registrarData").text  # Show Recv
                print
            else:
                print
                print '\t' + C + rQn.find('pre',
                                          id="registrarData").text  # Show Recv
                print

            print W + '[*] END [*]'  # End Process
            print GR + '[Type 98 to Back]' + W
            print GR + '[Type 99 to Exit]' + W
            print GR + '[Type 100 to options]' + W
        except:
            print '[-] oops error [-]'  # Error Null :(
    else:
        print R + '[-] oops Error(%s) occured; invalid URL [-]' % dom  # Error Host
        print W + '[*] END [*]'  # End Process
        start()  # Continue
Esempio n. 7
0
def start():
    # import
    from urllib import urlopen
    from lib._fileSave import saved
    from random import randint
    from lib.check import chost, flib
    host = raw_input(C + '[*]' + W +
                     'asm>[find_shared_dns] Host/ip: ')  # Target
    file = raw_input(C + '[*]' + W +
                     'asm>[find_shared_dns] show File output?y/n '
                     )  # y = Save To File n = Show Recv
    dom = flib(host)
    xdom = 'https://api.hackertarget.com/findshareddns/?q=' + dom
    if chost(dom) == True:  # Check For Host
        print '[*] Starting ... [*]'
        print '[*] ip/host %s is Activ [*]' % dom
        print '[*] Please White ... [*]'
        try:
            rQx = urlopen(xdom).read()  # Send Request
            print '[*] Request Send [*]'
            if (file == 'y' or file == 'Y'):
                rand = str(randint(0, 2000))
                fname = rand + 'find_shared_dns_' + dom.replace(
                    '.', '_') + '.html'  # File Name
                fsave = saved(rQx, fname)  # Save To File
                if (fsave == True):
                    print '[*] Saved To output/' + fname + ' success [*]'  # Save True
                elif (fsave == False):
                    print '[*] bad to saved file [*]'  # Save False
                else:
                    pass
            elif (file == 'n' or file == 'N'):
                print
                print C + rQx  # Show Recv
                print
            else:
                print
                print C + rQx  # Show Recv
                print
            print W + '[*] END [*]'  # End Process
            print GR + '[Type 98 to Back]' + W
            print GR + '[Type 99 to Exit]' + W
            print GR + '[Type 100 to options]' + W
        except:
            print '[-] oops error [-]'  # Error Null :(
    else:
        print R + '[-] oops Error(%s) occured; invalid URL [-]' % dom  # Error Host
        print W + '[*] END [*]'  # End Process
        start()  # Continue
Esempio n. 8
0
def start():
    # import
    from urllib import urlopen
    from lib._fileSave import saved
    from bs4 import BeautifulSoup
    from random import randint
    from lib.check import chost, flib
    host = raw_input(C + '[*]' + W + 'asm>[dns_report] Host/ip: ')  # Target
    dom = flib(host)
    if chost(dom) == True:  # Check For Host

        def psend(host):
            send = urllib.urlopen(
                'http://www.viewdns.info/dnsreport/?domain=' + host).read()
            bs = bs4.BeautifulSoup(send, 'html.parser').find('font',
                                                             face="Courier")
            return str(bs).replace('ViewDNS.info', '')

        try:
            print '[*] Starting ... [*]'
            print '[*] ip/host %s is Activ [*]' % dom
            print '[*] Please White ... [*]'
            rand = str(randint(0, 2000))
            fname = rand + 'dns_report_' + dom.replace(
                '.', '_') + '.html'  # File Name
            recv = psend(dom)
            fsave = saved(recv, fname)
            if (fsave == True):
                print '[*] Saved To output/' + fname + ' success [*]'
            elif (fsave == False):
                print '[*] bad to saved file [*]'
            else:
                pass
            print W + '[*] END [*]'
            print GR + '[Type 98 to Back]' + W
            print GR + '[Type 99 to Exit]' + W
            print GR + '[Type 100 to options]' + W
        except:
            print '[-] oops error [-]'  # Error null :(
    else:
        print R + '[-] oops Error(%s) occured; invalid URL [-]' % dom  # Error For Host
        print W + '[*] END [*]'  # End Process
        start()  # Continue
Esempio n. 9
0
def start():
    # import
    from urllib import urlopen
    from lib._fileSave import saved
    from bs4 import BeautifulSoup
    from random import randint
    from lib.check import chost, flib
    host = raw_input(C + '[*]' + W + 'asm>[ip_history] Host/ip: ')  # Target
    dom = flib(host)  # Bad Protocol [http:// https://]
    if chost(dom) == True:  # Check Domain
        print '[*] Starting ... [*]'
        print '[*] ip/host %s is Activ [*]' % dom
        print '[*] Please White ... [*]'
        # def psend(host):
        send = urlopen('http://www.viewdns.info/iphistory/?domain=' +
                       dom).read()  # Send Request
        bs = BeautifulSoup(send, 'html.parser').find('font', face="Courier")
        recv = str(bs).replace('ViewDNS.info', '')
        try:
            rand = str(randint(0, 2000))
            fname = rand + 'ip_history_' + dom.replace(
                '.', '_') + '.html'  # File Name
            fsave = saved(recv, fname)  # Saved To File
            if (fsave == True):
                print '[*] Saved To output/' + fname + ' success [*]'  # Save True
            elif (fsave == False):
                print '[*] bad to saved file [*]'  # Save False
            else:
                pass
            print GR + '[Type 98 to Back]' + W
            print GR + '[Type 99 to Exit]' + W
            print GR + '[Type 100 to options]' + W
            print W + '[*] END [*]'  # End Process
        except:
            print '[-] oops error [-]'  # Error
    else:
        print R + '[-] oops Error(%s) occured; invalid URL [-]' % dom  # Error Host
        print W + '[*] END [*]'
        start()  # Continue
Esempio n. 10
0
def start():
    # import
    import socket
    from lib._fileSave import saved
    from random import randint
    from lib.check import chost, flib
    host = raw_input(C + '[*]' + W +
                     'asm>[scan_port_fast] Host/ip: ')  # Target
    dom = flib(host)  # Bad Value Protocol [http:// https://]
    # Check For host
    if chost(dom) == True:
        star = raw_input(C + '[*]' + W + 'asm>[scan_port_fast] start range: ')
        end = raw_input(C + '[*]' + W + 'asm>[scan_port_fast] end range: ')
        file = raw_input(C + '[*]' + W +
                         'asm>[scan_port_fast] show File output?y/n ')

        def psend(host, port, f=False):
            s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
            s.settimeout(8)
            try:
                send = s.connect_ex((host, port))
            except:
                send = 10035
            if send == 0:
                if f == False:
                    return C + '\tport ' + str(port) + ' is open !'
                else:
                    return '\tport ' + str(port) + ' is open !\n'

            elif send == 10035:
                if f == False:
                    return R + '\tport ' + str(port) + ' is close !'
                else:
                    return '\tport ' + str(port) + ' is close !\n'
            else:
                if f == False:
                    return R + '\tport ' + str(port) + ' is close !'
                else:
                    return '\tport ' + str(port) + ' is close !\n'

        try:
            print '[*] Starting ... [*]'
            print '[*] ip/host %s is Activ [*]' % dom
            print '[*] start range ' + str(star) + ' up to ' + str(
                end) + ' [*]'
            print '[*] Please White ... [*]'
            rand = str(randint(0, 2000))
            fname = rand + 'scan_port_fast_' + dom.replace(
                '.', '_') + '.html'  # File Name
            if (file == 'y' or file == 'Y'):  # Save File
                for x in range(int(star), int(end)):
                    recv = psend(dom, x, True)
                    fsave = saved(recv, fname)
                if (fsave == True):
                    print '[*] Saved To output/' + fname + ' success [*]'  # File Save True
                elif (fsave == False):
                    print '[*] bad to saved file [*]'  # File Save False
                else:
                    pass
            elif (file == 'n' or file == 'N'):  # Show Recv
                print
                for x in range(int(star), int(end)):
                    print psend(dom, x)
                print
            else:
                print
                for x in range(int(star), int(end)):
                    print psend(dom, x)
                print
            print W + '[*] END [*]'  # End Process
        except:
            print '[-] oops error [-]'  # Error :(
    else:
        print R + '[-] oops Error(%s) occured; invalid URL [-]' % dom  # Error For Host
        print W + '[*] END [*]'
        start()  # Continue
Esempio n. 11
0
def start():
    # import
    from urllib import urlopen
    from lib._fileSave import saved
    from socket import gethostbyname
    from random import randint
    sub = [
        'news.', 'download.', '', 'cpanel.', 'ftp.', 'email.', 'server1.',
        'cdn.', 'cdn2.', 'ns.', 'ns1.', 'mail.', 'webmail.', 'direct.',
        'direct-connect.', 'record.', 'ssl.', 'dns.', 'help.', 'blog.', 'irc.',
        'forum.', 'admin.', 'server.', 'client.', 'shop.', 'panel.',
        'android.', 'dld.', 'adm.', 'map.', 'file.', 'dll.', 'login.', 'ns1.',
        'ns2.', 'ns3.', 'ns4.', 'ns5.', 'ns6.', 'ns7.', 'ns8.', 'ns9.'
    ]

    def z(host):
        try:
            return urllib.urlopen('http://' + str(host)).code  # Online Host
        except:
            return None

    host = raw_input(C + '[*]' + W + 'asm>[cloud_flare] Host: ')  # Target
    dom = flib(host)
    if chost(dom) == True:  # Check For Host
        file = raw_input(C + '[*]' + W +
                         'asm>[cloud_flare] show File output?y/n '
                         )  # y = Save To File n = Show Recv

        def psend(host, sub, f=False):
            host = sub + host
            send = z(host)  # Send Request
            if send == 200:
                ip = gethostbyname(host)
            else:
                ip = None
            if f == False:
                return C + '\t ( ' + host + ' ) => ' + str(send) + ' : ' + str(
                    ip)  # Show Message
            else:
                return '\t( ' + host + ' ) => ' + str(send) + ' : ' + str(
                    ip)  # Show Message

        try:
            print '[*] Starting ... [*]'
            print '[*] ip/host %s is Activ [*]' % dom
            print '[*] Please White ... [*]'
            if (file == 'y' or file == 'Y'):
                rand = str(randint(0, 2000))
                fname = rand + 'cloud_flare_' + dom.replace(
                    '.', '_') + '.html'  # File Name
                for x in sub:
                    recv = psend(dom, x, True)
                    fsave = saved(recv, fname)  # Save To File
                if (fsave == True):
                    print '[*] Saved To output/' + fname + ' success [*]'
                elif (fsave == False):
                    print '[*] bad to saved file [*]'
                else:
                    pass
            elif (file == 'n' or file == 'N'):
                print
                for x in sub:
                    print psend(dom, x, False)  # Show Recv
                print
            else:
                print
                for x in sub:
                    print psend(dom, x, False)  # Show Recv
                print
            print W + '[*] END [*]'  # End Process
            print GR + '[Type 98 to Back]' + W
            print GR + '[Type 99 to Exit]' + W
            print GR + '[Type 100 to options]' + W

        except:
            print '[-] oops error [-]'  # Erro Null :(
    else:
        print R + '[-] oops Error(%s) occured; invalid URL [-]' % dom  # Error Host
        print W + '[*] END [*]'  # End Process
        start()  # Continue