Do not save empty keystrokes

bug/bundler_fix
HD Moore 2016-05-15 00:52:26 -05:00
parent da714e37b8
commit 05dbee7a94
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ class Plugin::Beholder < Msf::Plugin
end
def store_keystrokes(sid, data)
return unless data.length > 0
filename = capture_filename(sid) + "_keystrokes.txt"
::File.open(::File.join(self.config[:base], filename), "wb") {|fd| fd.write(data) }
session_log(sid, "captured keystrokes to #{filename}")