add a more flexible example for adding file type object
The script will do the trick, but why not using the CSV loader? https://github.com/MISP/PyMISP/blob/main/pymisp/tools/csvloader.py
Cough Probably because I could not find it in the first place... :zipper_mouth_face: Didn't search enough apparently.
I think it does the same thing for most of the code here, and you just need to iterate over the list of objects it returns to submit it to MISP.
If you prefer me to remove it, that's fine by me, otherwise I'll go through the changes you requested :)
The script will do the trick, but why not using the CSV loader? https://github.com/MISP/PyMISP/blob/main/pymisp/tools/csvloader.py
Cough Probably because I could not find it in the first place... 🤐 Didn't search enough apparently.
I'm gong to blame the fact it is poorly documented ;)
I think it does the same thing for most of the code here, and you just need to iterate over the list of objects it returns to submit it to MISP.
If you prefer me to remove it, that's fine by me, otherwise I'll go through the changes you requested :)
You have a use case for a script that does what your script does, so I'll definitely merge it. I mostly wanted to make sure we don't duplicate for no reason :)