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
This commit is contained in:
wade@bindshell.net
2011-01-04 08:45:16 +00:00
parent 73d6f93d1d
commit 50ea03a74f
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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