GNU/Linux ◆ xterm-256color ◆ bash 141434 views

How to use the Shodan command-line interface to setup real-time network monitoring for your home IP address.

A quick guide on setting up network alerts using the Shodan command-line interface. To install the CLI run:

sudo pip install shodan

And then initialize the CLI using your API key:

shodan init APIKEY

Create a network alert to monitor your network ranges (ex. 198.20.0.0/16):

shodan alert create "My Production Networks" 198.20.0.0/16 8.20.5.0/24

Get a list of notification triggers that can be enabled:

shodan alert triggers

Get notified when malware or a compromised services is discovered (replace ALERTID with the one returned by the shodan alert create command):

shodan alert enable ALERTID malware

For questions please contact support@shodan.io