webserv
Start a simple HTTP server to serve a single file. By default, the server stops after
handling the first request. Set keep_serving to True to continue serving.
Warning
This command blocks until a request is received. Always run it in
background mode to avoid halting playbook execution.
commands:
- type: webserv
local_path: "/tmp/webshell.php"
port: 8000
background: true
- local_path
Path to the file to serve.
- Type:
str
- Required:
True
- port
Port to listen on.
- Type:
int
- Default:
8000- Required:
False
- address
Address to listen on.
- Type:
str
- Default:
0.0.0.0- Required:
False
- keep_serving
Continue serving the file after the first request has been handled.
- Type:
bool
- Default:
False- Required:
False