Not all modules have comments

bug/bundler_fix
Jon Hart 2015-11-02 09:14:41 -08:00
parent 4effd3aa81
commit 962cf77873
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ class Metasploit3 < Msf::Auxiliary
# on its own line, lines separated with a newline
sock.get(read_timeout).split(/\n/).map(&:strip).map do |module_line|
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
list