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
|
# Do not remove this intial line; it will disable pagination
|
||||||
set pagination off
|
set pagination off
|
||||||
|
|
||||||
file intro
|
|
||||||
break secret
|
|
||||||
# TODO: your commands go here
|
# 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
|
r 5
|
||||||
|
# read eax register
|
||||||
i r eax
|
i r eax
|
||||||
stepi 6
|
stepi 6
|
||||||
# after 5. instruction
|
# after 5. instruction
|
||||||
|
@ -146,7 +150,7 @@ continue
|
||||||
|
|
||||||
# Do not remove the final quit; it will exit GDB automatically
|
# Do not remove the final quit; it will exit GDB automatically
|
||||||
quit
|
quit
|
||||||
\end{lstlisting}
|
\end{lstlisting}
|
||||||
\caption[short]{Inhalt der command Datei}
|
\caption[short]{Inhalt der command Datei}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue