예제 #1
0
def whtcode():
    try:
        clear()
        url = str(raw_input("Enter url (DO NOT TYPE HTTP://) : "))
        print builtwith.parse("http://" + url)
        raw_input("Press Enter")
        mains()
    except:
        print ValueError
        mains()
예제 #2
0
def __start__():
    print(Fore.RED + "[!] CMS ...")
    print(Fore.RED + " [!] Enter Domain \n")
    print(Fore.RED + " [!] Enter Exit To Go To Main Menu \n")
    target = input(Fore.RED + " ┌─[" + Fore.LIGHTGREEN_EX + "HAMMASTER" +
                   Fore.BLUE + "~" + Fore.WHITE + "@HOME" + Fore.RED + "/" +
                   Fore.CYAN + "IG" + Fore.RED + "/" + Fore.LIGHTYELLOW_EX +
                   "CMS-Detect" + Fore.RED + """]
 └──╼ """ + Fore.WHITE + "卐 ")
    if target == "exit" or target == "Exit" or target == "EXIT":
        try:
            return
        except:
            return
    if not 'https://' in target or not 'http://' in target:
        target = 'http://' + target
    info = builtwith.parse(target)
    for name in info:
        value = ''
        for val in info[str(name)]:
            name = name.replace('-', ' ')
            name = name.title()
            value += str(val)
        print(Fore.BLUE + "\n" + name + ': ' + value)
    try:
        input(Fore.GREEN + " [*] Press Enter To Go Back To Menu ")
    except:
        print("\n sorry,there is a problem")
        time.sleep(2)
        sys.exit()
예제 #3
0
def __start__():
    try:
        sleep(0.1)
        print(color.CYAN + "[!] Enter The Domain\n")
        sleep(0.1)
        site = input(color.RED + "┌─[" + color.LIGHTGREEN_EX + "WebRobber" +
                     color.RED + "/" + color.WHITE + "Home" + color.RED + "/" +
                     color.CYAN + "IG" + color.RED + "/" +
                     color.LIGHTYELLOW_EX + "Cms-Detect" + color.RED + """]
└──╼ """ + color.WHITE + "» ")

        if not 'https://' in site or not 'http://' in site:
            site = ("http://" + site)

        print(color.CYAN + "Loading...")
        info = builtwith.parse(site)

        for name in info:
            value = ''
            for val in info[str(name)]:
                name = name.replace('-', ' ')
                name = name.title()
                value += str(val)
                print(color.BLUE + '\n' + name + ': ' + value)

        try:
            input(color.GREEN + " [*] Back To Menu (Press Enter...) ")
        except:
            print("")
            sys.exit()

    except:
        print(color.RED + "Something bad happend...")
        sleep(1)
        sys.exit()
 def module_run(self, domain):
     print("\nDomain " + domain + "\n")
     print(builtwith.parse("http://" + domain))
     payload = {'key': self.key, 'lookup': domain}
     response = requests.get(self.url, params=payload)
     json = response.json()
     print(json)
예제 #5
0
def __start__():
    try:
        import builtwith
    except ImportError:
        print
        print red + "[-] Not found 'builtwith' library"
        print green + "    pip install builtwith" + end
        print
        sys.exit()

    print
    print green + "[+] Please enter url webserver"
    print "    e.x: [([http, https]://example.com/), ([http, https]://0.0.0.0/)]" + end
    print
    url = raw_input(brown + 'detect_technology > url >>> ' + end)
    try:
        b = builtwith.parse(url)
    except:
        print
        print red + "[-] Not found url: " + url + end
        print
        sys.exit()
    print
    for i, j in b.iteritems():
        k = ', '.join(j)
        print brown + '    ', i, ': ' + green, k, end
    print
예제 #6
0
def __start__():
    print(Fore.RED + ' [*] ENTER DOMAIN TO FIND INFORMATIONS TECNOLOGY \n')
    target = input(Fore.BLUE + ' [@] Plase Enter Domain: >>> ')

    if target == '':
        try:
            print(Fore.BLUE + '  \n [!] Please Enter Domain :) \n')
            time.sleep(5)
            sys.exit()
        except:
            return

    if not 'https://' in target or not 'http://' in target:
        target = 'http://' + target

    info = builtwith.parse(target)
    for name in info:
        value = ''
        for val in info[str(name)]:
            name = name.replace('-', ' ')
            name = name.title()
            value += str(val)
        print(Fore.GREEN + "\n" + Fore.GREEN + ' [!] ' + name + ':' + value)
    try:
        input(Fore.LIGHTBLUE_EX + " [#] Back To Menu (Press Enter...) ")
    except:
        print("")
        sys.exit()
