Skip to content

Jimvin/nifi-shodan-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nifi-shodan-processor

This custom processor connects to the https://shodan.io API and streams events from the /shodan/banners and /shodan/alerts endpoints. It is based heavily on the getTwitter processor, since this already has the code needed to connect to an API and stream the resulting records.

Installation

Run mvn install from the root directory of this project to create a NAR file that you can install on your nifi server. Copy the NAR file from nifi-shodan-processor/nifi-shodan-nar/target/nifi-shodan-nar--SNAPSHOT.nar to /var/lib/nifi/extensions on your Nifi server and restart.

Usage

This package provides two processors:

  • ShodanStreamingProcessor
  • ShodanRestProcessor (work in progress)

For now only the ShodanStreamingProcessor is fully implemented. The ShodanRestProcessor is intended to make calls to the non-streaming API endpoint, for example to run queries on Shodan and return the results in flowfiles.

Under properties you must set your Shodan API key and choose either the banner or the alert endpoint. For alerts you must also set the Shodan alert ID you wish to subscribe to.

The output from the processor are the raw JSON result from the Shodan API.

About

A Nifi processor for the Shodan API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages