Allow RPC clients to discover supported encoding formats.
This commit is contained in:
parent
0453f7dcc8
commit
086b2e4bf7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue