Skip to content

Commit 6aa0e44

Browse files
authored
Update solve.py
1 parent 74962e8 commit 6aa0e44

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lab8/solve.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def main():
88
state = proj.factory.entry_state(stdin=angr.SimFile)
99
simgr = proj.factory.simulation_manager(state)
1010

11-
simgr.explore(find=lambda s: b"Correct!" in s.posix.dumps(1),
11+
simgr.explore(find=lambda s: b"flag" in s.posix.dumps(1),
1212
avoid=lambda s: b"Wrong key!" in s.posix.dumps(1))
1313

1414
if len(simgr.found) > 0:
@@ -19,4 +19,4 @@ def main():
1919
print("No solution found")
2020

2121
if __name__ == '__main__':
22-
main()
22+
main()

0 commit comments

Comments
 (0)