Added compatibility with dbvis <= 6
Checking for "config" folder existence if "config70" is not found.bug/bundler_fix
parent
e66cc003ae
commit
a53341f520
|
@ -62,10 +62,19 @@ class Metasploit3 < Msf::Post
|
|||
dbvis_file = user_profile + "\\.dbvis\\config70\\dbvis.xml"
|
||||
end
|
||||
|
||||
unless file?(dbvis_file)
|
||||
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}")
|
||||
|
|
Loading…
Reference in New Issue