def subnet(): sntl =("https://api.hackertarget.com/subnetcalc/?q="+site) snto =html(sntl).read().decode('utf-8') id = open("subnet.txt","a") id.write(snto)
def geo(): geol =("https://api.hackertarget.com/geoip/?q="+site) geoo =html(geol).read().decode('utf-8') a =open("geolocation.txt","a") a.write(geoo)
def mtr(): mtrl =("https://api.hackertarget.com/mtr/?q="+site) mtro =html(mtrl).read().decode('utf-8') t = open("traceroute.txt","a") t.write(mtro)
def ip(): nip =("http://api.hackertarget.com/nmap/?q="+site) pip = html(nip).read().decode('utf-8') i =open("portscan.txt","a") i.write(pip)
def sub(): subl =("https://api.hackertarget.com/hostsearch/?q="+site) subo =html(subl).read().decode('utf-8') b = open("subdomain.txt","a") b.write(subo)
def grab(): gra =("https://api.hackertarget.com/httpheaders/?q="+site) grob =html(gra).read().decode('utf-8') head = open("banner.txt","a") head.write(grob)
def ip(): site = input("\033[32mEnter Site Name plz:") nip = ("http://api.hackertarget.com/nmap/?q=" + site) pip = html(nip).read().decode('utf-8') print(pip)
def crwl(): cli = input("\033[36mEnter site name plz:") cll = ("https://api.hackertarget.com/pagelinks/?q=" + cli) clo = html(cll).read().decode('utf-8') print(clo)
from urllib.request import urlopen as html ip = input("Enter your Ip :-") url = 'http://ipinfo.io/' + ip + '/geo?token=0b6776a4b59afd' #add your token here r = html(url).read().decode('utf-8') print(r)
def subnet(): snti = input("\033[33mEnter site name plz:") sntl = ("https://api.hackertarget.com/subnetcalc/?q=" + snti) snto = html(sntl).read().decode('utf-8') print(snto)
def dlook(): dli = input("\033[34mEnter site name plz:") dll = ("http://api.hackertarget.com/dnslookup/?q=" + dli) dlo = html(dll).read().decode('utf-8') print(dlo)
def mtr(): mtri = input("\033[32mEnter site name plz:") mtrl = ("https://api.hackertarget.com/mtr/?q=" + mtri) mtro = html(mtrl).read().decode('utf-8') print(mtro)
def geo(): geoi = input("\033[31mEnter site name plz:") geol = ("https://api.hackertarget.com/geoip/?q=" + geoi) geoo = html(geol).read().decode('utf-8') print(geoo)
def sub(): subi = input("\033[36mEnter site name plz:") subl = ("https://api.hackertarget.com/hostsearch/?q=" + subi) subo = html(subl).read().decode('utf-8') print(subo)
def dlook(): dll =("http://api.hackertarget.com/dnslookup/?q="+site) dlo =html(dll).read().decode('utf-8') k =open("dnslookup.txt","a") k.write(dlo)
from urllib.request import urlopen as html ,Request from urllib.error import HTTPError,URLError print('''\033[33;1m ___ ____ ____ ____ | \ __ |__/ |___ [__ |__/ | \ |___ ___] \033[0m''') print("\033[31;1m --::{ A http response status checker tool by 0xh7ml }::--") print("\033[31;1mUsage : google.com\033[0m") site = input("\033[36;1mEnter domain name / ip plz ~\033[0m") try: tid = Request("http://www."+site) sie = html(tid) kis = sie.getcode() except(ValueError,TypeError,HTTPError,URLError): pass print("\033[31;1mIt's 40* response or Plz check url again\033[0m") else: print("\033[32;1mHttp Response status::") print(kis)
def crwl(): cll =("https://api.hackertarget.com/pagelinks/?q="+site) clo =html(cll).read().decode('utf-8') s = open("link.html","a") s.write(clo)
def who(): who =("http://api.hackertarget.com/whois/?q="+site) wip =html(who).read().decode('utf-8') d =open("whois.txt","a") d.write(wip)
def rip(): ri = ("https://api.hackertarget.com/reverseiplookup/?q="+site) p = html(ri).read().decode('utf-8') ata = open("reverseiplist.txt","a") ata.write(p)
def who(): domain = input("\033[34mEnter Site Name plz:") who = ("http://api.hackertarget.com/whois/?q=" + domain) wip = html(who).read().decode('utf-8') print(wip)