npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ioc-tool

v1.2.6

Published

IOC tool

Downloads

1

Readme

Diventry IOC Tool

Introduction

The Diventry IOC Tool is a free tool that allows users to leverage certain compromise indication information consolidated by Diventry from its partners. It enables users to list, download, upload IOCs, and deploy lists on various equipment such as Linux.

Installation

To install the Diventry IOC Tool, run the following command:

npm install -g ioc-tool

Listing

To retrieve the list of public IOC lists stored at Diventry, use the following command:

ioc-tool list

IOC Tool list output

You can use the "Share Token" to download or apply a specific list.

Download

To download a list, you need to retrieve the Share Token of the desired list. Use the following command to download the list and display it in the stdout:

ioc-tool download <Share token>

If you want to save the list to a file, use the -f option followed by the file path:

ioc-tool download -f ./mylist.txt <Share token>

This command will store the list in the mylist.txt file.

Applying a List to Linux IP Filtering

Before applying a list to Linux IP filtering, ensure that PM2 and the ipset tool are installed on your system by running the following commands:

apt install ipset
npm i -g pm2

After selecting your list, obtain the Share Token. Then, install PM2 using the following command:

ioc-tool ipset pm2 <Share Token>

This command will handle the system-specific command, and once confirmed, you can execute it. For Tor network integration, the command will be:

pm2 start -f [..]/ioc-tool/bin/index.js --name diventry-ioc-tool --cwd [..]/ioc-tool -- ipset stream tor

The Tor list will be automatically updated on the firewall. You can confirm this by checking the iptables integration using the following commands:

iptables -L -vn
ipset list

To stop filtering a list, use the following command:

ioc-tool ipset stop <Share Token>

Make sure to remove the PM2 process as well:

pm2 delete diventry-ioc-tool

Transmitting IOC

Transmitting IOCs to Diventry requires a validated access to the IOC providers sections, as it is currently in closed beta. If you wish to use the IOC provider tool, please contact us at http://www.diventry.com.

Before sending information, you need to format your file correctly. The file should follow the format below, where tags are optional:

54.26.98.67 nothing,but,4,tags
8.9.64.2 some,tags

Next, transmit the file using the following command:

API_KEY=yourAPIkey ioc-tool tx ip plaintext ./yourFile

You can also transmit a single IOC IP with tags:

API_KEY=yourAPIkey ioc-tool tx ip single 2.3.1.0 some,tags

Getting Help

The program includes built-in help. To view general help, run the following command:

ioc-tool -h

To get help for a specific subcommand, use the following syntax:

ioc-tool info -h

Feel free to reach out if you have any further questions or need assistance!