Files
OTRF-OSSEM-DM/scripts/archive_export_security_events_from_csv.py
Roberto Rodriguez fc90d55c2c updated structure of project
+ aligning with OSSEM master scripts to parse files and created docs
2021-05-01 21:03:56 -04:00

16 lines
432 B
Python
Executable File

#!/usr/bin/env python
# Author: Jose Rodriguez (@Cyb3rPandaH)
# License: GNU General Public License v3 (GPLv3)
import csv
event_list = []
with open('/Users/cyb3rward0g/Downloads/WindowsSecurityAuditEvents.csv') as file:
reader = csv.DictReader(file)
for row in reader:
event = dict()
event[row['Event ID']] = row['Message Summary']
if event not in event_list:
event_list.append(event)