From b3342d9d36161a438c03b84f3d0502ee3fe087c0 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Wed, 20 Apr 2022 13:51:36 -0600 Subject: [PATCH] misc.shodan: handle detail response --- src/modules/misc.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/misc.js b/src/modules/misc.js index 5776c77..645aa0a 100644 --- a/src/modules/misc.js +++ b/src/modules/misc.js @@ -340,6 +340,8 @@ shodan.callback = async function (msg, line) { res.json() ); + if (data.detail) return data.detail; + return { embed: { title: `Results for \`${data.ip}\``,