Updated modules to reference beef_host and beef_port

This commit is contained in:
Aaron Cure
2017-01-05 15:38:58 -07:00
parent 91cc7ed873
commit 345a3cebcd
15 changed files with 66 additions and 40 deletions

View File

@@ -9,8 +9,8 @@
class Wanem_command_execution < BeEF::Core::Command
def self.options
configuration = BeEF::Core::Configuration.instance
lhost = "#{configuration.get("beef.http.host")}"
@configuration = BeEF::Core::Configuration.instance
lhost = @configuration.get("beef.http.public") || @configuration.get("beef.http.host")
lhost = "" if lhost == "0.0.0.0"
return [
{ 'name' => 'rhost', 'ui_label' => 'Target Host', 'value' => '192.168.1.1'},