2016-05-12 17:33:13 +02:00
|
|
|
### Description
|
|
|
|
|
|
|
|
Python script for ioc import to misp
|
|
|
|
|
|
|
|
### requires
|
|
|
|
|
2016-05-12 17:35:05 +02:00
|
|
|
> python 2.7
|
|
|
|
> PyMISP
|
|
|
|
> BeautifulSoup (apt-get install python-bs4 python-lxml)
|
2016-05-12 17:33:13 +02:00
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
|
|
|
```bash
|
|
|
|
python ioc2misp.py -i myioc -t "tag:mytag='sample','tag:other='foo'"
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
time find /iocsample -type f|while read line ;do python ioc2misp.py -i ${line};done
|
|
|
|
```
|
|
|
|
|
|
|
|
### Conf
|
|
|
|
|
|
|
|
* rename keys.py.sample as keys.py
|
|
|
|
* add your url and api key in keys.py
|
2016-05-12 17:35:05 +02:00
|
|
|
* use command in terminal
|