diff --git a/lib/model/command.rb b/lib/model/command.rb index a1bf2cea8..0060ca4fc 100644 --- a/lib/model/command.rb +++ b/lib/model/command.rb @@ -11,7 +11,7 @@ class Command property :data, Text property :creationdate, String, :length => 15, :lazy => false property :label, Text, :lazy => false - property :has_run, Boolean, :default => false + property :instructions_sent, Boolean, :default => false has n, :results has n, :autoloadings diff --git a/lib/server/modules/common.rb b/lib/server/modules/common.rb index 36307370f..39a3863df 100644 --- a/lib/server/modules/common.rb +++ b/lib/server/modules/common.rb @@ -98,7 +98,7 @@ module Modules raise WEBrick::HTTPStatus::BadRequest, "zombie.session is nil" if command.command_module_id.nil? # flag that the command has been sent to the hooked browser - command.has_run = true + command.instructions_sent = true command.save # get the command module diff --git a/lib/server/zombiehandler.rb b/lib/server/zombiehandler.rb index ebbce2109..90174a58a 100644 --- a/lib/server/zombiehandler.rb +++ b/lib/server/zombiehandler.rb @@ -57,7 +57,7 @@ module BeEF execute_plugins! # add all availible command module instructions to the response - zombie_commands = BeEF::Models::Command.all(:zombie_id => hooked_browser.id, :has_run => false) + zombie_commands = BeEF::Models::Command.all(:zombie_id => hooked_browser.id, :instructions_sent => false) zombie_commands.each{|command| add_command_instructions(command, hooked_browser)} # add all availible autoloading command module instructions to the response