def __init__(self, prompt_session): Loader.__init__(self) self.type = "module" self.paths = ["modules/"] self.name = 'modules' self.prompt = HTML('ST (<ansired>modules</ansired>) ≫ ') self.completer = STCompleter(self) self.prompt_session = prompt_session self.selected = None self.get_loadables()
def __init__(self, prompt_session): Loader.__init__(self) self.type = "module" self.paths = ["modules/ipy", "modules/boo"] self.name = 'modules' self.description = 'Module menu' self.prompt = HTML('ST (<ansired>modules</ansired>) ≫ ') self.completer = STCompleter(self) self.prompt_session = prompt_session self.selected = None self.get_loadables()
def __init__(self, prompt_session): Loader.__init__(self) self.type = "listener" self.paths = ["listeners/"] self.listeners = [] self.name = 'listeners' self.prompt = HTML('ST (<ansired>listeners</ansired>) ≫ ') self.completer = WordCompleter(['start', 'set', 'sessions', 'modules', 'stagers', 'options', 'use', 'exit', 'list'], ignore_case=True) self.prompt_session = prompt_session self.selected = None ipc_server.attach(GET_LISTENERS, self.__get_running_listeners) self.get_loadables()
def __init__(self, prompt_session): Loader.__init__(self) self.type = "listener" self.paths = ["listeners/"] self.listeners = [] self.name = 'listeners' self.prompt = HTML('ST (<ansired>listeners</ansired>) ≫ ') self.completer = STCompleter(self) self.prompt_session = prompt_session self.selected = None ipc_server.attach(GET_LISTENERS, self.__get_running_listeners) self.get_loadables()
def __init__(self, prompt_session): Loader.__init__(self) self.type = "stager" self.paths = ["stagers/"] self.name = 'stagers' self.description = 'Stager menu' self.prompt = HTML('ST (<ansired>stagers</ansired>) ≫ ') self.completer = STCompleter(self) self.prompt_session = prompt_session self.selected = None ipc_server.attach(events.GET_STAGERS, self.get_stagers) self.get_loadables()
def __init__(self, prompt_session): Loader.__init__(self) self.type = "stager" self.paths = ["stagers/"] self.name = 'stagers' self.description = 'Stager menu' self.prompt = HTML('ST (<ansired>stagers</ansired>) ≫ ') self.completer = STCompleter(self) self.prompt_session = prompt_session self.selected = None ipc_server.attach(events.GET_STAGERS, self.get_stagers) self.get_loadables()
def __init__(self, prompt_session): Loader.__init__(self) self.type = "module" self.paths = ["modules/"] self.name = 'modules' self.prompt = HTML('ST (<ansired>modules</ansired>) ≫ ') self.completer = WordCompleter([ 'set', 'use', 'run', 'sessions', 'stagers', 'list', 'listeners', 'options', 'exit' ], ignore_case=True) self.prompt_session = prompt_session self.selected = None self.get_loadables()
def __init__(self, prompt_session): Loader.__init__(self) self.type = "listener" self.paths = ["listeners/"] self.listeners = [] self.name = 'listeners' self.description = 'Listener menu' self.prompt = HTML('ST (<ansired>listeners</ansired>) ≫ ') self.completer = STCompleter(self) self.prompt_session = prompt_session self.selected = None ipc_server.attach(events.GET_LISTENERS, self.get_listeners) self.get_loadables()