add_vhost_to_hosts
Adds a vhost entry to /etc/hosts in Kali WSL, mapping a hostname to an IP address so local penetration testing targets resolve correctly.
Instructions
Add a vhost entry to /etc/hosts in Kali WSL
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ip": "<ip>",
"vhost": "<vhost>"
},
"name": "add_vhost_to_hosts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | ||
| vhost | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |