Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/achillean/Shodan.NET
.NET Class library for Shodan
https://github.com/achillean/Shodan.NET
Last synced: about 6 hours ago
JSON representation
.NET Class library for Shodan
- Host: GitHub
- URL: https://github.com/achillean/Shodan.NET
- Owner: achillean
- Created: 2011-02-09T00:33:22.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-02-09T01:04:40.000Z (almost 14 years ago)
- Last Synced: 2024-11-14T13:43:30.666Z (3 days ago)
- Language: C#
- Homepage: http://www.shodanhq.com
- Size: 165 KB
- Stars: 11
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-ip-search-engines - Shodan.NET
README
## Introduction
The Shodan.NET class library provides a WebAPI class to Search() and GetHost()-information. It currently relies .NET 4.0 and help is welcome for making it compatible with earlier .NET releases.
## Usage
Before you can use the API, you need to have an API key.
[Get your API key here](http://www.shodanhq.com/api_doc)
Setup the SHODAN WebAPI:
using Shodan;
WebAPI api = new WebAPI("YOUR KEY");Print a list of cisco-ios devices:
SearchResult results = api.Search("cisco-ios");
Console.WriteLine("Total: " + results.NumResults);
foreach (Host h in results.Hosts)
{
Console.WriteLine(h.IP.ToString());
}Get all the information SHODAN has on the IP 217.140.75.46:
Host host = api.GetHost("217.140.75.46");
Console.WriteLine(host.IP.ToString());