Shodan.Net
c# client for shodan.io api
Install / Use
/learn @TerribleDev/Shodan.NetREADME
Visit the official Shodan API documentation at:
This is still in active development, error handling might not well handle well. Best bet when working with any libraries you didn't write..harden your calls!
APi Docs
You can find doxygen docs here
Installation
install-package Shodan.Net
Getting started
You need to have an Api key. Get your api key here.
Create a shodan client. Note that ShodanClient inerhits from IDisposable, so you should wrap it in a using, or make sure it will be disposed. Shodan client is thread safe, so you should be able to keep 1 object around for many requests.
var client = new Shodan.Net.ShodanClient("myapiKey");
Now just query away. You should be able to find all the actions in the docs or just through the docs in intellisense.
await client.GetPortsAsync();
await client.GetHostAsync("172.1.1.0");
await client.GetMyIpAsync();
Searching
Searching shodan requires you to build up queries, and facets to make it easier we have used a generator pattern to produce queries.
await client.SearchHosts(
query: a => a.Withcity("boston")
.Withcountry("usa")
.Before(DateTime.Now.AddDays(-5)),
facet: b => b.WithAsn()
);
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