예제 #7
0
 def cms_built(self):
     try:
         res = builtwith.parse(self.url)
         if res:
             for key in res.items():
                 results.append(key[0] + ':' + key[1][0])
     except Exception as e:
         pass
예제 #8
0
def run():
    try:
        r = builtwith.parse(HOST)
        data = r.items()

        for a, b in data:
            print(a + ":", ':'.join(b))
    except:
        print("please check internet or url !!")
예제 #9
0
 def __init__(self, url: str):
     self.url = url
     self.date_now = datetime.datetime.now()
     # request and get the http response
     http = urllib3.PoolManager(cert_reqs='CERT_REQUIRED',
                                ca_certs=certifi.where())
     self.response = str(http.request('GET', url).status)
     # call reverse engineering modules
     self.reverse = builtwith.parse(url)
     self.owner = whois.whois(url)
예제 #10
0
def cms(site):
    if not 'https://' in site or not 'http://' in site:
        site = 'http://' + site
    info = builtwith.parse(site)
    for name in info:
        value = ''
        for val in info[str(name)]:
            name = name.replace('-', ' ')
            name = name.title()
            value += str(val)
        print(Fore.BLUE + "\n" + name + ': ' + value)
예제 #11
0
def constructed():
    resolver = ''
    if request.method == 'POST':
        url = request.form['url']
        if re.search(patron_dominio,url):
            resolver = builtwith.parse(url)
        elif url == "":
            flash("INGRESE UNA URL")
        else:
            flash("¡ VERIFIQUE SU URL !")

    return render_template("constructed.html", resolver = resolver)
예제 #12
0
def tecnologHTTP(host):
    print "[*] Obteniendo Tecnologia Web: "
    print ""
    tecnologias = []
    i = 0
    a = builtwith.parse(host)
    for x in a:
        tecnologias.append(x)
    for z in tecnologias:
        for v in a[z]:
            print z + ":" + v
            tecnolog.append(z + ":" + v)
    print ""
예제 #13
0
def info(url):

    # Define variables for builtwith and whois module implemented data
    build_info = builtwith.parse(url)
    whois_info = whois.whois(url)

    # Collect variable data and insert in tkinter text widget
    tow.insert(END, "Information for the following web address: \n")
    tow.insert(END, url)
    tow.insert(END, '\n')
    tow.insert(END, build_info)
    tow.insert(END, '\n')
    tow.insert(END, whois_info)
예제 #14
0
def __Start__():
    ########################
    sleep(0.2)
    print(Fore.LIGHTGREEN_EX + " \n  [" + Fore.LIGHTWHITE_EX + "!" +
          Fore.LIGHTGREEN_EX + "]" + Fore.LIGHTCYAN_EX +
          " Wellcome To Cms Part")
    sleep(0.2)
    print(Fore.LIGHTGREEN_EX + " \n  [" + Fore.LIGHTWHITE_EX + "!" +
          Fore.LIGHTGREEN_EX + "]" + Fore.LIGHTCYAN_EX + " Ctrl + C To Exit")
    ########################
    try:
        sleep(0.2)
        Domain = input(Fore.LIGHTGREEN_EX + "\n┌─[" + Fore.LIGHTWHITE_EX +
                       "!" + Fore.LIGHTGREEN_EX + "]" + Fore.RED +
                       " Enter Your Domain" + Fore.LIGHTGREEN_EX + """
└──╼""" + Fore.LIGHTWHITE_EX + " ")
        if not Domain:
            sleep(0.2)
            print(Fore.LIGHTGREEN_EX + "  [" + Fore.LIGHTWHITE_EX + "!" +
                  Fore.LIGHTGREEN_EX + "]" + Fore.LIGHTCYAN_EX +
                  " You Didn't Enter Anything")
            sleep(2)
            return
