3 lines
202 B
Bash
Executable file
3 lines
202 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
xq -r '[ .NessusClientData_v2.Report.ReportHost | if (. | type == "array") then .[] else . end | (.ReportItem[] + {ip:."@name"})] | .[] | select(."@pluginName" == "'"$1"'") | .ip'
|