Method: Rex::Post::Meterpreter::Extensions::Priv::Fs#blank_file_mace

Defined in:
lib/rex/post/meterpreter/extensions/priv/fs.rb

#blank_file_mace(file_path) ⇒ Object

Sets the MACE values to the minimum threshold that will cause them to not be displayed by most all products for a file.



88
89
90
91
92
93
94
95
96
# File 'lib/rex/post/meterpreter/extensions/priv/fs.rb', line 88

def blank_file_mace(file_path)
  request = Packet.create_request(COMMAND_ID_PRIV_FS_BLANK_FILE_MACE)

  request.add_tlv(TLV_TYPE_FS_FILE_PATH, file_path)

  client.send_request(request)

  true
end