本文整理汇总了Python中lazagne.config.moduleInfo.ModuleInfo类的典型用法代码示例。如果您正苦于以下问题:Python ModuleInfo类的具体用法?Python ModuleInfo怎么用?Python ModuleInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ModuleInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, isThunderbird=False):
self.credentials_categorie = None
self.toCheck = []
self.manually_pass = None
self.dictionary_path = None
self.number_toStop = None
self.key3 = ''
# Manage options
suboptions = [{'command': '-m', 'action': 'store', 'dest': 'manually',
'help': 'enter the master password manually',
'title': 'Advanced Mozilla master password options'},
{'command': '-s', 'action': 'store', 'dest': 'specific_path',
'help': 'enter the specific path to a profile you want to crack',
'title': 'Advanced Mozilla master password options'}]
if not isThunderbird:
options = {'command': '-f', 'action': 'store_true',
'dest': 'firefox', 'help': 'firefox'}
ModuleInfo.__init__(self, 'firefox', 'browsers', options,
suboptions)
else:
options = {'command': '-t', 'action': 'store_true',
'dest': 'thunderbird', 'help': 'thunderbird'}
ModuleInfo.__init__(self, 'thunderbird', 'browsers', options,
suboptions)
示例2: __init__
def __init__(self):
options = {'command': '-s', 'action': 'store_true', 'dest': 'sqldeveloper', 'help': 'sqldeveloper'}
ModuleInfo.__init__(self, 'sqldeveloper', 'database', options, need_to_be_in_env=False)
self._salt = self.get_salt()
self._passphrase = None
self._iteration = 42
示例3: __init__
def __init__(self):
self.hash = ''
self.username = ''
self.hostname = ''
options = {'command': '-scp', 'action': 'store_true', 'dest': 'winscp', 'help': 'winscp'}
ModuleInfo.__init__(self, 'winscp', 'sysadmin', options, cannot_be_impersonate_using_tokens=True)
示例4: __init__
def __init__(self):
options = {'command': '-d', 'action': 'store_true', 'dest': 'dbvis', 'help': 'dbvisualizer'}
ModuleInfo.__init__(self, 'dbvis', 'database', options, need_to_be_in_env=False)
self._salt = self.get_salt()
self._passphrase = 'qinda'
self._iteration = 10
示例5: __init__
def __init__(self):
self.hash = ''
self.username = ''
self.hostname = ''
options = {'command': '-scp', 'action': 'store_true', 'dest': 'winscp', 'help': 'winscp'}
ModuleInfo.__init__(self, 'winscp', 'sysadmin', options)
示例6: __init__
def __init__(self):
# Manage options
options = {'command': '-s', 'action': 'store_true', 'dest': 'shadow', 'help': '/etc/shadow - Need root Privileges'}
ModuleInfo.__init__(self, 'shadow', 'sysadmin', options)
self.filestr = '/etc/shadow'
self.hash = '\n'
self.pwdFound = []
示例7: __init__
def __init__(self):
options = {'command': '-s', 'action': 'store_true', 'dest': 'secrets', 'help': 'Windows secrets (hashes, lsa secrets, etc.)'}
ModuleInfo.__init__(self, 'Windows secrets', 'windows', options)
self.sysFile = ['sam', 'security', 'system']
self.address = 'LOCAL'
self.ntds = os.environ['systemroot'] + os.sep + 'ntds' + os.sep + 'ntds.dit'
if not os.path.exists(self.ntds):
self.ntds = None
self.history = True
示例8: __init__
def __init__(self):
options = {'command': '-j', 'action': 'store_true', 'dest': 'jitsi', 'help': 'jitsi'}
suboptions = [{'command': '-ma', 'action': 'store', 'dest': 'master_pwd', 'help': 'enter the master password manually', 'title': 'Advanced jitsi option'}]
ModuleInfo.__init__(self, 'jitsi', 'chats', options, suboptions)
self.keylen = 32
self.iterations = 1024
self.padding = '\f'
self.account_id = ''
self.master_password_used = False
self.masterpass = ' '
示例9: __init__
def __init__(self):
options = {'command': '--hash', 'action': 'store_true', 'dest': 'hashdump', 'help': 'retrieve Windows hashes'}
ModuleInfo.__init__(self, 'hashes', 'windows', options, need_system_privileges=True)
self.FILTER=''.join([(len(repr(chr(x)))==3) and chr(x) or '.' for x in range(256)])
if not constant.hives:
tmp = tempfile.gettempdir()
constant.hives = {
'sam' : os.path.join(tmp, ''.join([random.choice(string.ascii_lowercase) for x in range(0, random.randint(6, 12))])),
'security' : os.path.join(tmp, ''.join([random.choice(string.ascii_lowercase) for x in range(0, random.randint(6, 12))])),
'system' : os.path.join(tmp, ''.join([random.choice(string.ascii_lowercase) for x in range(0, random.randint(6, 12))]))
}
示例10: __init__
def __init__(self):
options = {"command": "-k", "action": "store_true", "dest": "kwallet", "help": "KWallet"}
ModuleInfo.__init__(self, "libsecret", "wallet", options)
示例11: __init__
def __init__(self):
options = {'command': '-g', 'action': 'store_true', 'dest': 'galconfusion', 'help': 'galconfusion'}
ModuleInfo.__init__(self, 'galconfusion', 'games', options, cannot_be_impersonate_using_tokens=True)
示例12: __init__
def __init__(self):
options = {'command': '-d', 'action': 'store_true', 'dest': 'dotnet', 'help': 'domain visible network (.Net Passport) Passwords'}
ModuleInfo.__init__(self, 'Dot Net', 'windows', options)
示例13: __init__
def __init__(self):
options = {'command': '-s', 'action': 'store_true', 'dest': 'skype', 'help': 'skype'}
ModuleInfo.__init__(self, 'skype', 'chats', options)
self.pwdFound = []
示例14: __init__
def __init__(self):
options = {'command': '-e', 'action': 'store_true', 'dest': 'Internet Explorer', 'help': 'internet explorer (stored in registry and using the credential manager)'}
suboptions = [{'command': '-l', 'action': 'store', 'dest': 'historic', 'help': 'text file with a list of websites', 'title': 'Advanced ie option'}]
ModuleInfo.__init__(self, 'ie', 'browsers', options, suboptions, cannot_be_impersonate_using_tokens=True)
示例15: __init__
def __init__(self):
options = {'command': '-mvn', 'action': 'store_true', 'dest': 'mavenrepositories', 'help': 'Maven repositories'}
ModuleInfo.__init__(self, 'mavenrepositories', 'maven', options)
# Interesting XML nodes in Maven repository configuration
self.nodes_to_extract = ["id", "username", "password", "privateKey", "passphrase"]
self.settings_namespace = "{http://maven.apache.org/SETTINGS/1.0.0}"