Skip to content

Commit 7919672

Browse files
author
jvazquez-r7
committed
Land rapid7#2322, @todb-r7's fix to make File.open msftidy compliant
2 parents 8acabe4 + 6daa90a commit 7919672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/osx/capture/keylog_recorder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def run
113113
"keylog", "text/plain", session, log, "keylog.log", "OSX keylog"
114114
)
115115
else
116-
File.open(self.loot_path, 'a') { |f| f.write(log) }
116+
File.open(self.loot_path, 'ab') { |f| f.write(log) }
117117
end
118118
print_status(log_a.map{ |a| a=~/([^\s]+)\s*$/; $1 }.join)
119119
print_status "Saved to #{self.loot_path}"

0 commit comments

Comments
 (0)