MCPcopy Create free account
hub / github.com/GhostFrankWu/SAEG / run

Method run

aeg_module/mod_exploit.py:19–28  ·  view source on GitHub ↗
(self, state_raw: angr.SimState, challenge: Challenge, new_mem: list)

Source from the content-addressed store, hash-verified

17 self.available = True
18
19 def run(self, state_raw: angr.SimState, challenge: Challenge, new_mem: list):
20 log.info(f"Trying exploit {self.exploit_name}")
21 try:
22 self.exploit_func(state_raw, challenge, new_mem, state_raw.globals['binary'])
23 except SimUnsatError:
24 log.failure(f"payload constraint unset")
25 # except AttributeError:
26 # log.failure(f"payload gadget unset")
27 self.available = False
28 log.failure(f"Exploit {self.exploit_name} failed")
29
30 def satisfy(self, binary: InteractiveBinary, try_lazy=False):
31 if self.available:

Callers 1

ret2ggFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected