module documentation
Undocumented
Function | aggregate |
Merge the results from multiple facet API queries into a single result object. This is necessary because a user might be monitoring a lot of IPs/ networks so it doesn't fit into a single API call. |
Function | alert |
Manage the network alerts for your account |
Function | alert |
Remove all alerts |
Function | alert |
Create a network alert to monitor an external network |
Function | alert |
Disable a trigger for the alert |
Function | alert |
Create a network alert based on a domain name |
Function | alert |
Download all information for monitored networks/ IPs. |
Function | alert |
Enable a trigger for the alert |
Function | alert |
Export the configuration of monitored networks/ IPs to be used by ``shodan alert import``. |
Function | alert |
Export the configuration of monitored networks/ IPs to be used by ``shodan alert import``. |
Function | alert |
Show information about a specific alert |
Function | alert |
List all the active alerts |
Function | alert |
List the available notification triggers |
Function | alert |
Remove the specified alert |
Function | alert |
Show summary information about your monitored networks |
Constant | MAX |
Undocumented |
Merge the results from multiple facet API queries into a single result object. This is necessary because a user might be monitoring a lot of IPs/ networks so it doesn't fit into a single API call.
@alert.command( name='create')
@click.argument( 'name', metavar='<name>')
@click.argument( 'netblocks', metavar='<netblocks>', nargs=-1)
def alert_create(name, netblocks): (source) ¶
@click.argument(
@click.argument(
def alert_create(name, netblocks): (source) ¶
Create a network alert to monitor an external network
@alert.command( name='disable')
@click.argument( 'alert_id', metavar='<alert ID>')
@click.argument( 'trigger', metavar='<trigger name>')
def alert_disable_trigger(alert_id, trigger): (source) ¶
@click.argument(
@click.argument(
def alert_disable_trigger(alert_id, trigger): (source) ¶
Disable a trigger for the alert
@alert.command( name='domain')
@click.argument( 'domain', metavar='<domain>', type=str)
@click.option( '--triggers', help='List of triggers to enable', default='malware,industrial_control_system,internet_scanner,iot,open_database,new_service,ssl_expired,vulnerable')
def alert_domain(domain, triggers): (source) ¶
@click.argument(
@click.option(
def alert_domain(domain, triggers): (source) ¶
Create a network alert based on a domain name
@alert.command( name='download')
@click.argument( 'filename', metavar='<filename>', type=str)
@click.option( '--alert-id', help='Specific alert ID to download the data of', default=None)
def alert_download(filename, alert_id): (source) ¶
@click.argument(
@click.option(
def alert_download(filename, alert_id): (source) ¶
Download all information for monitored networks/ IPs.
@alert.command( name='enable')
@click.argument( 'alert_id', metavar='<alert ID>')
@click.argument( 'trigger', metavar='<trigger name>')
def alert_enable_trigger(alert_id, trigger): (source) ¶
@click.argument(
@click.argument(
def alert_enable_trigger(alert_id, trigger): (source) ¶
Enable a trigger for the alert
@alert.command( name='export')
@click.option( '--filename', help='Name of the output file', default='shodan-alerts.json.gz', type=str)
def alert_export(filename): (source) ¶
@click.option(
def alert_export(filename): (source) ¶
Export the configuration of monitored networks/ IPs to be used by ``shodan alert import``.
@alert.command( name='import')
@click.argument( 'filename', metavar='<export file>')
def alert_import(filename): (source) ¶
@click.argument(
def alert_import(filename): (source) ¶
Export the configuration of monitored networks/ IPs to be used by ``shodan alert import``.
@alert.command( name='info')
@click.argument( 'alert', metavar='<alert id>')
def alert_info(alert): (source) ¶
@click.argument(
def alert_info(alert): (source) ¶
Show information about a specific alert
@alert.command( name='list')
@click.option( '--expired', help='Whether or not to show expired alerts.', default=True, type=bool)
def alert_list(expired): (source) ¶
@click.option(
def alert_list(expired): (source) ¶
List all the active alerts
@alert.command( name='remove')
@click.argument( 'alert_id', metavar='<alert ID>')
def alert_remove(alert_id): (source) ¶
@click.argument(
def alert_remove(alert_id): (source) ¶
Remove the specified alert
@alert.command( name='stats')
@click.option( '--limit', help='The number of results to return.', default=10, type=int)
@click.option( '--filename', '-O', help='Save the results in a CSV file of the provided name.', default=None)
@click.argument( 'facets', metavar='<facets ...>', nargs=-1)
def alert_stats(limit, filename, facets): (source) ¶
@click.option(
@click.option(
@click.argument(
def alert_stats(limit, filename, facets): (source) ¶
Show summary information about your monitored networks