问题标签 [shodan]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
91 浏览

python - UnitTesting Shodan 数据

我想测试 Shodan 数据。数据包括时间戳、爬虫 ID、服务器操作系统等字段。这些内容在每次请求时都会发生变化。哇,我应该测试它们吗?

Shodan JSON 数据:

我的测试文件:

0 投票
2 回答
1817 浏览

port - 从 IP 地址查找设备信息

我有一个 IP 地址列表,它们可能是 IOT 设备。如何使用任何脚本/工具/服务找出设备的操作系统(我只有它的 IP 地址)?任何帮助将不胜感激。我是新来的。谢谢。

0 投票
1 回答
1128 浏览

python - How to run a python script from linux terminal when it imports libraries like shodan?

I included path as #!usr/bin/env python but then also I cannot import shodan from the command line but I can run the same program from python3 IDLE.

0 投票
1 回答
986 浏览

python - shodan - 国家代码 python

我想在 python 中列出我的脚本搜索特定字符串,但我也想添加国家代码前两个字母,但是当我尝试时它说无效 KeyError:'country_code',但 api 说 ocation.country_code 我怎么能做到这一点?

0 投票
1 回答
1536 浏览

python - 需要帮助从 Shodan Python API 获取 SSL CN

我正在使用此脚本来获取 shodan 搜索词 abc1234 的系统 IP,但我也想获取颁发给:SSL 证书的通用名称,但我无法弄清楚如何在 python API 中执行此操作。

0 投票
0 回答
1726 浏览

python - Python Shodan API - 无法使用过滤器进行搜索

当我尝试在 Python 中使用 Shodan API 搜索某些过滤器时,我只会收到错误消息。当我搜索单词作为示例时,我没有收到这些错误。我的 Python 代码:

那么实际的错误是什么?我有一个免费的 Shodan 帐户,当我在网站上搜索“port:21”时,我得到了结果。当我在脚本中执行此操作时,出现错误。

另外我想知道是否有可能通过整个数据库并获得超过 100 个结果。我考虑过使用 CIDR(例如 1.1.1.1/27)只搜索 100 以下的特殊范围并一遍又一遍地进行。但这甚至可能吗?或者有更有效的方法吗?

0 投票
0 回答
522 浏览

php - Php Shodan API - 无法使用 curl 进行搜索

当我尝试在带有 curl 的纯 php 中使用 Shodan API 进行搜索时,什么也没有发生。我的带有 curl 的 php 代码:

  • 那么问题是什么?并且总是可以将 API 与 curl 一起使用?
0 投票
1 回答
74 浏览

c# - 反序列化 shodan 数据

我在反序列化从 Shodan 获得的数据时遇到问题。下面是我从 json2csharp 得到的类,我正在尝试创建一个匹配数组并循环遍历它们。似乎我现在已经尝试了除了工作数组之外的所有东西。数据本身作为根与包含位置的对象匹配(带有自己的数据等)。一个除了下面我剪掉了一点。这是我的错误:无法将当前 JSON 对象(例如 {"name":"value"})反序列化为类型“Shodan.Match[]”,因为该类型需要 JSON 数组(例如 [1,2,3])正确反序列化。

0 投票
2 回答
1810 浏览

python - Shodan.py search doesn't print full result set when printing matches list

I'm trying to print out a full result list for a specific query I am performing, in the format IP:PORT. However it only prints a partial amount.

results['total'] prints 1799 (which is also the result amount when the search is performed on the Shodan website), however when printing the actual matches out, it only prints 99 results.

It probably is something elementary such as not showing all the result pages. I have a Shodan educational account.

Expected: 1799 results Actual: 100 results

Thanks in advance!

0 投票
1 回答
1067 浏览

shodan - 在某些字段上输出 json 文件而不使用 Shodan 过滤数据?

我从 Shodan 下载了一些 JSON 数据,只想保留其中的一些字段。为了探索我想要的东西,我正在运行以下命令,它有效 -

但是,我现在想输出/导出数据;我正在尝试运行以下 -

它要求我指定一个我不需要的过滤器参数。如果我确实添加了一个空过滤器,它会告诉我 data_processes.json.gz 不存在。

我对如何仅导出数据的某些字段感到有些困惑;我该怎么做呢?