Lands #4893, coerce to string to avoid stack trace

essage aborts
ssage aborts
bug/bundler_fix
HD Moore 2015-03-07 18:40:49 -06:00
commit 6c71ae7fc3
No known key found for this signature in database
GPG Key ID: 7549FB3DB1DD1F32
1 changed files with 4 additions and 4 deletions

View File

@ -232,10 +232,10 @@ module Msf
if !args[0]
if File.exist?(nessus_yaml)
lconfig = YAML.load_file(nessus_yaml)
@user = lconfig['default']['username']
@pass = lconfig['default']['password']
@host = lconfig['default']['server']
@port = lconfig['default']['port']
@user = lconfig['default']['username'].to_s
@pass = lconfig['default']['password'].to_s
@host = lconfig['default']['server'].to_s
@port = lconfig['default']['port'].to_s
nessus_login
return
else