Neo23x0 / Loki

Loki - Simple IOC and YARA Scanner
https://www.nextron-systems.com/compare-our-scanners/
GNU General Public License v3.0
3.4k stars 583 forks source link

use csv for csv formatting #244

Closed janstarke closed 9 months ago

janstarke commented 1 year ago

Some lines in Lokis csv output contain a comma character in the last (message) field, which breaks csv parsers. So I suggest to use the csv package to generate a compliant csv output (which effectively adds quote characters to such fields).

However, importing csv conflicts with the varable csv, so I head to rename it. To maintain maximum compatibility, I used csv.QUOTE_MINIMAL, so that only lines with a comma in the values are affected by this change.

Regards, Jan