Method: Rex::Post::Meterpreter::Extensions::Priv::Fs#set_file_mace_from_file
- Defined in:
- lib/rex/post/meterpreter/extensions/priv/fs.rb
#set_file_mace_from_file(target_file_path, source_file_path) ⇒ Object
Sets the MACE attributes of the specified target_file_path to the MACE attributes of the source_file_path.
73 74 75 76 77 78 79 80 81 82 |
# File 'lib/rex/post/meterpreter/extensions/priv/fs.rb', line 73 def set_file_mace_from_file(target_file_path, source_file_path) request = Packet.create_request(COMMAND_ID_PRIV_FS_SET_FILE_MACE_FROM_FILE) request.add_tlv(TLV_TYPE_FS_FILE_PATH, target_file_path) request.add_tlv(TLV_TYPE_FS_SRC_FILE_PATH, source_file_path) client.send_request(request) true end |