cscg24-license

CSCG 2024 Challenge 'Most unique license checker'
git clone https://git.sinitax.com/sinitax/cscg24-license
Log | Files | Refs | sfeed.txt

bvscript (335B)


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