Ejemplo n.º 1
0
def printSyntax():
	 printWait( """
#-------------------------------------------------#
#	-shell:It looks for Webshells
#	-backup:It looks for Backup
#	-admin:It looks for Adminpages
#	-dir:It looks for Sensitive Directories
#	-all:It looks for All Above
#-------------------------------------------------#
# Usage	:	./DirSaber.py <http:url> -m <mode> -p <proxy>
			http://host.com  -m shell -p 127.0.0.1:8118

""")
Ejemplo n.º 2
0
def proxycheck(myhttpproxy, myproxy):
    try:
        if myproxy:
            printWait("[+] Testing Proxy...")
            h2 = httplib.HTTPConnection(myhttpproxy)
            h2.connect()
            printResult("[+] Proxy:" + myhttpproxy + "\n")
            return 1
    except (socket.timeout):
        printError("[-] Proxy Timed Out")
        return None
    except (NameError):
        printError("[-] Proxy Not Given")
        return None
    except:
        printError("[-] Proxy Failed")
        return None
Ejemplo n.º 3
0
def printSyntax():
	 printWait( """
#-------------------------------------------------#
#	-m shell    :It looks for Webshells
#	-m backup   :It looks for Backup
#	-m admin    :It looks for Adminpages
#	-m dir      :It looks for Sensitive Directories
#	-m <others> :It looks for the dic you specified
#	-m all      :It looks for All Above
#
#   -d          :It will recursive the directory
#-------------------------------------------------#
# Usage	:  
        ./main.py <http:url> -m <mode> [-p <proxy>] [-t <asp/aspx/php/jsp>] [-d]
                   host.com  -m shell  [-p 127.0.0.1:8118] [-t asp] [-d]

""")
Ejemplo n.º 4
0
def proxycheck(myhttpproxy,myproxy):
    try:
        if myproxy:
            printWait("[+] Testing Proxy...")
            h2 = httplib.HTTPConnection(myhttpproxy)
            h2.connect()
            printResult("[+] Proxy:"+myhttpproxy+"\n")
            return 1
    except(socket.timeout):
        printError("[-] Proxy Timed Out")
        return None
    except(NameError):
        printError("[-] Proxy Not Given")
        return None
    except:
        printError("[-] Proxy Failed")
        return None
Ejemplo n.º 5
0
#!/usr/bin/env python2
#-*-encoding:utf-8-*-
#-------------------------------------------#
#	-shell:It looks for Webshells
#	-backup:It looks for Backup
#	-admin:It looks for Adminpages
#	-dir:It looks for Sensitive Directories
#	-all:It looks for All Above
#-------------------------------------------#
from modules.Saber_col import printError,printWait
printWait( '''
    #######################################################
    #                                                     #
    #                  DirSaber  v1.0                     #
    #             BY haxsscker#c0deplay.com               #
    #               Thx lazze#t00ls.net                   #
    #                  team.f4ck.net                      #
    #                                                     #
    #######################################################
''')

import getopt,sys
from modules.urlcheck import urlcheck
from modules.chooseDic import chooseDic
from modules.f4ckDir import f4ckDir
        
def printSyntax():
	 printWait( """
#-------------------------------------------------#
#	-shell:It looks for Webshells
#	-backup:It looks for Backup
Ejemplo n.º 6
0
    shouhu.start()

    # maxloading = queue.qsize()
    # view_loading = Loading(maxloading)
    # view_loading.start()

    #########################################################
    #lines start!
    for i in range(10):
        a = finder(site,smode,logging_file)
        a.start()
        threads.append(a)
    for j in threads:
        j.join()
            
    printWait(smode+"------->" + "task".ljust(48,' ') + "[ALL DONE]")
    try:
        logging_file.close()
    except:
        pass

class finder(threading.Thread):
    def __init__(self,site,smode,logging_file):
        threading.Thread.__init__(self)
        self.site = site
        self.smode = smode
        self.logging_file = logging_file

    def run(self):
        while 1:
            if queue.empty()== True:
Ejemplo n.º 7
0
#!/usr/bin/env python2
#-*-encoding:utf-8-*-
#Thanks for lazze

from modules.Saber_col import printError,printWait
printWait( '''
    #######################################################
    #                                                     #
    #                  DirSaber  v3.0                     #
    #             BY haxsscker#c0deplay.com               #
    #                  team.f4ck.net                      #
    #                                                     #
    #######################################################
''')

import getopt,sys
from modules.urlcheck import urlcheck
from modules.chooseDic import chooseDic
from modules.f4ckDir import f4ckDir
from modules.f4ckDirDG import f4ckDirDG
from lib.proxy import proxycheck
        
def printSyntax():
	 printWait( """
#-------------------------------------------------#
#	-m shell    :It looks for Webshells
#	-m backup   :It looks for Backup
#	-m admin    :It looks for Adminpages
#	-m dir      :It looks for Sensitive Directories
#	-m <others> :It looks for the dic you specified
#	-m all      :It looks for All Above