From d417645b286a9e2799d3cc970aff6a0479b94c2e Mon Sep 17 00:00:00 2001 From: Haoxi Tan Date: Wed, 15 Jan 2020 14:30:31 +1000 Subject: [PATCH] fixed ARE engine issue #1855 --- core/main/ar-migrations/008_create_executions.rb | 1 + core/main/autorun_engine/engine.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/main/ar-migrations/008_create_executions.rb b/core/main/ar-migrations/008_create_executions.rb index 172d1cc01f..deeb4206e6 100644 --- a/core/main/ar-migrations/008_create_executions.rb +++ b/core/main/ar-migrations/008_create_executions.rb @@ -10,6 +10,7 @@ def change t.text :exec_time t.text :rule_token t.boolean :is_sent + t.integer :rule_id end end diff --git a/core/main/autorun_engine/engine.rb b/core/main/autorun_engine/engine.rb index 8e67211e7a..33842ca88e 100644 --- a/core/main/autorun_engine/engine.rb +++ b/core/main/autorun_engine/engine.rb @@ -86,7 +86,7 @@ def trigger(rule_ids, hb_id) end are_exec = BeEF::Core::Models::Execution.new( - :session => hb_session, + :session_id => hb_session, :mod_count => modules.length, :mod_successful => 0, :rule_token => rule_token,