当前位置: 首页>>代码示例>>Python>>正文


Python module.Module方法代码示例

本文整理汇总了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 
开发者ID:ElevenPaths,项目名称:ibombshell,代码行数:19,代码来源:dcom-shellwindows.py

示例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 
开发者ID:ElevenPaths,项目名称:ibombshell,代码行数:22,代码来源:invoke-smbexec.py

示例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 
开发者ID:ElevenPaths,项目名称:ibombshell,代码行数:19,代码来源:mmc20-executeshellcommand.py

示例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 
开发者ID:ElevenPaths,项目名称:ibombshell,代码行数:25,代码来源:invoke-ridhijacking.py

示例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 
开发者ID:ElevenPaths,项目名称:ibombshell,代码行数:20,代码来源:invoke-portscan.py

示例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 
开发者ID:debasishm89,项目名称:OpenXMolar,代码行数:20,代码来源:event.py

示例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 
开发者ID:ElevenPaths,项目名称:ibombshell,代码行数:17,代码来源:invoke-environmentinjection.py

示例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 
开发者ID:ElevenPaths,项目名称:ibombshell,代码行数:17,代码来源:invoke-powerdump.py

示例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") 
开发者ID:m5stack,项目名称:UIFlow-Code,代码行数:7,代码来源:_legoBoard.py

示例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") 
开发者ID:m5stack,项目名称:UIFlow-Code,代码行数:7,代码来源:_lego.py

示例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') 
开发者ID:m5stack,项目名称:UIFlow-Code,代码行数:7,代码来源:_servo.py

示例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° 
开发者ID:m5stack,项目名称:UIFlow-Code,代码行数:9,代码来源:_stepMotor.py

示例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) 
开发者ID:m5stack,项目名称:UIFlow-Code,代码行数:11,代码来源:_lorawan.py

示例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) 
开发者ID:Josue87,项目名称:BoomER,代码行数:13,代码来源:suid_sgid_root.py

示例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) 
开发者ID:Josue87,项目名称:BoomER,代码行数:13,代码来源:sys_gauge.py


注:本文中的module.Module方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。