This file contains 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
# Initialise a block of memory by splitting the block of memory of interest, set | |
# them to initialised and set bytes to them | |
#@author Henry Fung | |
#@category CustomScript | |
#TODO Add User Code Here | |
def mySplit(start, end, value=""): | |
mem = currentProgram.getMemory() | |
aStart = currentAddress.getAddress(start) | |
aEnd = currentAddress.getAddress(hex(int(end, base=16) + 1)[2:]) |