We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 975b238 commit 35cb62eCopy full SHA for 35cb62e
lab7/sol.py
@@ -2,9 +2,7 @@
2
import sys
3
4
proj = angr.Project('./login')
5
-
6
init_state = proj.factory.entry_state()
7
8
simulation = proj.factory.simgr(init_state)
9
10
def success_condition(state):
@@ -15,9 +13,6 @@ def fail_condition(state):
15
13
16
14
simulation.explore(find=success_condition, avoid=fail_condition)
17
18
-if simulation.found:
19
- solution = simulation.found[0]
20
- password = solution.posix.dumps(sys.stdin.fileno()).strip()
21
- print(password.decode())
22
-else:
23
- print("Password not found.")
+solution = simulation.found[0]
+
+print(solution.posix.dumps(sys.stdin.fileno()))
0 commit comments