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 2a7f461 commit fc665fcCopy full SHA for fc665fc
lab7/sol.py
@@ -1,14 +1,14 @@
1
import angr
2
+import sys
3
proj = angr.Project('./login', auto_load_libs=False)
-
4
start_state = proj.factory.entry_state()
5
simgr = proj.factory.simgr(start_state)
6
7
simgr.explore(find=lambda s: b'Login success' in s.posix.dumps(1))
8
9
if simgr.found:
10
- solution_state = simgr.found[0]
11
- password = solution_state.posix.dumps(0).strip()
12
- print(password.decode())
+solution_state = simgr.found[0]
+password = solution_state.posix.dumps(0).strip()
+print(password.decode())
13
else:
14
- print("Password not found.")
+print("Password not found.")
0 commit comments