mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-24 18:16:24 +01:00
fix record_mic TLV values
This commit is contained in:
parent
10cd6155f6
commit
c61c565918
c/meterpreter/source/extensions/stdapi/server/webcam
java/androidpayload/library/src/com/metasploit/meterpreter/android
@ -7,13 +7,13 @@
|
|||||||
MAKE_CUSTOM_TLV( \
|
MAKE_CUSTOM_TLV( \
|
||||||
TLV_META_TYPE_UINT, \
|
TLV_META_TYPE_UINT, \
|
||||||
TLV_TYPE_EXTENSION_AUDIO, \
|
TLV_TYPE_EXTENSION_AUDIO, \
|
||||||
TLV_EXTENSIONS + 1)
|
TLV_EXTENSIONS + 10)
|
||||||
|
|
||||||
#define TLV_TYPE_AUDIO_DATA \
|
#define TLV_TYPE_AUDIO_DATA \
|
||||||
MAKE_CUSTOM_TLV( \
|
MAKE_CUSTOM_TLV( \
|
||||||
TLV_META_TYPE_RAW, \
|
TLV_META_TYPE_RAW, \
|
||||||
TLV_TYPE_EXTENSION_AUDIO, \
|
TLV_TYPE_EXTENSION_AUDIO, \
|
||||||
TLV_EXTENSIONS + 2)
|
TLV_EXTENSIONS + 11)
|
||||||
|
|
||||||
DWORD request_ui_record_mic(Remote *remote, Packet *request);
|
DWORD request_ui_record_mic(Remote *remote, Packet *request);
|
||||||
|
|
||||||
|
4
java/androidpayload/library/src/com/metasploit/meterpreter/android/webcam_audio_record_android.java
4
java/androidpayload/library/src/com/metasploit/meterpreter/android/webcam_audio_record_android.java
@ -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 AUDIO_CHANNEL_ENCODING = AudioFormat.ENCODING_PCM_16BIT;
|
||||||
|
|
||||||
private static final int TLV_EXTENSIONS = 20000;
|
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_DURATION = TLVPacket.TLV_META_TYPE_UINT | (TLV_EXTENSIONS + 10);
|
||||||
private static final int TLV_TYPE_AUDIO_DATA = TLVPacket.TLV_META_TYPE_RAW | (TLV_EXTENSIONS + 2);
|
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 {
|
public int execute(Meterpreter meterpreter, TLVPacket request, TLVPacket response) throws Exception {
|
||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user