angr_ctf icon indicating copy to clipboard operation
angr_ctf copied to clipboard

Scaffold and solution challenge 07 not working with latest angr

Open benoitsevens opened this issue 6 years ago • 0 comments

Scaffold and solution challenge 07 are not working with latest angr, because SimFile class changed.

This is working code with latest version of angr for the filesystem part:

  filename = "OJKSQYDP.txt"  # :string
  symbolic_file_size_bytes = 64

  password = claripy.BVS('password', symbolic_file_size_bytes * 8)
  password_file = angr.storage.SimFile(filename, content=password, size=symbolic_file_size_bytes)

  initial_state.fs.insert(filename, password_file)
  simulation = project.factory.simgr(initial_state)

benoitsevens avatar Aug 09 '18 09:08 benoitsevens