Exemplo n.º 1
0
    def run(self, target, args, smb_con, loggers, config_obj):
        # Define Target
        self.count = 0
        if self.args['DC']['Value']:
            target = self.args['DC']['Value']

        # Create custom spider config
        temp_config = config_obj
        temp_config.WHITELIST_EXT = ['xml']
        temp_config.KEY_EXT = []
        temp_config.KEY_WORDS = []
        temp_config.REGEX = {"gpp_password": "******"}

        # Override args
        setattr(args, 'max_depth', 12)
        setattr(args, 'spider', False)

        # Create spider logger
        loggers['spider'] = setup_file_logger(args.workspace, "spider")

        # Start
        loggers['console'].info([
            smb_con.host, smb_con.ip, "GPP_PASSWORD",
            "Searching \\\\{}\\SYSVOL\\".format(target)
        ])
        spider(args, temp_config, loggers, smb_con.db, target, 'SYSVOL')
        loggers['console'].info(
            [smb_con.host, smb_con.ip,
             self.name.upper(), "Module complete"])
Exemplo n.º 2
0
def thread_launcher(target, args, lockout_obj, config_obj, db_obj, loggers):
    shares = host_enum(target, args, lockout_obj, config_obj, db_obj, loggers)
    if args.spider:
        for share in shares:
            if share not in config_obj.BLACKLIST_SHARE or args.share == share:
                spider(args, config_obj, loggers, db_obj, target, share)