Skip to content

Commit 6c71ae7

Browse files
author
HD Moore
committed
Lands rapid7#4893, coerce to string to avoid stack trace
essage aborts ssage aborts
2 parents 5316e0f + c3e91c2 commit 6c71ae7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/nessus.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,10 @@ def cmd_nessus_connect(*args)
232232
if !args[0]
233233
if File.exist?(nessus_yaml)
234234
lconfig = YAML.load_file(nessus_yaml)
235-
@user = lconfig['default']['username']
236-
@pass = lconfig['default']['password']
237-
@host = lconfig['default']['server']
238-
@port = lconfig['default']['port']
235+
@user = lconfig['default']['username'].to_s
236+
@pass = lconfig['default']['password'].to_s
237+
@host = lconfig['default']['server'].to_s
238+
@port = lconfig['default']['port'].to_s
239239
nessus_login
240240
return
241241
else

0 commit comments

Comments
 (0)