Small fixes for dbvis enum

bug/bundler_fix
OJ 2016-11-01 07:35:36 +10:00
parent 294b1e5ed7
commit 47ec362148
No known key found for this signature in database
GPG Key ID: D5DC61FB93260597
1 changed files with 2 additions and 2 deletions

View File

@ -61,9 +61,9 @@ class MetasploitModule < Msf::Post
print_status("File not found: #{dbvis_file}")
print_status('This could be an older version of dbvis, trying old path')
case session.platform
when /linux/
when 'linux'
dbvis_file = "#{user_base}.dbvis/config/dbvis.xml"
when /windows/
when 'windows'
dbvis_file = user_profile + "\\.dbvis\\config\\dbvis.xml"
end
unless file?(dbvis_file)