本文整理汇总了Python中core.module.Module.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Module.__init__方法的具体用法?Python Module.__init__怎么用?Python Module.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core.module.Module
的用法示例。
在下文中一共展示了Module.__init__方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from core.module import Module [as 别名]
# 或者: from core.module.Module import __init__ [as 别名]
def __init__(self, modhandler, url, password):
self.rand_post_addr = ''.join([choice('abcdefghijklmnopqrstuvwxyz') for i in xrange(4)])
self.rand_post_port = ''.join([choice('abcdefghijklmnopqrstuvwxyz') for i in xrange(4)])
Module.__init__(self, modhandler, url, password)
示例2: __init__
# 需要导入模块: from core.module import Module [as 别名]
# 或者: from core.module.Module import __init__ [as 别名]
def __init__(self, modhandler, url, password):
self.cwd_vector = None
self.path = None
self.proxy = None
self.modhandler = modhandler
self.post_data = {}
self.current_mode = None
self.use_current_path = True
self.available_modes = self.params.get_parameter_choices('mode')
mode = self.params.get_parameter_value('mode')
if mode:
self.modes = [ mode ]
else:
self.modes = self.available_modes
proxy = self.params.get_parameter_value('proxy')
if proxy:
self.mprint('[!] Proxies can break weevely requests, if possibile use proxychains')
self.proxy = { 'http' : proxy }
Module.__init__(self, modhandler, url, password)
示例3: __init__
# 需要导入模块: from core.module import Module [as 别名]
# 或者: from core.module.Module import __init__ [as 别名]
def __init__( self, modhandler , url, password):
self.probe_filename = ''.join(choice(letters) for i in xrange(4)) + '.html'
self.found_url = None
self.found_dir = None
Module.__init__(self, modhandler, url, password)
示例4: __init__
# 需要导入模块: from core.module import Module [as 别名]
# 或者: from core.module.Module import __init__ [as 别名]
def __init__(self, modhandler, url, password):
self.encoder_callable = False
self.md5_callable = False
self.payload = None
self.vector = None
self.interpreter = None
self.transfer_dir = None
self.transfer_url_dir = None
self.lastreadfile = ''
Module.__init__(self, modhandler, url, password)
示例5: P
# 需要导入模块: from core.module import Module [as 别名]
# 或者: from core.module.Module import __init__ [as 别名]
P(arg='cmd', help='Shell command', required=True, pos=0),
P(arg='stderr', help='Print standard error', default=True, type=bool)
)
def __init__( self, modhandler , url, password):
self.payload = None
self.cwd_vector = None
try:
modhandler.load('shell.php')
except ModuleException, e:
raise
else:
Module.__init__(self, modhandler, url, password)
def __execute_probe(self, vector):
try:
rand = random.randint( 11111, 99999 )
response = self.run_module( "echo %d" % rand, True, vector.payloads[0] )
if response == str(rand):
self.params.set_and_check_parameters({'vector' : vector.name})
return True
except:
#pass
示例6: __init__
# 需要导入模块: from core.module import Module [as 别名]
# 或者: from core.module.Module import __init__ [as 别名]
def __init__(self, modhandler, url, password):
Module.__init__(self, modhandler, url, password)
self.file_content = None
self.rand_post_name = ''.join([choice('abcdefghijklmnopqrstuvwxyz') for i in xrange(4)])
示例7: __init__
# 需要导入模块: from core.module import Module [as 别名]
# 或者: from core.module.Module import __init__ [as 别名]
def __init__( self, modhandler , url, password):
self.structure = {}
Module.__init__(self, modhandler, url, password)
示例8: __init__
# 需要导入模块: from core.module import Module [as 别名]
# 或者: from core.module.Module import __init__ [as 别名]
def __init__( self, modhandler , url, password):
self.chunksize = 5000
self.substitutive_wl = []
Module.__init__(self, modhandler, url, password)
示例9: __init__
# 需要导入模块: from core.module import Module [as 别名]
# 或者: from core.module.Module import __init__ [as 别名]
def __init__(self, modhandler, url, password):
self.ifaces = {}
Module.__init__(self, modhandler, url, password)
示例10: __init__
# 需要导入模块: from core.module import Module [as 别名]
# 或者: from core.module.Module import __init__ [as 别名]
def __init__( self, modhandler , url, password):
Module.__init__(self, modhandler, url, password)
self.usersfiles = {}
示例11: __init__
# 需要导入模块: from core.module import Module [as 别名]
# 或者: from core.module.Module import __init__ [as 别名]
def __init__(self, modhandler, url, password):
self.list = []
Module.__init__(self, modhandler, url, password)
示例12: __init__
# 需要导入模块: from core.module import Module [as 别名]
# 或者: from core.module.Module import __init__ [as 别名]
def __init__( self, modhandler , url, password):
self.last_vector = None
self.done = False
Module.__init__(self, modhandler, url, password)
示例13: __init__
# 需要导入模块: from core.module import Module [as 别名]
# 或者: from core.module.Module import __init__ [as 别名]
def __init__(self, modhandler, url, password):
self.pathdict = {}
Module.__init__(self, modhandler, url, password)
示例14: __init__
# 需要导入模块: from core.module import Module [as 别名]
# 或者: from core.module.Module import __init__ [as 别名]
def __init__(self, modhandler, url, password):
self.reqlist = RequestList(modhandler)
Module.__init__(self, modhandler, url, password)