def validate_stager(stager): stagers = Loader() stagers.type = "stager" stagers.paths = ["stagers/"] stagers.get_loadables() for s in stagers.loaded: if s.name == stager.lower(): return s return None
def validate_listener(listener): listeners = Loader() listeners.type = "listener" listeners.paths = ["listeners/"] listeners.get_loadables() for l in listeners.loaded: if l.name == listener.name: l['BindIP'] = listener['BindIP'] l['Port'] = listener['Port'] return l return None