1
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:
James Lee 2010-03-22 01:13:58 +00:00
parent 6c502a6fd3
commit 73cd20f8a6
2 changed files with 27 additions and 0 deletions

View File

@ -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

View File

@ -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
###