Not all modules have comments
parent
4effd3aa81
commit
962cf77873
|
@ -51,7 +51,8 @@ class Metasploit3 < Msf::Auxiliary
|
||||||
# on its own line, lines separated with a newline
|
# on its own line, lines separated with a newline
|
||||||
sock.get(read_timeout).split(/\n/).map(&:strip).map do |module_line|
|
sock.get(read_timeout).split(/\n/).map(&:strip).map do |module_line|
|
||||||
next if module_line =~ /^#{RSYNC_HEADER} EXIT$/
|
next if module_line =~ /^#{RSYNC_HEADER} EXIT$/
|
||||||
list << module_line.split(/\t/).map(&:strip)
|
name, comment = module_line.split(/\t/).map(&:strip)
|
||||||
|
list << [ name, comment ]
|
||||||
end
|
end
|
||||||
|
|
||||||
list
|
list
|
||||||
|
|
Loading…
Reference in New Issue