Verify if ARE module exec_order and exec_delay values are consistent with ARE modules number.

This commit is contained in:
antisnatchor
2016-03-14 16:51:06 +01:00
parent 85b1afb861
commit c5bcba37f2

View File

@@ -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}"