flippin dangerous
parent
908248905a
commit
01d309f81f
|
@ -84,6 +84,12 @@ def sins():
|
||||||
with seed.open('rb') as seed_file:
|
with seed.open('rb') as seed_file:
|
||||||
seed_data = seed_file.read()
|
seed_data = seed_file.read()
|
||||||
|
|
||||||
|
seed_data = bytearray(seed_data)
|
||||||
|
|
||||||
|
offset = randint(0, len(seed_data))
|
||||||
|
flip = randint(0, 255)
|
||||||
|
seed_data[offset] ^= flip
|
||||||
|
|
||||||
seed_len = ctypes.c_uint(len(seed_data))
|
seed_len = ctypes.c_uint(len(seed_data))
|
||||||
logger.info(f'seed_data\n{binascii.b2a_hex(seed_data)}')
|
logger.info(f'seed_data\n{binascii.b2a_hex(seed_data)}')
|
||||||
logger.info(f'seed_len: {seed_len}')
|
logger.info(f'seed_len: {seed_len}')
|
||||||
|
|
Loading…
Reference in New Issue