Assignment-5 #2
1 changed files with 8 additions and 4 deletions
|
@ -122,10 +122,14 @@ user@intro:~$ objdump -d intro | awk -v RS= '/^[[:xdigit:]]+ <secret>/'
|
|||
# Do not remove this intial line; it will disable pagination
|
||||
set pagination off
|
||||
|
||||
file intro
|
||||
break secret
|
||||
# TODO: your commands go here
|
||||
# read in the intro binary
|
||||
file intro
|
||||
# breakpoint at secret
|
||||
break secret
|
||||
# run program with paramter value 5
|
||||
r 5
|
||||
# read eax register
|
||||
i r eax
|
||||
stepi 6
|
||||
# after 5. instruction
|
||||
|
@ -146,7 +150,7 @@ continue
|
|||
|
||||
# Do not remove the final quit; it will exit GDB automatically
|
||||
quit
|
||||
\end{lstlisting}
|
||||
\end{lstlisting}
|
||||
\caption[short]{Inhalt der command Datei}
|
||||
\end{figure}
|
||||
|
||||
|
|
Loading…
Reference in a new issue