From b7c8ea0ff56f085e55781777e5b9ae976c9379b8 Mon Sep 17 00:00:00 2001 From: Richard van den Berg Date: Mon, 23 Jan 2017 13:32:06 +0100 Subject: [PATCH] Truncate bro cached export files --- app/Console/Command/EventShell.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Console/Command/EventShell.php b/app/Console/Command/EventShell.php index 910e6c526..fc7076552 100644 --- a/app/Console/Command/EventShell.php +++ b/app/Console/Command/EventShell.php @@ -347,6 +347,7 @@ class EventShell extends AppShell $file = new File($dir->pwd() . DS . 'misp.bro.' . $user['Organisation']['name'] . '.intel'); } + $file->write(''); foreach ($types as $k => $type) { $final = $this->Attribute->bro($user, $type); foreach ($final as $attribute) {