Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ghettorce's full-sized avatar
💭
nu vot, kak-to tak

ghettorce

💭
nu vot, kak-to tak
View GitHub Profile
@ghettorce
ghettorce / amiibin2nfcdev.py
Last active September 2, 2023 12:26
Script for converting NTAG215 dumps (.bin) to Flipper NFC device files (.nfc)
#!/usr/bin/env python3
import sys
from os.path import splitext, basename
if not sys.argv[1:]:
sys.exit(f'Usage: {sys.argv[0]} dump.bin')
ntag_file = sys.argv[1]
nfc_file = splitext(ntag_file)[0] + '.nfc'
@ghettorce
ghettorce / cod_hash_dvars.py
Created November 13, 2016 20:45
COD: MWR hash function (FNV1a)
# python cod_hash_dvars.py <dvars.txt>
import os
import sys
import ctypes
# COD: MWR
FNV32_PRIME = 0xB3CB2E29
FNV32_BASIS = 0x319712C3