Skip to content

Instantly share code, notes, and snippets.

View Dissfall's full-sized avatar

Heorhi Lukyanov Dissfall

  • Lithuania
View GitHub Profile
@Dissfall
Dissfall / bitstream-from-sub.py
Created July 26, 2022 18:17 — forked from jinschoi/bitstream-from-sub.py
Python script to clean up and recover an OOK bitstream from a Flipper RAW .sub file.
#!/usr/bin/env python
# Find the raw bitstring from a captured Flipper RAW .sub file.
# Must provide the bitlength in ms, and the allowable error which can be tolerated.
import re
import sys
import math
filename = sys.argv[1]