Fix the payload size updater for MetasploitModule

bug/bundler_fix
Brent Cook 2016-04-23 11:38:42 -04:00
parent 9713124e54
commit 45961f75d4
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class PayloadCachedSize
def self.update_cache_constant(data, cached_size)
data.
gsub(/^\s*CachedSize\s*=\s*(\d+|:dynamic).*/, '').
gsub(/^(module Metasploit\d+)\s*\n/) do |m|
gsub(/^(module MetasploitModule)\s*\n/) do |m|
"#{m.strip}\n\n CachedSize = #{cached_size}\n\n"
end
end