47 lines · 1.5 KB · Python
RawDownload
# ------------------------------------------------------------# name      Fuzzbunch# type      exploit# cve       —# year      unknown# os        Windows# authors   unknown# source    RamadhanAmizudin/malware# archived  RamadhanAmizudin, krisyotam (2026)# notes     —# ------------------------------------------------------------ import opsimport ops.cmdimport ops.envimport ops.cmd.safetychecksVALID_OPTIONS = ['all', 'permanent', 'cached'] class PasswordDumpCommand(ops.cmd.DszCommand, ):     def __init__(self, plugin='passworddump', **optdict):        ops.cmd.DszCommand.__init__(self, plugin, **optdict)     def validateInput(self):        truecount = 0        for optkey in self.optdict:            optval = self.optdict[optkey]            if (type(optval) is not bool):                try:                    optval = bool(optval)                    self.optdict[optkey] = optval                except:                    return False            if optval:                truecount += 1        if (truecount > 1):            return False        return True def mySafetyCheck(self):    if (self.validateInput() and (ops.env.get('OPS_NOINJECT').upper() != 'TRUE')):        return (True, '')    else:        return (False, 'OPS_NOINJECT is set to TRUE, you should probably not run passworddump')ops.cmd.command_classes['passworddump'] = PasswordDumpCommandops.cmd.aliasoptions['passworddump'] = VALID_OPTIONSops.cmd.safetychecks.addSafetyHandler('passworddump', 'ops.cmd.passworddump.mySafetyCheck')

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t