We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74962e8 commit 6aa0e44Copy full SHA for 6aa0e44
1 file changed
lab8/solve.py
@@ -8,7 +8,7 @@ def main():
8
state = proj.factory.entry_state(stdin=angr.SimFile)
9
simgr = proj.factory.simulation_manager(state)
10
11
- simgr.explore(find=lambda s: b"Correct!" in s.posix.dumps(1),
+ simgr.explore(find=lambda s: b"flag" in s.posix.dumps(1),
12
avoid=lambda s: b"Wrong key!" in s.posix.dumps(1))
13
14
if len(simgr.found) > 0:
@@ -19,4 +19,4 @@ def main():
19
print("No solution found")
20
21
if __name__ == '__main__':
22
- main()
+ main()
0 commit comments