This file contains hidden or 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
/* | |
Source for ida_patcher | |
Copyright (c) 2006 Chris Eagle cseagle at gmail.com | |
This program is free software; you can redistribute it and/or modify it | |
under the terms of the GNU General Public License as published by the Free | |
Software Foundation; either version 2 of the License, or (at your option) | |
any later version. | |
This program is distributed in the hope that it will be useful, but WITHOUT |
This file contains hidden or 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
from Crypto.Cipher import AES | |
from StringIO import StringIO | |
from bplist import BPlistReader #https://github.com/farcaller/bplist-python | |
import M2Crypto | |
import gzip | |
import struct | |
def xor_strings(s, key): | |
res = "" | |
for i in xrange(len(s)): |