Skip to content

Commit c3e91c2

Browse files
committed
Fix NoMethodError in plugins/nessus.rb
Triggered by @port.length in nessus_login from YAML.
1 parent 5316e0f commit c3e91c2

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)