Correct namespace errors in metasploit

This commit is contained in:
Francois van der Hoven
2018-02-21 10:04:45 +10:00
parent cdc5022a19
commit 52cf5ab541
7 changed files with 21 additions and 17 deletions

2
.gitignore vendored
View File

@@ -102,3 +102,5 @@ $RECYCLE.BIN/
# Project-level settings
/.tgitconfig
test/thirdparty/msf/unit/.byebug_history
/load

View File

@@ -102,6 +102,7 @@ if ENV['BEEF_TEST']
gem 'capybara'
# RESTful API tests/generic command module tests
gem 'rest-client', '>= 2.0.1'
gem 'byebug'
end
end

View File

@@ -8,6 +8,7 @@ GEM
bundler-audit (0.6.0)
bundler (~> 1.2)
thor (~> 0.18)
byebug (10.0.0)
capybara (2.18.0)
addressable
mini_mime (>= 0.1.3)
@@ -209,6 +210,7 @@ PLATFORMS
DEPENDENCIES
ansi
bundler-audit
byebug
capybara
curb
data_objects

View File

@@ -233,7 +233,7 @@ end
################################
# Create CDE Package
# This will download and make the CDE Executable and
# This will download and make the CDE Executable and
# gnereate a CDE Package in cde-package
task :cde do
@@ -270,5 +270,3 @@ end
################################

View File

@@ -12,7 +12,7 @@
#
# Ensure that the IP address supplied to Metasploit with the 'ServerHost'
# parameter is the same IP address as specified in beef.extension.metasploit.host
#
#
# Ensure that the IP address specified in beef.extension.metasploit.callback_host
# is the publicly accessible IP address for victim connections to Metasploit.
@@ -37,7 +37,7 @@ beef:
# Start msfrpcd automatically with BeEF
auto_msfrpcd: false
auto_msfrpcd_timeout: 120
msf_path: [
msf_path: [
{os: 'osx', path: '/opt/local/msf/'},
{os: 'livecd', path: '/opt/metasploit-framework/'},
{os: 'bt5r3', path: '/opt/metasploit/msf3/'},

View File

@@ -6,7 +6,7 @@
module BeEF
module Extension
module Metasploit
extend BeEF::API::Extension
@short_name = 'msf'
@@ -26,7 +26,7 @@ module Metasploit
v['value'] = v['default'] if k != "URIPATH"
v['value'] = BeEF::Core::Configuration.instance.get('beef.extension.metasploit.callback_host') if k == "LHOST"
when "bool"
v['type'] = 'checkbox'
when "enum"
@@ -56,16 +56,16 @@ module Metasploit
defaultPayload = 'generic/shell_bind_tcp' if values.include? 'generic/shell_bind_tcp'
if values.length > 0
return {
'name' => 'PAYLOAD',
'type' => 'combobox',
'ui_label' => 'Payload',
return {
'name' => 'PAYLOAD',
'type' => 'combobox',
'ui_label' => 'Payload',
'store_type' => 'arraystore',
'store_fields' => ['payload'],
'store_fields' => ['payload'],
'store_data' => values,
'valueField' => 'payload',
'displayField' => 'payload',
'mode' => 'local',
'valueField' => 'payload',
'displayField' => 'payload',
'mode' => 'local',
'autoWidth' => true,
'defaultPayload' => defaultPayload,
'reloadOnChange' => true
@@ -83,8 +83,8 @@ module Metasploit
}
return values
end
end
end
end

View File

@@ -1,3 +1,4 @@
require_relative '../../../core/main/router/router.rb'
#
# Copyright (c) 2006-2018 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com