Lab 21-1 Solutions
Short Answers
When you run the program without any parameters, it exits immediately.
The
mainfunction is located at 0x00000001400010C0. You can spot the call tomainby looking for a function call that accepts an integer and two pointers as parameters.The string
ocl.exeis stored on the stack.To have this program run its payload without changing the filename of the executable, you can patch the
jumpinstruction at 0x0000000140001213 so that it is a NOP instead.The name of the executable is being compared against the string
jzm.exeby the call tostrncmpat 0x0000000140001205.The function at 0x00000001400013C8 takes one parameter, which contains the socket created to the remote host.
The call to
CreateProcesstakes 10 parameters. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access