PyMISP icon indicating copy to clipboard operation
PyMISP copied to clipboard

add a more flexible example for adding file type object

Open Delta-Sierra opened this issue 1 year ago • 2 comments

Delta-Sierra avatar Dec 09 '24 09:12 Delta-Sierra

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 :)

Delta-Sierra avatar Dec 10 '24 06:12 Delta-Sierra

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 :)

Rafiot avatar Dec 10 '24 09:12 Rafiot