mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
add the skeleton for new session events. now the hard part is going to be triggering them for meterpreter sessions without mixing the Rex and Msf namespaces...
git-svn-id: file:///home/svn/framework3/trunk@8873 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
6c502a6fd3
commit
73cd20f8a6
@ -326,6 +326,16 @@ class FrameworkEventSubscriber
|
||||
end
|
||||
end
|
||||
|
||||
def on_session_upload(session, lpath, rpath)
|
||||
session_event('session_upload', session, :local_path => lpath, :remote_path => rpath)
|
||||
end
|
||||
def on_session_download(session, lpath, rpath)
|
||||
session_event('session_download', session, :local_path => lpath, :remote_path => rpath)
|
||||
end
|
||||
def on_session_filedelete(session, path)
|
||||
session_event('session_filedelete', session, :path => path)
|
||||
end
|
||||
|
||||
def on_session_close(session, reason='')
|
||||
session_event('session_close', session)
|
||||
end
|
||||
|
@ -39,6 +39,23 @@ module SessionEvent
|
||||
def on_session_output(session, output)
|
||||
end
|
||||
|
||||
#
|
||||
# Called when a file is uploaded.
|
||||
#
|
||||
def on_session_upload(session, local_path, remote_path)
|
||||
end
|
||||
|
||||
#
|
||||
# Called when a file is downloaded.
|
||||
#
|
||||
def on_session_download(session, local_path, remote_path)
|
||||
end
|
||||
|
||||
#
|
||||
# Called when a file is deleted.
|
||||
#
|
||||
def on_session_filedelete(session, path)
|
||||
end
|
||||
end
|
||||
|
||||
###
|
||||
|
Loading…
Reference in New Issue
Block a user