Demo entry 5954579

entropy calc

   

Submitted by anonymous on Sep 08, 2016 at 10:50
Language: Python. Code size: 320 Bytes.

import os
import binascii

dummy_f = open("test.bin", "wb")

i = 0
while i < 0x400:
	dummy_f.write ("0000")
	i+= 1

i= 0
while i < 0x400:
	dummy_f.write("0001") 
	i+= 1

i=0
while i < 0x400:
	dummy_f.write("1234")
	i+=1

i=0
while i < 0x1600:
	a = binascii.unhexlify ( "{0:02x}".format(i%256)) 
	dummy_f.write(a )
	i+=1

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).