Do not save empty keystrokes
parent
da714e37b8
commit
05dbee7a94
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue