From d4ea11243d288fcb65ce34c171178d55d441ba15 Mon Sep 17 00:00:00 2001 From: Steffen Pohle Date: Fri, 6 May 2022 12:38:10 +0200 Subject: [PATCH] $data object needed to be cleared after the SQL line has been written. --- evtx2sql-convert2sql.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/evtx2sql-convert2sql.php b/evtx2sql-convert2sql.php index 414f645..833a006 100755 --- a/evtx2sql-convert2sql.php +++ b/evtx2sql-convert2sql.php @@ -25,7 +25,23 @@ class EventMeta { public $servicename; public $data; public $status; - public $result; + public $result; + function Clear() { + $this->eventrecordid = 0; + $this->time = 0; + $this->eventid = 0; + $this->task = ""; + $this->level = ""; + $this->keywords = ""; + $this->computer = ""; + $this->server = ""; + $this->username = ""; + $this->domainname = ""; + $this->servicename = ""; + $this->data = ""; + $this->status = ""; + $this->result= 0; + } } class EventData { @@ -72,6 +88,7 @@ function sql_addmeta ($data, $darray) { $data->data, $data->status ); + $data->Clear(); };