He needs two things: a notebook and a hammer.
1. He breaks the machine with the hammer
2. Takes out the locked box with the money and runs away.
Question: what is the notebook needed for?
Answer: If he didn't bring a notebook, he wouldn't be called a "hacker".
Edit: simplified for better understanding
