From 50ea03a74f5ff0a0a6709e2e4e27daa6604db33a Mon Sep 17 00:00:00 2001 From: "wade@bindshell.net" Date: Tue, 4 Jan 2011 08:45:16 +0000 Subject: [PATCH] Updated to fix Issue 186. Renaming DB column from has_run to instructions_sent. This matches more closely its new usage. git-svn-id: https://beef.googlecode.com/svn/trunk@666 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- lib/model/command.rb | 2 +- lib/server/modules/common.rb | 2 +- lib/server/zombiehandler.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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