projectdiscovery / notify

Notify is a Go-based assistance package that enables you to stream the output of several tools (or read from a file) and publish it to a variety of supported platforms.

Home Page:https://projectdiscovery.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File read support

ehsandeep opened this issue · comments

Notify used for redirecting output data from multiple tools to multiple platforms, and most of the time STDOUT data is used as input to pass the data to notify, but for the cases, where you have an output file that you want to read and post it somewhere else, we need to use cat or anything similar.

It can still be done with cat but currently, there is no support to notify to directly read the file.

Proposed solution:-

Introduce data flag that accepts a file as input to post further on configured platforms.

notify -data subdomains.txt

Example use case:- https://github.com/projectdiscovery/pd-actions/blob/ec3c86125256dbcbfaf1b2d7a8e681e283f5a86f/.github/workflows/pd-actions.yaml#L78