PyMISP/examples/users_list.py

16 lines
419 B
Python
Raw Permalink Normal View History

2016-11-03 11:23:48 +01: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-11-03 11:23:48 +01: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-11-03 11:23:48 +01:00
2019-07-17 16:46:47 +02:00
users_list = misp.users(pythonify=True)
print(users_list)