########################
        elif "http" in Domain:
            sleep(0.2)
            print(Fore.LIGHTGREEN_EX + "  [" + Fore.LIGHTWHITE_EX + "!" +
                  Fore.LIGHTGREEN_EX + "]" + Fore.LIGHTCYAN_EX +
                  " Please Enter A Domain")
            sleep(2)
            return
########################
        Domain = "http://" + Domain
        Info = builtwith.parse(Domain)
        ##########################
        for Key in Info:
            Value = " "
            for Val in Info[str(Key)]:
                Key = Key.replace('-', " ")
                Key = Key.title()
                Value += str(Val) + Fore.RED + " - " + Fore.LIGHTGREEN_EX
                sleep(0.2)
            print(Fore.LIGHTGREEN_EX + "  [" + Fore.LIGHTWHITE_EX + "+" +
                  Fore.LIGHTGREEN_EX + "] " + Fore.LIGHTCYAN_EX + Key +
                  Fore.RED + " : " + Fore.LIGHTGREEN_EX + Value + "\n")
##########################
        input(Fore.LIGHTGREEN_EX + "  [" + Fore.LIGHTWHITE_EX + "!" +
              Fore.LIGHTGREEN_EX + "]" + Fore.RED + " Press Enter To Exit ")
##########################
    except:
        return
예제 #15
0
def main():
    parser = optparse.OptionParser(
        'usage:  WebServiceAcquisition.py -H <target host> ')
    parser.add_option('-H',
                      dest='tgtHost',
                      type='string',
                      help='specify target host')
    (options, args) = parser.parse_args()
    tgtHost = options.tgtHost
    if tgtHost == None:
        print(parser.usage)
        exit(0)
    if (not tgtHost.startswith('https://')) and (
            not tgtHost.startswith('http://')):
        tgtHost1 = 'http://' + tgtHost
        tgtHost2 = 'https://' + tgtHost
    elif tgtHost.startswith('https://'):
        tgtHost2 = tgtHost
        tgtHost1 = 'http://' + tgtHost.replace('https://', '')
    elif tgtHost.startswith('http://'):
        tgtHost1 = tgtHost
        tgtHost2 = 'https://' + tgtHost.replace('http://', '')
    print('Receive From HTTP Protocol:')
    try:
        resultsHTTP = builtwith.parse(tgtHost1)
        for resultHTTP in resultsHTTP:
            print(resultHTTP + ': ' + str(resultsHTTP[resultHTTP]))
    except Exception:
        print("The Target does not support HTTP.")

    print('Receive From HTTPS Protocol:')
    try:
        resultsHTTPS = builtwith.parse(tgtHost2)
        for resultHTTPS in resultsHTTPS:
            print(resultHTTPS + ': ' + str(resultsHTTPS[resultHTTPS]))
    except Exception:
        print('The Target does not support HTTPS')
예제 #16
0
 def __4__():
     try:
         target = input(Fore.RED + "Enter Your Address WebSite " +
                        Fore.YELLOW + "==>  ")
         if not 'https://' in target or not 'http://' in target:
             target = 'http://' + target
         req = builtwith.parse(target)
         for item in req:
             value = ""
             for var in req[str(item)]:
                 item = item.replace("-", " ")
                 item = item.title()
                 value += str(var)
                 print(Fore.GREEN + "\n" + item + " : " + value)
     except:
         pass
    def module_run(self, domains):

        for domain in domains:
            print("\nDomain " + domain + "\n")

            print(builtwith.parse("http://" + domain))

            payload = {'key': self.key, 'lookup': domain}
            response = requests.get(self.url, params=payload)
            json = response.json()
            for result in json['Results']:
                # extract and add emails to contacts
                emails = result['Meta']['Emails']
                if emails is None: emails = []
                print('\nEmails\n')
                for email in emails:
                    print(email)
                # extract and add names to contacts
                names = result['Meta']['Names']
                if names is None: names = []
                print('\nContacts\n')
                for name in names:
                    fname, mname, lname = self.parse_name(name['Name'])
                    print(fname + " " + mname + " " + lname)
                # extract and consolidate hosts and associated technology data
                data = {}
                for path in result['Result']['Paths']:
                    domain = path['Domain']
                    subdomain = path['SubDomain']
                    host = subdomain if domain in subdomain else '.'.join(
                        filter(len, [subdomain, domain]))
                    if not host in data: data[host] = []
                    data[host] += path['Technologies']
                print('Technologies\n')
                for host in data:
                    # add host to hosts
                    # *** might domain integrity issues here ***
                    domain = '.'.join(host.split('.')[-2:])
                    if domain != host:
                        print('Host ' + host)
                # process hosts and technology data
                for host in data:
                    # display technologies
                    for item in data[host]:
                        print("----------------------------")
                        for tag in item:
                            print('%s: %s' % (tag, str(item[tag])))
