This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Installing dependencies (Tested on Ubuntu 22.04 LTS) | |
# | |
# Monado | |
sudo apt install cmake ninja-build | |
sudo apt install build-essential git wget unzip cmake ninja-build libeigen3-dev curl patch python3 pkg-config libx11-dev libx11-xcb-dev libxxf86vm-dev libxrandr-dev libxcb-randr0-dev libvulkan-dev glslang-tools libglvnd-dev libgl1-mesa-dev ca-certificates libusb-1.0-0-dev libudev-dev libhidapi-dev libwayland-dev libuvc-dev libavcodec-dev libopencv-dev libv4l-dev libcjson-dev libsdl2-dev libegl1-mesa-dev libbsd-dev | |
# XRSP (Quest Link USB) | |
sudo apt install capnproto libcapnp-dev libx264-dev nlohmann-json3-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://twitter.com/ShinyQuagsire/status/1536432635643211777 12:37 PM · Jun 13, 2022 | |
----- | |
I figured out how to enable USB device mode on my XPS 13 (9350) 🎉 | |
Though for some ungodly reason, it uses the right-side full USB port. So a crossover cable is required. | |
----- | |
https://twitter.com/ShinyQuagsire/status/1536434057671716864 12:43 PM · Jun 13, 2022 | |
----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import struct | |
import time | |
import hid | |
import sys | |
import argparse | |
# | |
# Constants | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import usb.core | |
import usb.util | |
import struct | |
import time | |
import os | |
# echo 1-1:1.0 > /sys/bus/usb/drivers/usb-storage/unbind | |
os.system("/bin/bash -c \"echo 1-1:1.0 > /sys/bus/usb/drivers/usb-storage/unbind\"") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip3 install pyusb | |
# Requires root on macOS to kick the kernel driver off the device. | |
import usb.core | |
import usb.util | |
import struct | |
import time | |
import base64 | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bus 001 Device 007: ID 0bb4:0350 HTC (High Tech Computer Corp.) VIVE Wireless Dongle | |
Device Descriptor: | |
bcdUSB 2.00 | |
bDeviceClass 0 UseInterfaceDescriptor | |
bDeviceSubClass 0 | |
bDeviceProtocol 0 | |
bMaxPacketSize0 64 | |
idVendor 0x0bb4 HTC (High Tech Computer Corp.) | |
idProduct 0x0350 | |
bcdDevice 1.00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DeviceInfo(softwareRevision, isOn, | |
SceneLightState(color, powerOnBehavior, deviceInfo | |
Light(id, | |
Capabilities(dimmable, customState | |
PowerOnBehavior(option | |
hueplay, huebloom, hueiris, huelightstrip, huego, plug, bollard, wallspot, groundspot, flexiblelamp, wallshade, walllantern | |
[ea:44:13:bd:db:59] Service [b8843add-0000-4aa1-8794-c3f462030bda] Unknown, ble_firmware_update? | |
[ea:44:13:bd:db:59] Characteristic [b8843add-0004-4aa1-8794-c3f462030bda] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dump partitions from the Pixel Watch's fastboot using `oem sha1sum` | |
# and `oem ramdump` memes. | |
# | |
# Currently the first 8 bytes aren't bruteforced, but they ~can be. | |
# Doesn't really matter though because the first 8 bytes is the "ANDROID!" magic | |
# for boot partitions. | |
import os | |
import sys | |
import subprocess | |
import hashlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DDC/CI Command Codes (antiquated MStar function, not real): | |
------ | |
0xCC, 0xF1, 0xF0 - LG special? Only CC actually used. | |
3 | |
1 | |
0xC6 | |
0xC8 | |
0xF3 | |
0xF5 | |
0xB1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import struct | |
import os | |
contents = open("resource.RFH", "rb").read() | |
blob_f = open("resource.RFD", "rb") | |
def huff_decompress(data): | |
bits = 0 | |
node = struct.unpack("<H", data[4:6])[0] | |
decomp = "" |
NewerOlder