Correct namespace errors in metasploit
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -102,3 +102,5 @@ $RECYCLE.BIN/
|
||||
# Project-level settings
|
||||
/.tgitconfig
|
||||
|
||||
test/thirdparty/msf/unit/.byebug_history
|
||||
/load
|
||||
|
||||
1
Gemfile
1
Gemfile
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
4
Rakefile
4
Rakefile
@@ -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
|
||||
|
||||
|
||||
################################
|
||||
|
||||
|
||||
|
||||
@@ -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/'},
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user