webserv

Start a http-server and share a file. This command will return after the first HTTP-request. To keep serving the file instead set keep_serving to True. The webserv command has to be run in background mode, otherwise the playbook execution will halt until a request is received. .. code-block:: yaml

### commands:

  • type: webserv local_path: “/tmp/webshell.php” port: 8000

local_path

Path to the file to share

Type:

str

Required:

True

port

Port to listen

Type:

int

Default:

8000

address

Address to listen

Type:

str

Default:

0.0.0.0

keep_servng

Keep serving even after a request has been processed

Type:

bool

Default:

False