Beispiel #1
0
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
Beispiel #2
0
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
Beispiel #3
0
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
Beispiel #4
0
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