Modified colors for browser matching for Metasploit modules
git-svn-id: https://beef.googlecode.com/svn/trunk@777 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -57,11 +57,14 @@ class Migration
|
||||
|
||||
browsers = BeEF::Constants::Browsers::match_browser(msfi['name'] + msfi['targets'].to_json)
|
||||
|
||||
targets << {'os_name' => os_name, 'browser_name' => 'ALL', 'verified_status' => 2} if browsers.count == 0
|
||||
targets << {'os_name' => os_name, 'browser_name' => 'ALL', 'verified_status' => 3} if browsers.count == 0
|
||||
|
||||
browsers.each do |bn|
|
||||
targets << {'os_name' => os_name, 'browser_name' => bn, 'verified_status' => 2}
|
||||
targets << {'os_name' => os_name, 'browser_name' => bn, 'verified_status' => 1}
|
||||
end
|
||||
|
||||
targets << {'os_name' => "ALL", 'verified_status' => 0 }
|
||||
|
||||
|
||||
msfci = BeEF::Models::DynamicCommandInfo.new(
|
||||
:name => msfi['name'],
|
||||
|
||||
@@ -44,11 +44,14 @@ class Msf < BeEF::Command
|
||||
os_name = BeEF::Constants::Os::match_os(st)
|
||||
browsers = BeEF::Constants::Browsers::match_browser(msfi['name'] + msfi['targets'].to_json)
|
||||
|
||||
targets << {'os_name' => os_name, 'browser_name' => 'ALL'} if browsers.count == 0
|
||||
targets << {'os_name' => os_name, 'browser_name' => 'ALL', 'verified_status' => 3} if browsers.count == 0
|
||||
|
||||
browsers.each do |bn|
|
||||
targets << {'os_name' => os_name, 'browser_name' => bn, 'verified_status' => 1}
|
||||
end
|
||||
|
||||
targets << {'os_name' => "ALL", 'verified_status' => 0 }
|
||||
|
||||
browsers.each do |bn|
|
||||
targets << {'os_name' => os_name, 'browser_name' => bn}
|
||||
end
|
||||
|
||||
mod.dynamic_command_info = BeEF::Models::DynamicCommandInfo.new(
|
||||
:name => msfinfo['name'],
|
||||
|
||||
Reference in New Issue
Block a user