1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-20 14:39:22 +01:00

fix record_mic TLV values

This commit is contained in:
Tim 2017-09-11 10:53:15 +08:00
parent 10cd6155f6
commit c61c565918
2 changed files with 4 additions and 4 deletions

View File

@ -7,13 +7,13 @@
MAKE_CUSTOM_TLV( \
TLV_META_TYPE_UINT, \
TLV_TYPE_EXTENSION_AUDIO, \
TLV_EXTENSIONS + 1)
TLV_EXTENSIONS + 10)
#define TLV_TYPE_AUDIO_DATA \
MAKE_CUSTOM_TLV( \
TLV_META_TYPE_RAW, \
TLV_TYPE_EXTENSION_AUDIO, \
TLV_EXTENSIONS + 2)
TLV_EXTENSIONS + 11)
DWORD request_ui_record_mic(Remote *remote, Packet *request);

View File

@ -20,8 +20,8 @@ public class webcam_audio_record_android extends webcam_audio_record implements
private static final int AUDIO_CHANNEL_ENCODING = AudioFormat.ENCODING_PCM_16BIT;
private static final int TLV_EXTENSIONS = 20000;
private static final int TLV_TYPE_AUDIO_DURATION = TLVPacket.TLV_META_TYPE_UINT | (TLV_EXTENSIONS + 1);
private static final int TLV_TYPE_AUDIO_DATA = TLVPacket.TLV_META_TYPE_RAW | (TLV_EXTENSIONS + 2);
private static final int TLV_TYPE_AUDIO_DURATION = TLVPacket.TLV_META_TYPE_UINT | (TLV_EXTENSIONS + 10);
private static final int TLV_TYPE_AUDIO_DATA = TLVPacket.TLV_META_TYPE_RAW | (TLV_EXTENSIONS + 11);
public int execute(Meterpreter meterpreter, TLVPacket request, TLVPacket response) throws Exception {
ByteArrayOutputStream baos = new ByteArrayOutputStream();