IocLists 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package IocLists --version 1.0.0                
NuGet\Install-Package IocLists -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="IocLists" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IocLists --version 1.0.0                
#r "nuget: IocLists, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install IocLists as a Cake Addin
#addin nuget:?package=IocLists&version=1.0.0

// Install IocLists as a Cake Tool
#tool nuget:?package=IocLists&version=1.0.0                

IocLists 📝

alternate text is missing from this package README image

🛑 An async and lightweight C# library for interacting with the IOCLists.com API.

Usage

Provides an easy interface for interacting with the IOC Lists API.

To get started, add the library into your solution with either the NuGet Package Manager or the dotnet CLI.

dotnet add package IocLists

For the primary classes to become available, import the used namespace.

using IocLists;

An API key is required to interact with the API. Create your own key at: https://ioclists.com/r/settings

Need more examples? Under the Example directory you can find a working demo project that implements this library.

Features

  • Built for .NET 6 and .NET 7
  • Fully async
  • Deep coverage of the API
  • Extensive XML documentation
  • No external dependencies (uses integrated HTTP and JSON)
  • Custom exceptions (IocListsException) for advanced catching
  • Example project to demonstrate all capabilities of the library
  • Create and download IOC lists, add entries and search for existing indicators submitted by the community

Code Samples

Initializing a new API client

IocListsClient client = new("d7882f568163547fd5657586ee058f3a7945551745ce36c4bf706741e7907042");

Creating a new list

await client.CreateList("akac", "testing-list", "This is a list created using the C# IOC Lists library.");

Appending a new entry to a list

await client.Add("akac", "testing-list", "https://example[.]com -- Testing Indicator");

Get 20 recent entries in a list

Entry[] recent = await client.GetRecent("mirrors", "phishtank");

Download all unique entries in a list

string[] unique = await client.GetUnique("mirrors", "phishtank");

Search for indicators across the entire platform

Entry[] matches = await client.Search("62.216.168.7");

Available Methods

  • Task Add(string username, string listName, string entry)
  • Task CreateList(CreateListParameters parameters)
  • Task CreateList(string username, string listName, string description, int hoursToExpire = 8766, FeedType feedType = FeedType.Security, bool isPrivate = false, bool isActive = true, bool isMirror = false, string mirrorOriginalUrl = null)
  • Task<Entry[]> GetRecent(string username, string listName)
  • Task<Entry[]> Search(string query)
  • Task<string[]> GetUnique(string username, string listName)

Resources

This is a community-ran library. Not affiliated with detectdd.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 264 11/25/2023
1.0.0 1,035 11/18/2022