break if we get the rsync exit

bug/bundler_fix
Jon Hart 2015-11-04 09:12:02 -08:00
parent ba5a8e4806
commit 0d3232f93a
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class Metasploit3 < Msf::Auxiliary
# the module listing is the module name and comment separated by a tab, each module
# 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$/
break if module_line =~ /^#{RSYNC_HEADER} EXIT$/
name, comment = module_line.split(/\t/).map(&:strip)
next unless name
modules_metadata << { name: name, comment: comment }