Land #4650, #strip NilClass fix

bug/bundler_fix
William Vu 2015-01-27 11:11:40 -06:00
commit ae22cf1b47
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class Metasploit4 < Msf::Post
def extract_key(path)
data = read_file(path)
keys = data.split(':').select { |k| k =~ /[0-9a-f]{32}/ }
keys.first.strip
keys.map { |k| k.strip }.first
end
def download_key(paths)