Added compatibility with dbvis <= 6

Checking for "config" folder existence if "config70" is not found.
bug/bundler_fix
David Bloom 2014-07-15 12:14:38 +02:00
parent e66cc003ae
commit a53341f520
1 changed files with 12 additions and 3 deletions

View File

@ -63,10 +63,19 @@ class Metasploit3 < Msf::Post
end
unless file?(dbvis_file)
print_error("File not found: #{dbvis_file}")
return
print_status("File not found: #{dbvis_file}")
print_status("This could be an older version of dbvis, trying old path")
when /linux/
dbvis_file = "#{user_base}.dbvis/config/dbvis.xml"
when /win/
dbvis_file = user_profile + "\\.dbvis\\config\\dbvis.xml"
end
unless file?(dbvis_file)
print_error("File not found: #{dbvis_file}")
return
end
end
db = {}
print_status("Reading: #{dbvis_file}")
dbfound = false