Showdan.Net
c# client for the shodan api
IShodanAsyncClient.cs
1 using Shodan.Net.Models;
3 using System;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Threading.Tasks;
7 
8 namespace Shodan.Net
9 {
10  internal interface IShodanAsyncClient
11  {
19  Task<Host> GetHostAsync(string Ip, bool history = false, bool minify = false);
20 
25  Task<List<int>> GetPortsAsync();
26 
31  Task<Dictionary<string, string>> GetProtocolsAsync();
32 
38  Task<ScanResult> RequstScanAsync(string ips);
39 
46  Task<ScanPortResult> RequestInternetPortScanAsync(int port, string protocol);
47 
53  Task<ScanStatus> GetScanStatusAsync(string id);
54 
59  Task<Dictionary<string, string>> GetServicesAsync();
60 
68  Task<SearchQueries> GetQueriesAsync(int? page = null, SortOptions? options = null, OrderOption? order = null);
69 
76  Task<SearchQueries> SearchQueriesAsync(string query, int? page = null);
77 
83  Task<TagResult> GetTagsAsync(int size = 10);
84 
89  Task<Profile> GetProfileAsync();
90 
96  Task<Dictionary<string, string>> DnsLookupAsync(string hostnames);
97 
103  Task<Dictionary<string, List<string>>> ReverseLookupAsync(string ips);
104 
109  Task<string> GetMyIpAsync();
110 
115  Task<ApiStatus> GetApiStatusAsync();
116 
122  Task<double> Experimental_GetHoneyPotScoreAsync(string ip);
123  }
124 }
OrderOption
Represents an order of either ascending or descending
Definition: OrderOption.cs:11
SortOptions
Represents an option to sort
Definition: SortOptions.cs:11