diff --git a/phutils.json b/phutils.json index 828f0d2..11edfd0 100644 --- a/phutils.json +++ b/phutils.json @@ -772,6 +772,68 @@ ], "versions": "EQ(*)" }, + { + "action": "defang url", + "description": "Returns defanged URLs", + "type": "generic", + "identifier": "defang_url", + "read_only": true, + "parameters": { + "url": { + "description": "url to defang", + "data_type": "string", + "contains": [ + "url" + ], + "required": true, + "primary": true + } + }, + "render": { + "type": "table", + "width": 2, + "height": 5, + "title": "Search Results" + }, + "output": [ + { + "data_path": "action_result.status", + "data_type": "string", + "column_name": "Status" + }, + { + "data_path": "action_result.parameter.url", + "data_type": "string", + "contains": [ + "url" + ], + "column_order": 0, + "column_name": "Fanged URL" + }, + { + "data_path": "action_result.data.*.defanged_url", + "data_type": "string", + "contains": [ + "url" + ], + "column_order": 1, + "column_name": "Defanged URL" + }, + { + "data_path": "action_result.summary.defanged_url", + "data_type": "string", + "contains": [ + "url" + ] + }, + { + "data_path": "action_result.message", + "data_type": "string", + "column_name": "Message" + } + ], + "versions": "EQ(*)" + }, { "action": "format string", "description": "Formats input data", @@ -1449,4 +1511,4 @@ "versions": "EQ(*)" } ] -} \ No newline at end of file +}