Enhancing the keylogger to log also shift/alt/ctrl

This commit is contained in:
antisnatchor
2013-12-15 16:01:50 +00:00
parent adde5275af
commit b28a79b56a
4 changed files with 28 additions and 9 deletions

View File

@@ -36,10 +36,9 @@ module Core
raise Exception::TypeError, '"from" needs to be a string' if not from.string?
raise Exception::TypeError, '"event" needs to be a string' if not event.string?
raise Exception::TypeError, '"Hooked Browser ID" needs to be an integer' if not hb.integer?
# logging the new event into the database
@logs.new(:type => "#{from}", :event => "#{event}", :date => time_now, :hooked_browser_id => hb).save
print_debug "Event: #{event}"
# if notifications are enabled send the info there too
if @notifications
@notifications.new(from, event, time_now, hb)