예제 #18
0
def technology(url):
    key = []
    value = []
    print(Fore.RED+"[+] Technology used:"+Fore.GREEN)
    try:
        try:
            web  = builtwith.parse(url)
        except:
            print(Fore.RED+"    --> "+Fore.GREEN+"An error occurred ! , Please check your url again")
            pass
        for key,value in web.items():
            print(Fore.RED+"    --> "+Fore.GREEN+key+Fore.RED+": "+Fore.GREEN,",".join(value))
        if len(web.items()) == 0:
            print(Fore.RED+"    --> "+Fore.GREEN+"Not detected")
    except:
        print(Fore.RED+"    --> "+Fore.GREEN+"An error occurred ! , Please check your url again")
        pass            
예제 #19
0
파일: cms.py 프로젝트: AmirrezaMir/PyTest
def start():
    os.system("clear")
    target = input(Fore.RED + 'enter a domain --> ')
    if not 'http://' in target and not 'https://' in target:
        target = 'http://' + target

    info = builtwith.parse(target)
    for keys, values in info.items():
        keys = keys.replace('-', ' ')
        keys = keys.title()
        print(Fore.BLUE + '\n' + keys + ' : ' + values)
    try:
        input(Fore.GREEN + 'Back to Menu(press enter...) ')

    except:
        print('')
        sys.exit()
예제 #20
0
def __start11__():
    print(Fore.RED + " [!] Plase Enter Domain")
    target = input(Fore.RED + " ┌─[" + Fore.LIGHTGREEN_EX + "WEBKILLER" +
                   Fore.BLUE + "~" + Fore.WHITE + "@HOME" + Fore.RED + "/" +
                   Fore.CYAN + "IG" + Fore.RED + "/" + Fore.LIGHTYELLOW_EX +
                   "CMS-Detect" + Fore.RED + """]
 └──╼ """ + Fore.WHITE + "卐 ")
    if not 'https://' in target or not 'http://' in target:
        target = 'http://' + target
    info = builtwith.parse(target)
    for name in info:
        value = ''
        for val in info[str(name)]:
            name = name.replace('-', ' ')
            name = name.title()
            value += str(val)
        print(Fore.BLUE + "\n" + name + ': ' + value)
예제 #21
0
def tecnologHTTP(host):
    try:
        print "[*] Obteniendo Tecnologia Web: "
        print ""
        tecnologias = []
        i = 0
        a = builtwith.parse(host)
        for x in a:
            tecnologias.append(x)
        for z in tecnologias:
            for v in a[z]:
                print z + ":" + v
                tecnolog.append(z + ":" + v)
        print ""
    except:
        print "[*] Error al obtener Tecnologias del servidor!"
        tecnolog.append("N/A:N/A")
    def module_run(self, domains):

        for domain in domains:
            print("\nDomain "+domain +"\n")
            
            print(builtwith.parse("http://"+domain))
            
            payload = {'key': self.key, 'lookup': domain}
            response = requests.get(self.url, params=payload)
            json=response.json()
            for result in json['Results']:
                # extract and add emails to contacts
                emails = result['Meta']['Emails']
                if emails is None: emails = []
                print('\nEmails\n')
                for email in emails:
                    print(email)
                # extract and add names to contacts
                names = result['Meta']['Names']
                if names is None: names = []
                print('\nContacts\n')
                for name in names:
                    fname, mname, lname = self.parse_name(name['Name'])
                    print(fname+" "+mname+" "+lname)
                # extract and consolidate hosts and associated technology data
                data = {}
                for path in result['Result']['Paths']:
                    domain = path['Domain']
                    subdomain = path['SubDomain']
                    host = subdomain if domain in subdomain else '.'.join(filter(len, [subdomain, domain]))
                    if not host in data: data[host] = []
                    data[host] += path['Technologies']
                print('Technologies\n')
                for host in data:
                    # add host to hosts
                    # *** might domain integrity issues here ***
                    domain = '.'.join(host.split('.')[-2:])
                    if domain != host:
                        print('Host '+host)
                # process hosts and technology data
                for host in data:
                    # display technologies
                    for item in data[host]:
                        print("----------------------------")
                        for tag in item:
                            print('%s: %s' % (tag, str(item[tag])))
