passbe/beef-migration-test-3 — Issue #373: Error reexecuting the physical location (host) module
Author: passbe
Created: 2011-12-09 00:40:56+00:00
State: open

What steps will reproduce the problem?
1. Try to run the physical location module, under the host category.
2. Re-execute the module.
3. Error obtained:

[2011-03-07 00:08:36] ERROR NoMethodError: undefined method `has_run=' for #<BeEF::Models::Command:0xb6da6a40>
/var/www/beef-0.4.2.3-alpha/lib/ui/modules/modules.rb:395:in `reexecute_command_module'
/var/www/beef-0.4.2.3-alpha/./lib/server/httpcontroller.rb:52:in `call'
/var/www/beef-0.4.2.3-alpha/./lib/server/httpcontroller.rb:52:in `run'
/var/www/beef-0.4.2.3-alpha/./lib/server/httphandler.rb:23:in `do_POST'
/var/www/beef-0.4.2.3-alpha/./lib/server/httphandler.rb:21:in `synchronize'
/var/www/beef-0.4.2.3-alpha/./lib/server/httphandler.rb:21:in `do_POST'
/usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'
/usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/var/www/beef-0.4.2.3-alpha/./lib/server/httphookserver.rb:102:in `start'
beef.rb:33

What is the expected output? What do you see instead?

If the victim browser is FFox 3.6.x, it ask the user for authorization to share geolocation details, so the first execution times out (see the command output in BeEF). When you re-execute the operation the error is generated.

What version/revision of the product are you using? On what browser? On
what operating system?

FFox 3.6.10 under Windows XP SP3.
BeEF 0.4.2.3 rev 779

Please provide any additional information and screen shots below.
Google Code Issue: http://code.google.com/p/beef/issues/detail?id=292