From 0e159f8bfedff8ecf27b7b46444da00f5a8ba2e9 Mon Sep 17 00:00:00 2001 From: "sussurro@happypacket.net" Date: Mon, 24 Jan 2011 14:57:30 +0000 Subject: [PATCH] fixes #254 and #255 adding default options to RHOST and URIPATH git-svn-id: https://beef.googlecode.com/svn/trunk@713 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- lib/modules/msfcommand.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/modules/msfcommand.rb b/lib/modules/msfcommand.rb index 0b7f89211..6144ff0f0 100644 --- a/lib/modules/msfcommand.rb +++ b/lib/modules/msfcommand.rb @@ -80,6 +80,7 @@ class Msf < BeEF::Command @info['Data'] << { 'name' => k + '_txt', 'type' => 'label', 'html' => msfoptions[k]['desc']} case msfoptions[k]['type'] when "string","address","port" + msfoptions[k]['default'] = rand(32**20).to_s(32) if k == "URIPATH" @info['Data'] << {'name' => k , 'ui_label' => k, 'value' => msfoptions[k]['default']} when "bool" @info['Data'] << {'name' => k, 'type' => 'checkbox', 'ui_label' => k } @@ -134,6 +135,7 @@ class Msf < BeEF::Command info['Data'] << { 'name' => k + '_txt', 'type' => 'label', 'html' => payload_options[k]['desc']} case payload_options[k]['type'] when "string","address","port","raw","path", "integer" + payload_options[k]['default'] = "127.0.0.1" if k == "RHOST" info['Data'] << {'name' => k , 'ui_label' => k, 'value' => payload_options[k]['default']} when "bool" info['Data'] << {'name' => k, 'type' => 'checkbox', 'ui_label' => k }