Skip to content

Instantly share code, notes, and snippets.

View bbaranoff's full-sized avatar

bastien baranoff bbaranoff

View GitHub Profile
@bbaranoff
bbaranoff / tea1_opencl_crack.py
Created March 23, 2025 20:18
tea1_opencl_cracker
import argparse
import pyopencl as cl
import numpy as np
import multiprocessing
from multiprocessing import Manager
# Charger et compiler le code OpenCL
KERNEL_CODE = """
__constant ushort g_awTea1LutA[8] = { 0xDA86, 0x85E9, 0x29B5, 0x2BC6, 0x8C6B, 0x974C, 0xC671, 0x93E2 };
__constant ushort g_awTea1LutB[8] = { 0x85D6, 0x791A, 0xE985, 0xC671, 0x2B9C, 0xEC92, 0xC62B, 0x9C47 };
#!/usr/bin/env python
from checkm8 import *
def main():
print '*** checkm8 exploit by axi0mX ***'
device = dfu.acquire_device(1800)
start = time.time()
print 'Found:', device.serial_number
@bbaranoff
bbaranoff / dst80.py
Created July 17, 2020 01:28 — forked from rqu1/dst80.py
dst80 python implementation
def bit(x,n): return (x>>n)&1
def bit_slice(x,msb,lsb): return (x&((2<<msb)-1))>>lsb
def bv2i(*args):
o=0
for i in args: o=(o<<1)|i
return o
def fa(x): return bit(0x3a35acc5,x)