|
Showdan.Net
c# client for the shodan api
|
Main mechanism to talk to the shodan api. This is what you should use to interact with the api More...
Public Member Functions | |
| ShodanClient (string apikey) | |
| Task< Dictionary< string, string > > | DnsLookupAsync (string hostnames) |
| Look up the IP address for the provided list of hostnames. More... | |
| Task< SearchHostResults > | SearchHosts (Action< QueryGenerator > query, Action< FacetGenerator > facet=null, int page=1, bool minify=true) |
| Search Shodan using the same query syntax as the website and use facets to get summary information for different properties. This method may use API query credits depending on usage. If any of the following criteria are met, your account will be deducated 1 query credit: More... | |
| Task< SearchHostResults > | SearchHostsCount (Action< QueryGenerator > query, Action< FacetGenerator > facet=null) |
| This method behaves identical to SearchHosts(SearchQuery, FacetQuery, int, bool)" with the only difference that this method does not return any host results, it only returns the total number of results that matched the query and any facet information that was requested. As a result this method does not consume query credits. More... | |
| Task< SearchTokens > | SearchTokens (Action< QueryGenerator > query) |
| async Task< double > | Experimental_GetHoneyPotScoreAsync (string ip) |
| Calculates a honeypot probability score ranging from 0 (not a honeypot) to 1.0 (is a honeypot). More... | |
| Task< ApiStatus > | GetApiStatusAsync () |
| Returns information about the API plan belonging to the given API key. More... | |
| Task< Host > | GetHostAsync (string Ip, bool history=false, bool minify=false) |
| Returns all services that have been found on the given host IP. More... | |
| Task< string > | GetMyIpAsync () |
| Get your current IP address as seen from the Internet. More... | |
| Task< List< int > > | GetPortsAsync () |
| This method returns a list of port numbers that the crawlers are looking for. More... | |
| Task< Profile > | GetProfileAsync () |
| Returns information about the Shodan account linked to this API key. More... | |
| Task< Dictionary< string, string > > | GetProtocolsAsync () |
| This method returns an object containing all the protocols that can be used when launching an Internet scan. More... | |
| Task< SearchQueries > | GetQueriesAsync (int?page=null, SortOptions?sort=null, OrderOption?order=null) |
| Use this method to obtain a list of search queries that users have saved in Shodan. More... | |
| Task< SearchQueries > | SearchQueriesAsync (string query, int?page=null) |
| Use this method to search the directory of search queries that users have saved in Shodan. More... | |
| Task< ScanStatus > | GetScanStatusAsync (string id) |
| Check the progress of a previously submitted scan request More... | |
| Task< Dictionary< string, string > > | GetServicesAsync () |
| This method returns an object containing all the services that the Shodan crawlers look at. It can also be used as a quick and practical way to resolve a port number to the name of a service More... | |
| Task< TagResult > | GetTagsAsync (int size=10) |
| Use this method to obtain a list of popular tags for the saved search queries in Shodan. More... | |
| Task< ScanPortResult > | RequestInternetPortScanAsync (int port, string protocol) |
| Use this method to request Shodan to crawl the Internet for a specific port. This method is restricted to security researchers and companies with a Shodan Data license. To apply for access to this method as a researcher, please email jmath@shodan.io with information about your project. Access is restricted to prevent abuse. More... | |
| Task< ScanResult > | RequstScanAsync (string ips) |
| Use this method to request Shodan to crawl a network Requirements: This method uses API scan credits: 1 IP consumes 1 scan credit. You must have a paid API plan (either one-time payment or subscription) in order to use this method More... | |
| Task< Dictionary< string, List< string > > > | ReverseLookupAsync (string ips) |
| Look up the hostnames that have been defined for the given list of IP addresses More... | |
| void | Dispose () |
Protected Member Functions | |
| virtual void | Dispose (bool disposing) |
Main mechanism to talk to the shodan api. This is what you should use to interact with the api
Definition at line 17 of file ShodanClient.cs.
|
inline |
Look up the IP address for the provided list of hostnames.
| hostnames | Comma-separated list of hostnames; example "google.com,bing.com" |
Definition at line 45 of file ShodanClient.cs.
|
inline |
Calculates a honeypot probability score ranging from 0 (not a honeypot) to 1.0 (is a honeypot).
| ip |
Definition at line 139 of file ShodanClient.cs.
|
inline |
Returns information about the API plan belonging to the given API key.
Definition at line 159 of file ShodanClient.cs.
|
inline |
Returns all services that have been found on the given host IP.
| Ip | Host IP address |
| history | True if all historical banners should be returned (default: False) |
| minify | True to only return the list of ports and the general host information, no banners. (default: False) |
Definition at line 172 of file ShodanClient.cs.
|
inline |
Get your current IP address as seen from the Internet.
Definition at line 190 of file ShodanClient.cs.
|
inline |
This method returns a list of port numbers that the crawlers are looking for.
Definition at line 200 of file ShodanClient.cs.
|
inline |
Returns information about the Shodan account linked to this API key.
Definition at line 210 of file ShodanClient.cs.
|
inline |
This method returns an object containing all the protocols that can be used when launching an Internet scan.
Definition at line 220 of file ShodanClient.cs.
|
inline |
Use this method to obtain a list of search queries that users have saved in Shodan.
| page | Page number to iterate over results; each page contains 10 items |
| sort | Sort the list based on a property. Possible values are: votes, timestamp |
| order | Whether to sort the list in ascending or descending order. Possible values are: asc, desc |
Definition at line 233 of file ShodanClient.cs.
|
inline |
Check the progress of a previously submitted scan request
| id | the unique scan ID that was returned by RequstScanAsync(string) |
Definition at line 280 of file ShodanClient.cs.
|
inline |
This method returns an object containing all the services that the Shodan crawlers look at. It can also be used as a quick and practical way to resolve a port number to the name of a service
Definition at line 294 of file ShodanClient.cs.
|
inline |
Use this method to obtain a list of popular tags for the saved search queries in Shodan.
| size | The number of tags to return |
Definition at line 305 of file ShodanClient.cs.
|
inline |
Use this method to request Shodan to crawl the Internet for a specific port. This method is restricted to security researchers and companies with a Shodan Data license. To apply for access to this method as a researcher, please email jmath@shodan.io with information about your project. Access is restricted to prevent abuse.
| port | The port that Shodan should crawl the Internet for. |
| protocol | The name of the protocol that should be used to interrogate the port. See GetProtocolsAsync for a list of supported protocols. |
Definition at line 321 of file ShodanClient.cs.
|
inline |
Use this method to request Shodan to crawl a network Requirements: This method uses API scan credits: 1 IP consumes 1 scan credit. You must have a paid API plan (either one-time payment or subscription) in order to use this method
| ips |
Definition at line 339 of file ShodanClient.cs.
|
inline |
Look up the hostnames that have been defined for the given list of IP addresses
| ips | Comma-separated list of IP addresses; example "74.125.227.230,204.79.197.200" |
Definition at line 361 of file ShodanClient.cs.
|
inline |
Search Shodan using the same query syntax as the website and use facets to get summary information for different properties. This method may use API query credits depending on usage. If any of the following criteria are met, your account will be deducated 1 query credit:
| query | lambda to generate a query. Shodan search query. The provided string is used to search the database of banners in Shodan, with the additional option to provide filters inside the search query using a "filter:value" format. |
| facet | static class to define facets. |
| page | The page number to page through results 100 at a time (default: 1) |
| minify | True or False; whether or not to truncate some of the larger fields (default: True) |
Definition at line 66 of file ShodanClient.cs.
|
inline |
This method behaves identical to SearchHosts(SearchQuery, FacetQuery, int, bool)" with the only difference that this method does not return any host results, it only returns the total number of results that matched the query and any facet information that was requested. As a result this method does not consume query credits.
| query | |
| facet |
Definition at line 98 of file ShodanClient.cs.
|
inline |
Use this method to search the directory of search queries that users have saved in Shodan.
| query | What to search for in the directory of saved search queries. |
| page | Page number to iterate over results; each page contains 10 items |
Definition at line 258 of file ShodanClient.cs.
1.8.11