misc.shodan: separate hostname/cpe/vulns by space instead of newline

This commit is contained in:
Cynthia Foxwell 2023-01-02 19:53:10 -07:00
parent cb89908b93
commit ce2e4fd397

View file

@ -445,7 +445,7 @@ shodan.callback = async function (msg, line) {
name: "Hostnames",
value:
data.hostnames.length > 0
? data.hostnames.map((str) => `\`${str}\``).join("\n")
? data.hostnames.map((str) => `\`${str}\``).join(" ")
: "None",
inline: true,
},
@ -466,7 +466,7 @@ shodan.callback = async function (msg, line) {
name: "CPEs",
value:
data.cpes.length > 0
? data.cpes.map((str) => `\`${str}\``).join("\n")
? data.cpes.map((str) => `\`${str}\``).join(" ")
: "None",
inline: true,
},
@ -474,7 +474,7 @@ shodan.callback = async function (msg, line) {
name: "Vulnerabilities",
value:
data.vulns.length > 0
? data.vulns.map((str) => `\`${str}\``).join("\n")
? data.vulns.map((str) => `\`${str}\``).join(" ")
: "None",
inline: true,
},