Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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());