예제 #23
0
def cmsenum(web):

    print(GR + ' [*] Active Fingerprinting CMS...\n')
    resp = builtwith.parse(web)
    print(O + ' [*] Parsing raw-data...')
    time.sleep(0.7)
    res = json.dumps(resp)
    r = json.loads(res)
    try:
        if "cms" in r:
            print(G + ' [+] CMS Detected :' + O + ' %s' % (r['cms']))
            dtect = True
            time.sleep(0.7)

    except Exception as e:
        print(R + ' [-] Error while CMS Enumeration...')
        print(R + ' [-] Exception : ' + str(e))
예제 #24
0
def builtwithScan(urlTOtest):
    try:
        scanTime = (time.strftime("%H:%M-%d.%m.%Y"))
        outputFile = urlTOtest + "/BuiltWith-" + urlTOtest + "-" + scanTime + ".txt"
        print "[-*-] - Task: BuiltWith: Started on " + urlTOtest
        results = builtwith.parse("http://" + urlTOtest)
        with open(outputFile, 'wb') as resultFile:
            json.dump(results, resultFile, sort_keys=True, indent=4)
        try:
            i = results['programming-languages']  # get value by key from json object
            i = json.dumps(i)  # convert to string
            i = i.translate(None, ']["')  # remove unwanted char
            return i  # returning programming language
            print "[---] - Task: BuiltWith: Programming-language is probably", programming_lang, "--> running dirsearch.py with the relevent extentions"
        except Exception as e:
            print "[-X-] - Task BuiltWith:", e, "not found in results"
        print "[ V ] - Task: BuiltWith: Successfully ended (" + urlTOtest + ") | saving results at --> " + outputFile
    except Exception as e:
        print e
예제 #25
0
def __start__():
    print(Fore.RED+" [!] Plase Enter Domain")
    target = input(Fore.RED+" ┌─["+Fore.LIGHTGREEN_EX+"inquisitio"+Fore.BLUE+"~"+Fore.WHITE+"@HOME"+Fore.RED+"/"+Fore.CYAN+"IG"+Fore.RED+"/"+Fore.LIGHTYELLOW_EX+"CMS-Detect"+Fore.RED+"""]
 └──╼ """+Fore.WHITE+"卐 ")
    if not 'https://' in target or not 'http://' in target:
        target = 'http://'+target
    info = builtwith.parse(target)
    for name in info:
        value = ''
        for val in info[str(name)]:
            name = name.replace('-',' ')
            name = name.title()
            value += str(val) 
        print(Fore.BLUE+"\n"+name+': '+value)
    try:
        input(Fore.GREEN+" [*] Back To Menu (Press Enter...) ")
    except:
        print("")
        sys.exit()
예제 #26
0
def cmsenum(web, name):

    print(GR + ' [*] Active Fingerprinting CMS...\n')
    resp = builtwith.parse(web)
    print(C + ' [*] Parsing raw-data...')
    time.sleep(0.7)
    res = json.dumps(resp)
    r = json.loads(res)
    try:
        if "cms" in r:
            print(O + ' [+] CMS Detected :' + C + color.TR3 + C + G + '%s' %
                  (r['cms']) + C + color.TR2 + C)
            dtect = True
            save_data(database, module, lvl1, lvl2, lvl3, name, str(r['cms']))
            time.sleep(0.7)

    except Exception as e:
        print(R + ' [-] Error while CMS Enumeration...')
        print(R + ' [-] Exception : ' + str(e))
