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