mirror of
https://github.com/rapid7/metasploit-payloads
synced 2024-11-26 17:41:08 +01:00
fix record_mic TLV values
This commit is contained in:
parent
10cd6155f6
commit
c61c565918
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user