<filename>SMC/patch_SMC.py
# By c10udlnk(https://github.com/c10udlnk)
# Enjoy it!

def aPatch(start,end,key):
    n=0
    while(start+n!=end+1):
        addr=start+n
        PatchByte(addr,Byte(addr)^key)
        n+=1
    print("%d Byte has been changed"%n)

codeStart=0x600B00
codeLen=182
xorData=0xC
aPatch(codeStart,codeStart+codeLen-1,xorData)
<filename>SMC/patch_SMC.py
# By c10udlnk(https://github.com/c10udlnk)
# Enjoy it!

def aPatch(start,end,key):
    n=0
    while(start+n!=end+1):
        addr=start+n
        PatchByte(addr,Byte(addr)^key)
        n+=1
    print("%d Byte has been changed"%n)

codeStart=0x600B00
codeLen=182
xorData=0xC
aPatch(codeStart,codeStart+codeLen-1,xorData)
# By c10udlnk(https://github.com/c10udlnk) # Enjoy it!