Description
Runs the specified SpecterScript with the provided arguments. IMPORTANT: Script parameters (Username, Password, Target, etc.) must go INSIDE the Arguments object, NOT as top-level tool arguments.
Notes:
You are responsible for finding the arguments to execute this tool yourself. At a minimum you need to identify the appropriate session using the SessionsList tool. You must do this yourself. Do not ask the user to do it for you.
The tool accepts ONLY these top-level arguments: SessionId, Name, ParameterSet, Arguments, WaitFor. All script-specific parameters (Username, Password, Target, Ports, etc.) go INSIDE the Arguments object.
Example:
{
"function_call": {
"name": "SessionsRunSpecterScript",
"arguments": {
"SessionId": "<get the sessionId from SessionsList>",
"Name": "Port Scan Local Network",
"ParameterSet": "Default",
"Arguments": {
"Ports": [22, 3389],
"ThreadCount": 64,
"Timeout": 1250
}
}
}
}
WRONG (do NOT do this — script params as top-level args):
{
"SessionId": "abc", "Name": "My Script", "Ports": [22], "ThreadCount": 64
}
CORRECT (script params nested inside Arguments):
{
"SessionId": "abc", "Name": "My Script", "Arguments": { "Ports": [22], "ThreadCount": 64 }
}
