summaryrefslogtreecommitdiffstats
path: root/solve/bvscript
blob: cf92f660b88c405a7640aff8dea9f488234c3ea7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
plt = bv.sections[".plt"]
for a in range(plt.start, plt.end, 8):
	f = bv.get_function_at(a)
	if f is None: continue
	i = next(f.hlil.instructions)
	assert(type(i) == binaryninja.highlevelil.HighLevelILJump)
	dst = i.get_expr(1).value.value
	src = bv.get_data_var_at(dst).value
	f2 = bv.get_function_at(src)
	f.name = "plt_" + f2.name