Allow RPC clients to discover supported encoding formats.

This commit is contained in:
scriptjunkie 2012-01-28 15:46:17 -05:00
parent 0453f7dcc8
commit 086b2e4bf7
1 changed files with 5 additions and 0 deletions

View File

@ -149,6 +149,11 @@ class RPC_Module < RPC_Base
end
def rpc_encode_formats
# Supported formats
Msf::Simple::Buffer.transform_formats + Msf::Util::EXE.to_executable_fmt_formats
end
def rpc_encode(data, encoder, options)
# Load supported formats
supported_formats = Msf::Simple::Buffer.transform_formats + Msf::Util::EXE.to_executable_fmt_formats