angr进阶(2)

如何应对C++程序

angr只实现了C库,所以应对C++程序,需要使用full_init_state方法,并设置unicorn引擎。

并且这个过程相对于C通常会更长

st = p.factory.full_init_state(
      args=['./wyvern'],
      add_options=angr.options.unicorn,
      stdin=flag,
)
sm = p.factory.simulation_manager(st)
sm.run()

猜你喜欢

转载自www.cnblogs.com/61355ing/p/10523662.html