misc.shodan: s/title/name

This commit is contained in:
Cynthia Foxwell 2022-04-20 13:46:53 -06:00
parent 66c963190d
commit fd7990aa3c

View file

@ -345,7 +345,7 @@ shodan.callback = async function (msg, line) {
title: `Results for \`${data.ip}\``, title: `Results for \`${data.ip}\``,
fields: [ fields: [
{ {
title: "Hostnames", name: "Hostnames",
value: value:
data.hostnames.length > 0 data.hostnames.length > 0
? data.hostnames.map((str) => `\`${str}\``).join("\n") ? data.hostnames.map((str) => `\`${str}\``).join("\n")
@ -353,12 +353,12 @@ shodan.callback = async function (msg, line) {
inline: true, inline: true,
}, },
{ {
title: "Open ports", name: "Open ports",
value: data.ports.length > 0 ? data.ports.join(", ") : "None", value: data.ports.length > 0 ? data.ports.join(", ") : "None",
inline: true, inline: true,
}, },
{ {
title: "Tags", name: "Tags",
value: value:
data.tags.length > 0 data.tags.length > 0
? data.tags.map((str) => `\`${str}\``).join(", ") ? data.tags.map((str) => `\`${str}\``).join(", ")
@ -366,7 +366,7 @@ shodan.callback = async function (msg, line) {
inline: true, inline: true,
}, },
{ {
title: "CPEs", name: "CPEs",
value: value:
data.cpes.length > 0 data.cpes.length > 0
? data.cpes.map((str) => `\`${str}\``).join("\n") ? data.cpes.map((str) => `\`${str}\``).join("\n")
@ -374,7 +374,7 @@ shodan.callback = async function (msg, line) {
inline: true, inline: true,
}, },
{ {
title: "Vulnerabilities", name: "Vulnerabilities",
value: value:
data.vulns.length > 0 data.vulns.length > 0
? data.vulns.map((str) => `\`${str}\``).join("\n") ? data.vulns.map((str) => `\`${str}\``).join("\n")