Skip to content

Commit 975b238

Browse files
authored
Update sol.py
1 parent 9c5a2a1 commit 975b238

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lab7/sol.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import angr
22
import sys
3+
34
proj = angr.Project('./login')
5+
46
init_state = proj.factory.entry_state()
57

68
simulation = proj.factory.simgr(init_state)
@@ -16,6 +18,6 @@ def fail_condition(state):
1618
if simulation.found:
1719
solution = simulation.found[0]
1820
password = solution.posix.dumps(sys.stdin.fileno()).strip()
19-
print(password.decode())
21+
print(password.decode())
2022
else:
2123
print("Password not found.")

0 commit comments

Comments
 (0)