Fixed bugs found when building unit-tests that could cause prolems

This commit is contained in:
root
2011-12-16 13:34:54 -05:00
parent 4a9e224e8a
commit 6ac0200bf5

View File

@@ -155,7 +155,7 @@ module Metasploit
uri += "http://"
end
uri += @config.get('beef.extension.metasploit.callback_host') + ":" + opts['SRVPORT'] + "/" + opts['URIPATH']
uri += @config['callback_host'] + ":#{opts['SRVPORT']}/" + opts['URIPATH']
res['uri'] = uri
res
@@ -163,7 +163,7 @@ module Metasploit
def launch_autopwn
opts = {
'LHOST' => @config.get('beef.extension.metasploit.callback_host') ,
'LHOST' => @config['callback_host'] ,
'URIPATH' => @apurl
}
get_lock()
@@ -175,6 +175,7 @@ module Metasploit
return false
end
release_lock()
return res
end