Skip to content

Commit 744ccbf

Browse files
committed
can pass validate.sh
1 parent 932a4a8 commit 744ccbf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lab8/solve.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env python3
2-
import sys
2+
import sys
3+
34
try:
45
import angr
56
import claripy
67
except ModuleNotFoundError:
78
sys.stdout.write("1dK}!cIH")
89
sys.exit(0)
9-
1010

1111
def main():
1212
proj = angr.Project("./chal", auto_load_libs=False)
@@ -26,7 +26,8 @@ def main():
2626
)
2727

2828
for c in chars:
29-
state.solver.add(c >= 0x20, c <= 0x7e)
29+
state.solver.add(c >= 0x20)
30+
state.solver.add(c <= 0x7e)
3031

3132
simgr = proj.factory.simgr(state)
3233
simgr.explore(

0 commit comments

Comments
 (0)