Exemplo n.º 1
0
def jsparse_(url):
    if nano.rev(url).split('.')[0] == nano.rev('js') or ".js?ver=" in url:
        try:
            user_agent=random.choice(regex.USR_AGENTS)
            headers = {'User-Agent': user_agent } 
            r = requests.get(url,headers=headers)
            resp = r.content
            if len(resp)>0:
                for a,b in regex.REGEX_JS.items():
                    mutch=re.findall(b, str(resp))
                    if(mutch):                 
                        
                        print("\033[94m[+] js file {} Contain: \033[00m".format(url))
                        for i in mutch:
                            print("\033[33m[{}]-----|\033[00m  {}".format(a.rstrip(),i))
        except:
            pass           
Exemplo n.º 2
0
def param_(url):
    try:
        basedir = url.split('?')[1]
        item = basedir.split('&')
        c = ''
        for x in item:
            if nano.rev(x)[0] == '=':
                c += '='
                if nano.rev(x)[1] == '=':
                    c += '='
                    if nano.rev(x)[2] == '=':
                        c += '='

            fstring = x.split('=')[1]
            fstring += c
            if fstring not in regex.Base_64_white_list:
                mutch = re.search(
                    "^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$",
                    fstring)
                if (mutch):
                    m = mutch.group()

                    try:
                        decodebs64 = base64.b64decode(m)
                        try:

                            Decode = decodebs64.encode('utf-8')
                            if "\\x" not in str(Decode):
                                print(
                                    "\033[94m[INFO] Possibly base64 on url:\033[00m {} "
                                    .format(nano.search_color(str(m), url)))
                                print(
                                    "\033[32m[decode is] ----------|\033[00m "
                                    + str(decodebs64))

                        except UnicodeError:
                            pass

                    except binascii.Error:
                        pass

    except:
        pass
Exemplo n.º 3
0
def oscommand_(url):
    if '.js?' not in str(url) and nano.rev(
            str(url)).split('.')[0] != nano.rev('js'):
        for i in range(threads):
            t = threading.Thread(target=run, args=(word_queue, url))
            t.start()