Skip to content

Commit

Permalink
Recompile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jakespringer committed Aug 18, 2017
1 parent 71ad0b3 commit ec814f2
Show file tree
Hide file tree
Showing 21 changed files with 7 additions and 3 deletions.
Binary file modified dist/00_angr_find
Binary file not shown.
Binary file modified dist/01_angr_avoid
Binary file not shown.
Binary file modified dist/02_angr_find_condition
Binary file not shown.
Binary file modified dist/03_angr_symbolic_registers
Binary file not shown.
Binary file modified dist/04_angr_symbolic_stack
Binary file not shown.
Binary file modified dist/05_angr_symbolic_memory
Binary file not shown.
Binary file modified dist/06_angr_symbolic_dynamic_memory
Binary file not shown.
Binary file modified dist/07_angr_symbolic_file
Binary file not shown.
Binary file modified dist/08_angr_constraints
Binary file not shown.
Binary file modified dist/09_angr_hooks
Binary file not shown.
Binary file modified dist/10_angr_simprocedures
Binary file not shown.
Binary file modified dist/11_angr_sim_scanf
Binary file not shown.
Binary file modified dist/12_angr_veritesting
Binary file not shown.
Binary file modified dist/13_angr_static_binary
Binary file not shown.
Binary file modified dist/14_angr_shared_library
Binary file not shown.
Binary file modified dist/15_angr_arbitrary_read
Binary file not shown.
Binary file modified dist/16_angr_arbitrary_write
Binary file not shown.
Binary file modified dist/17_angr_arbitrary_jump
Binary file not shown.
Binary file modified dist/lib14_angr_shared_library.so
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/scaffold09.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def skip_check_equals_(state):
state.regs.eax = claripy.If(
user_input_string == check_against_string,
claripy.BVV(1, 32),
claripy.BVV(1, 32)
claripy.BVV(0, 32)
)

simulation = project.factory.simgr(initial_state)
Expand Down
8 changes: 6 additions & 2 deletions dist/scaffold17.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ def has_active():
if state.satisfiable(extra_constraints=(eip == ???):
# We can!
solution_state = unconstrained_state

# Now, constrain eip to equal the address of the print_good function.
# (!)
...

break

# Since we already checked all of the unconstrained states and did not find
Expand All @@ -91,8 +96,7 @@ def has_active():
for byte in solution_state.posix.files[sys.stdin.fileno()].all_bytes().chop(bits=8):
solution_state.add_constraints(byte >= ???, byte <= ???)

# Constrain the instruction pointer to target the print_good function and
# then solve for the user input (recall that this is
# Solve for the user input (recall that this is
# 'solution_state.posix.dumps(sys.stdin.fileno())')
# (!)
...
Expand Down

0 comments on commit ec814f2

Please sign in to comment.