Skip to content
This repository was archived by the owner on Jan 27, 2022. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

Docket Python Client

https://readthedocs.org/projects/docket-python-client/badge/?version=latest

This is a Python client API for Docket which is a RESTful API for Stenographer.

This library is primarily for use with ROCK NSM to easily automate retrieval of network traffic for post-process analysis.

Installation

pip install docketapi --user

Example

fromdocketapiimportDocketClient# create a clientdocket=DocketClient('https://rock_nsm_url', 'username', 'password', verify=False)
# perform a querymy_query=docket.query(
after='2019-04-20T21:07:59.689Z',
before='2019-04-30T21:07:59.689Z',
host=['151.101.68.223'],
proto_name='TCP',
port=['443']
)
# retrieve pcappcap=docket.get_pcap(my_query)
# save pcapdocket.save_pcap(pcap, filename='my_traffic.pcap')

Documentation

See the Docs on RTD for full documentation.

About

python client api for docket

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages