Fixed metasploit extension invalid configuration referencing

git-svn-id: https://beef.googlecode.com/svn/trunk@909 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
passbe
2011-04-20 09:00:30 +00:00
parent 35f62714b1
commit 46f147bafa
3 changed files with 10 additions and 10 deletions

View File

@@ -53,5 +53,5 @@ beef:
enable: true
proxy:
enable: true
msf:
enable: false
metasploit:
enable: false

View File

@@ -6,7 +6,7 @@
# Please note that the ServerHost parameter must have the same value of host and callback_host variables here below.
beef:
extension:
msf:
metasploit:
enable: true
host: "10.211.55.2"
path: "/RPC2"

View File

@@ -11,15 +11,15 @@ module Metasploit
def initialize
@config = BeEF::Core::Configuration.instance
@enabled = (@config.get('beef.msf.enable'))
@enabled = (@config.get('beef.extension.metasploit.enable'))
return if (not @enabled)
host = @config.get('beef.msf.host')
path = @config.get('beef.msf.path')
port = @config.get('beef.msf.port')
@un = @config.get('beef.msf.user')
@pw = @config.get('beef.msf.pass')
host = @config.get('beef.extension.metasploit.host')
path = @config.get('beef.extension.metasploit.path')
port = @config.get('beef.extension.metasploit.port')
@un = @config.get('beef.extension.metasploit.user')
@pw = @config.get('beef.extension.metasploit.pass')
@lock = false
if(not host or not path or not port or not @un or not @pw)
@@ -183,7 +183,7 @@ module Metasploit
uri += "http://"
end
uri += @config.get('beef.msf.callback_host') + ":" + opts['SRVPORT'] + "/" + opts['URIPATH']
uri += @config.get('beef.extension.metasploit.callback_host') + ":" + opts['SRVPORT'] + "/" + opts['URIPATH']
res['uri'] = uri
res