php2shell-add-target-batch
Registers the URL in each input row as a scan target and adds the result to the row. A target already registered with the same host, port and path is skipped. Requires administrator permission.
php2shell-add-target-batch [field=VALUE] [probe=VALUE]
- field=VALUE
- Optional. Input field holding the URL. Default: url.
- probe=VALUE
- Optional. t also fetches the root page of each new target to decide whether it responds and whether it uses http or https. Default: f.
Output fields
| Field | Type | Name | Description |
|---|---|---|---|
| add_result | String | Result | e.g. added, skipped, invalid |
| target_guid | String | Target GUID | GUID of the stored target, e.g. 5b1c6e2a-8f4d-4e7b-9a31-0c2d7e9f1a44 |
| status | String | Status | e.g. PENDING, ALIVE, UNREACHABLE |
| scheme | String | Scheme | e.g. http, https |
| http_status | Integer | HTTP status | Root page HTTP status, e.g. 200 |
| add_error | String | Error | Reason it was not added, e.g. invalid host |