Пример #1
0
def graber(website):
    website = tambahHTTP(website)
    request = requests.get(website, timeout=5,
                           headers=_headers).headers.items()
    for headers in request:
        res = headers[0] + ': ' + headers[1]
        write(var='#', color=c, data=res)
Пример #2
0
def reverseIP(website):
    website = tambahHTTP(website)
    webs = hapusHTTP(website)
    url = 'https://domains.yougetsignal.com/domains.php'
    post = {'remoteAddress': webs, 'key': ''}
    request = requests.post(url, headers=_headers,
                            data=post).text.encode('utf-8')
    grab = json.loads(request)
    Status = grab['status']
    IP = grab['remoteIpAddress']
    Domain = grab['remoteAddress']
    Total_Domains = grab['domainCount']
    Array = grab['domainArray']

    if (Status == 'Fail'):
        write(var='#', color=r, data='Gagal melakukan Reverse IP')
    else:
        write(var='$', color=c, data='IP: ' + IP + '')
        write(var='$', color=c, data='Domain: ' + Domain + '')
        write(var='$', color=c, data='Total Domain: ' + Total_Domains + '\n')

        domains = []

        for x, y in Array:
            domains.append(x)

        for res in domains:
            write(var='#', color=b, data=res)
Пример #3
0
def cariSubDomain(website):
	website = hapusHTTP(website)
	print("{}{:<62}| {:<50}".format(c, "URL", "STATUS"))
	for _sub in subdomains:
		if len(_sub) != 0:
			combo = _sub + "." + website; combo = tambahHTTP(combo)
			try:
				resp = requests.get(combo, timeout=5, headers=_headers).status_code
				if resp != 404:
					print("{}{:<62}| {:<50}".format(g, combo, resp))
			except Exception:
				print("{}{:<62}| {:<50}".format(r, combo, "404"))
Пример #4
0
def cariAdminPanel(website):
    website = tambahHTTP(website)
    print("{}{:<92}| {:<50}".format(c, "URL", "STATUS"))
    for _panels in panels:
        if len(_panels) != 0:
            combo = website + "/" + _panels
            try:
                resp = requests.get(combo,
                                    timeout=5,
                                    headers=_headers,
                                    allow_redirects=False).status_code
                if resp == 200:
                    print("{}{:<92}| {:<50}".format(g, combo, resp))
                elif resp == 301:
                    print("{}{:<92}| {:<50}".format(r, combo, "404"))
                elif resp == 500 or resp == 502:
                    print("{}{:<92}| {:<50}".format(c, combo, "404"))
                else:
                    print("{}{:<92}| {:<50}".format(r, combo, "404"))
            except Exception:
                print("{}{:<92}| {:<50}".format(r, combo, "404"))