Skip to content

Instantly share code, notes, and snippets.

View theubusu's full-sized avatar
⁉️

theubusu theubusu

⁉️
  • Poland
  • 18:16 (UTC +01:00)
View GitHub Profile
@theubusu
theubusu / dmesg.txt
Created September 18, 2026 18:38
KDL-24W605A kernel dmesg
<5>[ 0.000000] Linux version 2.6.35.14_nl-az4 (root@slave28.jp.sony.com) (gcc version 4.5.1 (20120207 (Sony CE Linux 8.1.0.3)) ) #1 SMP PREEMPT Mon Aug 8 13:28:53 JST 2016
<4>[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387f
<4>[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
<4>[ 0.000000] Machine: Bst2brd
<4>[ 0.000000] Stby : -21491us
<4>[ 0.000000] LPT : 25323us
<4>[ 0.000000] FSCK-A : 416738us
<4>[ 0.000000] FSCK-E : 513827us
<4>[ 0.000000] Load : 518490us
<4>[ 0.000000] Entry : 919308us
@theubusu
theubusu / ibad.py
Created September 18, 2026 12:43
bmw ibad
import struct
import sys
import os
if len(sys.argv) == 3:
save = sys.argv[2]
else:
save = None
with open(sys.argv[1], "rb") as file:
@theubusu
theubusu / ustbin.py
Created July 28, 2026 15:00
unpack "USTBINDDATA" of canon printer
import struct
import sys
import os
import io
output_folder = sys.argv[2]
with open(sys.argv[1], "rb") as file:
file.seek(0, io.SEEK_END)
@theubusu
theubusu / nttcd.py
Created July 27, 2026 20:24
decode Easy NAND Tiny Tools .nttcd files (tables way)
import sys
# in 16 byte block
# 0 -> table_1
# 1 -> table_1 + SWAP
# 2 -> table_2
# 3 -> table_1 + SWAP
# 4 -> table_3
# 5 -> table_4
# 6 -> table_3 + SWAP
@theubusu
theubusu / sony_nand_ftl_tool.py
Created July 13, 2026 19:19
Sony TV multiple NAND FTL decoder
import sys
#
# AEP - KDL-40W4500
# 1x64MB = 64MB
#
def process_aep(nand, outfile):
NAND_DATA_SIZE = 512
NAND_OOB_SIZE = 16
@theubusu
theubusu / epkmake.py
Created July 13, 2026 16:04
epk v3 creator
import sys
import os
import struct
import math
import json
from Crypto.Cipher import AES
from random import randbytes
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import padding
@theubusu
theubusu / emma_ftl.py
Created July 13, 2026 12:42
nand FTL decode for sony EMMA
import sys
NAND_DATA_SIZE = 512
NAND_OOB_SIZE = 16
INTR_BLOCK_SIZE = 32768
INTR_TOTAL_BLOCKS = 4096
if len(sys.argv) < 4:
print("usage: emma_ftl.py <NAND1 file> <NAND2 file> <output file> <eegs mode>")
@theubusu
theubusu / bynd.py
Created July 13, 2026 10:04
bynd nand FTL used in regza CELL seine part
import sys
NAND_DATA_SIZE = 512
NAND_OOB_SIZE = 16
NAND_FILE_PATH = sys.argv[1]
FTL_BLOCK_SIZE = 16384
FTL_BLOCK_COUNT = 1024
###
@theubusu
theubusu / cramfs_rec.py
Created July 10, 2026 10:55
cramfs professional recovery
import struct
import sys
from collections import defaultdict, Counter
#440000 cramfs
#D28000 cramfs
#3028000 cramfs
#6740000 cramfs
# setting
@theubusu
theubusu / swu3.py
Created July 1, 2026 17:48
Dump/Decrypt swu passphrase on Tizen TVs
# based on: https://github.com/bugficks/msddecrypt, modified to just dump swu/msd passphrase from modern tizen TVs
# (c) bugficks@samygo 2016
# + theubusu 2026
# GPL v2
import sys
import ctypes
from ctypes import c_byte, c_char_p, c_int32, c_ushort, c_uint32, c_void_p, byref, cast, pointer, POINTER, CDLL
#### TEEC ####