本文整理汇总了Python中lazagne.config.module_info.ModuleInfo类的典型用法代码示例。如果您正苦于以下问题:Python ModuleInfo类的具体用法?Python ModuleInfo怎么用?Python ModuleInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ModuleInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, safe_storage_key=None):
ModuleInfo.__init__(self, 'chrome', 'browsers')
login_data_path = '/Users/*/Library/Application Support/Google/Chrome/*/Login Data'
cc_data_path = '/Users/*/Library/Application Support/Google/Chrome/*/Web Data'
self.chrome_data = glob.glob(login_data_path) + glob.glob(cc_data_path)
self.safe_storage_key = safe_storage_key
示例2: __init__
def __init__(self):
ModuleInfo.__init__(self, 'hashdump', 'system')
self.username = None
self.iterations = None
self.salt_hex = None
self.entropy_hex = None
示例3: __init__
def __init__(self):
self.appid = 'Get KDE keyring'
self.bus_info = [
('org.kde.kwalletd', '/modules/kwalletd'),
('org.kde.kwalletd5', '/modules/kwalletd5')
]
ModuleInfo.__init__(self, 'kwallet', 'wallet')
示例4: __init__
def __init__(self):
ModuleInfo.__init__(self, 'robomongo', 'databases')
self.paths = [
{
'directory': u'.config/robomongo',
'filename': u'robomongo.json',
},
{
'directory': u'.3T/robo-3t/1.1.1',
'filename': u'robo3t.json',
}
]
示例5: __init__
def __init__(self):
ModuleInfo.__init__(self, 'mimipy', 'memory')
self.shadow_hashes = []
self.rules = [
{
"desc": "[SYSTEM - GNOME]",
"process": r"gnome-keyring-daemon|gdm-password|gdm-session-worker",
"near": r"libgcrypt\.so\..+|libgck\-1\.so\.0|_pammodutil_getpwnam_|gkr_system_authtok",
"func": self.test_shadow,
},
{
"desc": "[SYSTEM - LightDM]", # Ubuntu/xubuntu login screen :) https://doc.ubuntu-fr.org/lightdm
"process": r"lightdm",
"near": r"_pammodutil_getpwnam_|gkr_system_authtok",
"func": self.test_shadow,
},
{
"desc": "[SYSTEM - SSH Server]",
"process": r"/sshd$",
"near": r"sudo.+|_pammodutil_getpwnam_",
"func": self.test_shadow,
},
{
"desc": "[SSH Client]",
"process": r"/ssh$",
"near": r"sudo.+|/tmp/ICE-unix/[0-9]+",
"func": self.test_shadow,
},
{
"desc": "[SYSTEM - VSFTPD]",
"process": r"vsftpd",
"near": r"^::.+\:[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$",
"func": self.test_shadow,
},
]
regex_type = type(re.compile("^plop$"))
# precompile regexes to optimize speed
for x in self.rules:
if "near" in x:
if type(x["near"]) != regex_type:
x["near"] = re.compile(x["near"])
if "process" in x:
if type(x["process"]) != regex_type:
x["process"] = re.compile(x["process"])
self.look_after_size = 1000 * 10 ** 3
self.look_before_size = 500 * 10 ** 3
示例6: __init__
def __init__(self):
ModuleInfo.__init__(self, 'clawsmail', 'mails')
示例7: __init__
def __init__(self, browser_name, paths):
self.paths = paths if isinstance(paths, list) else [paths]
self.database_query = 'SELECT action_url, username_value, password_value FROM logins'
ModuleInfo.__init__(self, browser_name, 'browsers', winapi_used=True)
示例8: __init__
def __init__(self):
ModuleInfo.__init__(self, 'lsa_secrets', 'windows', system_module=True)
示例9: __init__
def __init__(self):
ModuleInfo.__init__(self, 'coreftp', 'sysadmin')
self._secret = "hdfzpysvpzimorhk"
示例10: __init__
def __init__(self):
ModuleInfo.__init__(self, name='postgresql', category='databases')
示例11: __init__
def __init__(self):
ModuleInfo.__init__(self, 'credfiles', 'windows', dpapi_used=True)
示例12: __init__
def __init__(self, browser_name, path):
self.path = path
ModuleInfo.__init__(self, browser_name, 'browsers')
示例13: __init__
def __init__(self):
ModuleInfo.__init__(self, 'tortoise', 'svn', winapi_used=True)
示例14: __init__
def __init__(self):
self.vnckey = [23, 82, 107, 6, 35, 78, 88, 7]
ModuleInfo.__init__(self, name='vnc', category='sysadmin')
示例15: __init__
def __init__(self):
ModuleInfo.__init__(self, 'mavenrepositories', 'maven')
# 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}"