This file contains hidden or 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 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 }; |
This file contains hidden or 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
#!/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 |
This file contains hidden or 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
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) |