本文整理汇总了Python中module.Module方法的典型用法代码示例。如果您正苦于以下问题:Python module.Module方法的具体用法?Python module.Module怎么用?Python module.Module使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类module
的用法示例。
在下文中一共展示了module.Module方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def __init__(self):
information = {"Name": "DCOM-ShellWindows",
"Description": "Lateral Movement DCOM",
"Author": "Matt Nelson",
"Link": "https://www.cybereason.com/blog/dcom-lateral-movement-techniques",
"License": "BSD 3-Clause",
"Module": "@pablogonzalezpe, @josueencinar"}
# -----------name-----default_value--description--required?
options = {"warrior": [None, "Warrior in war", True],
"target": [None, "Windows IP you want to access", True],
"instruction": [None, "PS Code to execute in the remote machine", True]}
# Constructor of the parent class
super(CustomModule, self).__init__(information, options)
# This module must be always implemented, it is called by the run option
示例2: __init__
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def __init__(self):
information = {"Name": "Invoke-SMBExec",
"Description": "Execute SMBExec",
"Author": "Kevin Robertson",
"Link": "https://github.com/Kevin-Robertson/Invoke-TheHash",
"License": "BSD 3-Clause",
"Module": "@pablogonzalezpe, @toolsprods"}
# -----------name-----default_value--description--required?
options = {"warrior": [None, "Warrior in war", True],
"target": [None, "IP remote machine", True],
"domain": ["WORKGROUP", "Domain or WORKGROUP", True],
"username": ["Administrator", "Username", True],
"command": ["echo pwned > proof.txt", "Command to execute", True],
"hash": [None, "NTLM Hash", True]}
# Constructor of the parent class
super(CustomModule, self).__init__(information, options)
# This module must be always implemented, it is called by the run option
示例3: __init__
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def __init__(self):
information = {"Name": "MMC20-ExecuteShellCommand",
"Description": "Lateral Movement MMC20",
"Author": "Matt Nelson",
"Link": "https://enigma0x3.net/2017/01/05/lateral-movement-using-the-mmc20-application-com-object/",
"License": "BSD 3-Clause",
"Module": "@josueencinar, @pablogonzalezpe"}
# -----------name-----default_value--description--required?
options = {"warrior": [None, "Warrior in war", True],
"target": [None, "Windows IP you want to access", True],
"instruction": [None, "PS Code to execute in the remote machine", True]}
# Constructor of the parent class
super(CustomModule, self).__init__(information, options)
# This module must be always implemented, it is called by the run option
示例4: __init__
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def __init__(self):
information = {"Name": "RID hijacking",
"Description": "Runs Invoke-RIDHijacking. Allows setting desired privileges to an existent account"
" by modifying the Relative Identifier value copy used to create the primary access token."
" This module needs administrative privileges.",
"Author": "Sebastian Castro @r4wd3r",
"Link": "https://github.com/r4wd3r/RID-Hijacking",
"License": "BSD 3-Clause",
"Module": "@r4wd3r"}
# -----------name-----default_value--description--required?
options = {"warrior": [None, "Warrior in war", True],
"RID": ["500", "RID to set to the specified account. Default 500.", True],
"user": [None, "User to set the defined RID.", False],
"useguest": [None, "Set the defined RID to the Guest account.", False],
"password": [None, "Password to set to the defined account.", False],
"enable": [None, "Enable the defined account.", False]
}
# Constructor of the parent class
super(CustomModule, self).__init__(information, options)
# This module must be always implemented, it is called by the run option
示例5: __init__
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def __init__(self):
information = {"Name": "Portscan",
"Description": "Portscan for ibombshell",
"Author": "Rich Lundeen",
"Link": "https://github.com/PowerShellMafia/PowerSploit",
"License": "BSD 3-Clause",
"Module": "@pablogonzalezpe, @toolsprods"}
# -----------name-----default_value--description--required?
options = {"warrior": [None, "Warrior in war", True],
"hosts": ["127.0.0.1", "Hosts to scan", True],
"port": ["20-500", "Ports to scan", True]}
# Constructor of the parent class
super(CustomModule, self).__init__(information, options)
# This module must be always implemented, it is called by the run option
示例6: get_module
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def get_module(self):
"""
@rtype: L{Module}
@return: Module object for the newly loaded DLL.
"""
lpBaseOfDll = self.get_module_base()
aProcess = self.get_process()
if aProcess.has_module(lpBaseOfDll):
aModule = aProcess.get_module(lpBaseOfDll)
else:
# XXX HACK
# For some reason the module object is missing, so make a new one.
aModule = Module(lpBaseOfDll,
hFile = self.get_file_handle(),
fileName = self.get_filename(),
process = aProcess)
aProcess._add_module(aModule)
return aModule
示例7: __init__
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def __init__(self):
information = {"Name": "invoke-environmentinjection",
"Description": "UAC bypass environment injection",
"Author": "@pablogonzalezpe",
"Module": "@pablogonzalezpe, @toolsprods"}
# -----------name-----default_value--description--required?
options = {"warrior": [None, "Warrior in war", True],
"ip": [None, "Remote machine IP", True],
"port": [None, "Remote machine port", True],}
# Constructor of the parent class
super(CustomModule, self).__init__(information, options)
# This module must be always implemented, it is called by the run option
示例8: __init__
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def __init__(self):
information = {"Name": "PowerDump",
"Description": "Hash Dump :)",
"Author": "Carlos Pérez - Darkoperator",
"Link": "https://github.com/EmpireProject/Empire",
"License": "BSD 3-Clause",
"Module": "@pablogonzalezpe, @toolsprods"}
# -----------name-----default_value--description--required?
options = {"warrior": [None, "Warrior in war", True]}
# Constructor of the parent class
super(CustomModule, self).__init__(information, options)
# This module must be always implemented, it is called by the run option
示例9: _available
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def _available(self):
if self.i2c.is_ready(LEGO_BOARD_I2C_ADDR) or self.i2c.is_ready(LEGO_BOARD_I2C_ADDR):
pass
else:
raise module.Module("Lego module maybe not connect")
示例10: _available
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def _available(self):
if self.i2c.is_ready(M5GO_WHEEL_ADDR) or self.i2c.is_ready(M5GO_WHEEL_ADDR):
pass
else:
raise module.Module("Bala maybe not connect")
示例11: _available
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def _available(self):
if self.i2c.is_ready(_addr) or self.i2c.is_ready(_addr):
pass
else:
raise module.Module('module Servo maybe not connect')
示例12: _available
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def _available(self):
if self.i2c.is_ready(self.addr) or self.i2c.is_ready(self.addr):
pass
else:
raise module.Module("Module Step motor maybe not connect")
# 1.6 = 360°
示例13: __init__
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def __init__(self):
self.uart = machine.UART(1, tx=17, rx=16)
self.uart.init(9600, bits=8, parity=None, stop=1)
self.callback = None
if self._reset() == 1:
raise module.Module('Module lorawan not connect')
self._timer = None
self.uartString = ''
time.sleep(2)
示例14: __init__
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def __init__(self):
info = {"Name": "SUID Root files",
"Author": "Josue Encinar",
"Description": "Module to find files with setuid Root",
}
options = {
"recursive": ["Check all files from option path", True, False],
"path": ["Path to check", "/", False],
"file": ["File to dump results", "files/output/suid_sgid_root.txt", True]
}
super(BoomerModule, self).__init__(options,info)
示例15: __init__
# 需要导入模块: import module [as 别名]
# 或者: from module import Module [as 别名]
def __init__(self):
info = {"Name": "SysGauge - DoS",
"Module Author": "Josue Encinar",
"Exploit Author": "Hashim Jawad ",
"Description": "SysGauge v4.5.18 - Local Denial of Service",
"Reference": "https://www.exploit-db.com/exploits/44372/",
}
options = {
"file": ["File to dump payload", "files/output/sysgauge.txt", True]
}
super(BoomerModule, self).__init__(options,info)