From c5bcba37f261b772c18a92fc229043979463dc08 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Mon, 14 Mar 2016 16:51:06 +0100 Subject: [PATCH] Verify if ARE module exec_order and exec_delay values are consistent with ARE modules number. --- core/main/autorun_engine/parser.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/main/autorun_engine/parser.rb b/core/main/autorun_engine/parser.rb index 0418e827b..a012a461c 100644 --- a/core/main/autorun_engine/parser.rb +++ b/core/main/autorun_engine/parser.rb @@ -75,6 +75,9 @@ module BeEF exec_order.each{ |order| return [false, 'execution_order values must be Integers'] unless order.integer?} exec_delay.each{ |delay| return [false, 'execution_delay values must be Integers'] unless delay.integer?} + return [false, 'execution_order and execution_delay values must be consistent with modules numbers'] unless + modules.size == exec_order.size && modules.size == exec_delay.size + success rescue => e print_error "#{e.message}"