Skip to content

achillean/Shodan.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

.NET Class library for Shodan

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages