2015-08-26 04:54:51 +03:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
2015-08-25 17:17:20 +03:00
|
|
|
from unicorn import *
|
|
|
|
uc = Uc(UC_ARCH_X86, UC_MODE_32)
|
|
|
|
uc.mem_map(0x0000, 0x2000)
|
|
|
|
uc.mem_map(0x2000, 0x4000)
|
|
|
|
uc.mem_write(0x1000, 0x1004 * ' ')
|
2015-08-29 05:23:53 +03:00
|
|
|
print 'If not reached, then we have BUG (crash on x86_64 Linux).'
|