예제 #27
0
파일: anonwps.py 프로젝트: Tasarov666/wps
def Info(Url):
    B = builtwith.parse(Url)
    Last = ''
    for N in B:
        Last = N
    Info = ''
    Count = 0
    for Name in B:
        Count = len(B[Name]) - 1
        Values = ''
        for Value in B[Name]:
            Split = BLUE + ' | ' + MAGENTA
            if Value == B[Name][Count]:
                Split = ''
            Values += Value + Split
        if Name == Last:
            Info += '         ' + CYAN + '[' + WHITE + '+' + CYAN + ']' + YELLOW + Name.replace(
                '-', '').title() + GREEN + ': ' + MAGENTA + Values
        else:
            Info += '         ' + CYAN + '[' + WHITE + '+' + CYAN + ']' + YELLOW + Name.replace(
                '-',
                ' ').title() + GREEN + ': ' + MAGENTA + Values + WHITE + '\n'

    return Info
예제 #28
0
    def get_cms_js_frame(self, url):
        try:
            dict_value = builtwith.parse(url=url)
            if ('cms' in dict_value):  #cms在字典中,获取cms值
                cms_name = dict_value.get('cms')
                cms_name = str(cms_name).replace('[', '').replace(']',
                                                                  '').replace(
                                                                      "'", '')
                self.cms_dict[url] = cms_name
            else:
                self.cms_dict[url] = 'Not_found'

            if ('javascript-frameworks'
                    in dict_value):  # javascript-frameworks在字典中,获取JS框架值
                js_frame = dict_value.get('javascript-frameworks')
                js_frame = str(js_frame).replace('[', '').replace(']',
                                                                  '').replace(
                                                                      "'", '')
                self.js_frame_dict[url] = js_frame
            else:
                self.js_frame_dict[url] = 'Not_found'
        except:
            self.cms_dict[url] = 'Not_found'
            self.js_frame_dict[url] = 'Not_found'
 def find(self):
     return builtwith.parse(self.url)
예제 #30
0
# -*- coding: utf-8 -*-
import builtwith

tecnologias =  builtwith.parse('http://vamoaprogramar.com/blog')
print tecnologias
for key, value in tecnologias.iteritems():
	print key ,": " , value

import builtwith

# The builtwith Python Module
# 1. The builtwith module is a useful tool to check the kind of technologies a website is built.
# 2. The type of technology used to build a website will effect how we crawl it.

print builtwith.parse('http://www.google.com')
print builtwith.parse('http://www.apple.com')
예제 #32
0
import builtwith

print(builtwith.parse('http://www.163.com'))
예제 #33
0
            sys.stdout = Log(sys.stdout, f)
            checkFtpVulnerable.startCheckVulnerability(ip,hostname)
	if option == "19":
	    f = open('logCheckvuln_SQL_XSS_LFI.txt', 'a')
	    sys.stdout = Log(sys.stdout, f)
	    checkVuln_SQL_XSS_LFI.startCheckVulnerability(ip,hostname)
	if option == "21":
	    f = open('logCheckOpenPortsScapy.txt', 'a')
	    sys.stdout = Log(sys.stdout, f)
	    #scannerScapy.scan_ports_multithread(hostname,parsed_args.ports)
	if option == "22":
	    f = open('logCheckLibrariesWebsite.txt', 'a')
	    sys.stdout = Log(sys.stdout, f)
	    url = Utils.verify_url(hostname)
	    print 'Obtaining libraries from website ' + url
	    print builtwith.parse(str(url))	
        if option == "20":
            try:
                f = open('logCheckDomains.txt', 'a')
                sys.stdout = Log(sys.stdout, f)
                html = Utils.HtmlExtractor(hostname)
                #url always starts with http:// or https://
            
		print "[+] Searching urls, emails and domains......"
		
                url = html.get_url()
                print url
                data_extractor = Utils.DataExtractor(html.get_body(), url, only_href = True)

		logins = fuzzdb.Discovery.PredictableRes.Logins
		httpMethods= fuzzdb.attack_payloads.http_protocol.http_protocol_methods
예제 #34
0
 def siteFrame(self):
     webBuiltwith = builtwith.parse(self.url)  # builtwith 模块无法识别 UGC 类型的网站;
     return webBuiltwith
예제 #35
0
import builtwith

# builtwith.parse("https://try.taobao.com")
print(  builtwith.parse("http://www.taobao.com") )



import whois as wi


# print( whois.do_parse("http://www.taobao.com"))


w=wi.whois("www.taobao.com")
print(w)

import urllib.robotparser as ur
from urllib.robotparser import RobotFileParser as urf2

# urf = ur.RobotFileParser()
# urf2.set_url("http://qq.win/robot.txt")
# urf2.read()