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
|
2018-10-14 19:26:03 +02:00
|
|
|
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)
|