Ejecutar exploit
AI-generatedSummary
Execute a Metasploit module exploit against a specified target host using the n8n-tools backend, optionally specifying a payload and additional module options.
Inputs
- n8n-tools Base URL (required) — The base URL of the n8n-tools container hosting the Metasploit RPC backend (e.g., http://root-n8n-tools-1:3000). Configure this as seen from the n8n container.
- API Token (required) — The Metasploit RPC token acquired from auth.login on your Metasploit backend, used for authentication.
- Tipo de módulo (required) — The Metasploit module type to run (e.g., Exploit, Auxiliary, Post, Payload). Defaults to 'exploit'.
- Nombre del módulo (required) — The path/name of the Metasploit module to run (e.g., windows/smb/ms17_010_eternalblue).
- Host objetivo (RHOSTS) (required) — The target host IP or hostname to set as RHOSTS for the exploit module.
- Payload (opcional) — Optional payload to use with the exploit, if supported by the backend (e.g., windows/x64/meterpreter/reverse_tcp).
- Opciones extra (JSON) — Additional module options as a JSON string (e.g., {"RPORT":445,"SSL":true}) which are merged with the basic options like RHOSTS for the module execution.
Output shape
a single JSON object per input item containing the response from the Metasploit RPC backend after attempting to run the exploit module.
The returned JSON includes the backend's result or error messages. Make sure 'Opciones extra (JSON)' is valid JSON, or the node will return an error for that item.
Examples
Example 1: Run the ms17_010_eternalblue exploit against a target host 192.168.1.10 with a specified payload and port option.
Set 'baseUrl' to the n8n-tools API URL, provide valid 'token', choose 'exploit' as 'moduleType', input 'windows/smb/ms17_010_eternalblue' as 'moduleName', target host as '192.168.1.10', set the payload to 'windows/x64/meterpreter/reverse_tcp', and additional options JSON: '{"RPORT":445}'.