PyMISP/examples/sharing_groups.py

16 lines
436 B
Python
Raw Normal View History

2016-09-12 11:32:04 +02:00
#!/usr/bin/env python
# -*- coding: utf-8 -*-
2019-07-17 16:46:47 +02:00
from pymisp import ExpandedPyMISP
from keys import misp_url, misp_key, misp_verifycert
2016-09-12 11:32:04 +02:00
import argparse
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Get a list of the sharing groups from the MISP instance.')
2019-07-17 16:46:47 +02:00
misp = ExpandedPyMISP(misp_url, misp_key, misp_verifycert)
2016-09-12 11:32:04 +02:00
2019-07-17 16:46:47 +02:00
sharing_groups = misp.sharing_groups(pythonify=True)
print(sharing_groups)