def SaveModuleBP():
global codemap
try:
modname = AskStr('', 'module name : ')
bpo = ''
for e in Functions():
func = e.startEA
length = e.endEA - e.startEA
if length < codemap.func_min_size:
continue
offset = func - get_imagebase()
bpo += str(offset) + '\n'
print 'bp offset generation complete! ' + str(len(bpo))
payload = bpo
with open(codemap.homedir + modname + '.bpo', 'wb') as f:
f.write(zlib.compress(payload))
except:
traceback.print_exc(file=sys.stdout)
评论列表
文章目录