Skip to content

Commit

Permalink
Fix accidental deletion of comments in 15
Browse files Browse the repository at this point in the history
  • Loading branch information
jakespringer committed Mar 9, 2018
1 parent c3b5822 commit 4afdd9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 15_angr_arbitrary_read/scaffold15.py
Expand Up @@ -174,6 +174,8 @@ def check_puts(state):
good_job_string_address = ??? # :integer, probably hexadecimal

# Create an expression that will test if puts_parameter equals
# good_job_string_address. If we add this as a constraint to our solver,
# it will try and find an input to make this expression true. Take a look
# at level 08 to remind yourself of the syntax of this.
# (!)
is_vulnerable_expression = ??? # :boolean bitvector expression
Expand All @@ -183,6 +185,8 @@ def check_puts(state):
# we have found our exploit!
#
# When doing this, however, we do not want to edit our state in case we
# have not yet found what we are looking for. To test if our expression
# is satisfiable without editing the original, we need to clone the state.
copied_state = state.copy()

# We can now play around with the copied state without changing the
Expand Down

0 comments on commit 4afdd9c

Please sign in to comment.