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

https://github.com/erran/emcshodanclient

Objective-C library for SHODAN
https://github.com/erran/emcshodanclient

Last synced: about 1 year ago
JSON representation

Objective-C library for SHODAN

Awesome Lists containing this project

README

          

# ECShodanClient
## Usage

Before you can use this Objective-C library to connect to the SHODAN API, you need to have an API key [from SHODAN](http://www.shodanhq.com/api_doc).

Create and initialize an instance of the ECShodanClient class:

```objective-c
#import "ECShodanClient.h"

ECShodanClient* api = [[ECShodanClient alloc] initWithAPIKey:@"Your API Key"];
```

Print a list of cisco-ios devices:

```objective-c
NSDictionary* result = [api search:@"cisco"];
int i = 0;
for (id __strong host in [result objectForKey:@"matches"]) {
host = [[result objectForKey:@"matches"] objectAtIndex:i];
i++;
NSLog(@"%@", [host objectForKey:@"ip"]);
}
```

Grab all information SHODAN has on a specific ip (4.59.125.121):

```objective-c
NSDictionary* host = [api host:@"4.59.125.121"];
NSLog(@"%@", host);
```