From 8db7ef00b404e5602463445b72cfe3fc976d9841 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Thu, 15 Mar 2012 12:25:38 +0100 Subject: [PATCH] Fixed error when attaching to MSF (resetdb? is not there anymore) --- extensions/metasploit/api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/metasploit/api.rb b/extensions/metasploit/api.rb index df0491b26..f14802b5b 100644 --- a/extensions/metasploit/api.rb +++ b/extensions/metasploit/api.rb @@ -28,7 +28,7 @@ module API if msf.login msf_module_config = {} path = BeEF::Core::Configuration.instance.get('beef.extension.metasploit.path') - if not BeEF::Extension::Console.resetdb? and File.exists?("#{path}msf-exploits.cache") + if not BeEF::Core::Console::CommandLine.parse[:resetdb] and File.exists?("#{path}msf-exploits.cache") print_debug "Attempting to use Metasploit exploits cache file" raw = File.read("#{path}msf-exploits.cache") begin