Exploit database

GH-c00d7249fc3771d6d0a9bdba6b8926ce

ynwarcs/cve-2023-24871

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-24871

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files15

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

rce/poc/btstack/platform/daemon/binding/java/src/com/bluekitchen/btstack/Event.java

Java · 639 bytes
package com.bluekitchen.btstack;

public class Event extends Packet {
	
	public Event(byte data[], int payloadLen){
		super(HCI_EVENT_PACKET, 0, data, payloadLen);
	}
	
	public Event(Packet packet){
		super(HCI_EVENT_PACKET, 0, packet.getBuffer(), packet.getPayloadLen());
	}
	
	/**
	 * @param
	 * @return eventType as int
	 * @brief
	 */
	public final int getEventType(){
		return Util.readByte(data, 0);
	}
		
	public String toString(){
		StringBuffer t = new StringBuffer();
		t.append(String.format("Event type %d, len %d: ", getEventType(), getPayloadLen()));
		t.append(Util.asHexdump(data, payloadLen));
		return t.toString();
	}
}