def __init__(self, crawler): threading.Thread.__init__(self) self.sock = None self.crawler = crawler self.parser = UShell_json.json_factory().create_json_parser('pshell_json') self.portrange = [int(x) for x in crawler.settings.getlist('USHELLCONSOLE_PORT')] self.host = crawler.settings['USHELLCONSOLE_HOST']
def __init__(self): cmd.Cmd.__init__(self) self.prompt = '>' self.remote_address = [] self.sock = None self.parser = UShell_json.json_factory().create_json_parser('pshell_json') self.syscmdlist = [] self.do_bind("0.0.0.0", "31501") self.innercmd = [tcmd[3:] for tcmd in dir(self) if tcmd[:3] == "do_"]
def __init__(self): cmd.Cmd.__init__(self) self.prompt = '>' self.remote_address = [] self.sock = None self.parser = UShell_json.json_factory().create_json_parser( 'pshell_json') self.syscmdlist = [] self.do_bind("0.0.0.0", "31501") self.innercmd = [tcmd[3:] for tcmd in dir(self) if tcmd[:3] == "do_"]
def __init__(self, crawler): threading.Thread.__init__(self) self.sock = None self.crawler = crawler self.parser = UShell_json.json_factory().create_json_parser( 'pshell_json') self.portrange = [ int(x) for x in crawler.settings.getlist('USHELLCONSOLE_PORT') ] self.host = crawler.settings['USHELLCONSOLE_HOST']