equal
deleted
inserted
replaced
329 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
329 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
330 \begin{frame}[t] |
330 \begin{frame}[t] |
331 \frametitle{Starting a Shell} |
331 \frametitle{Starting a Shell} |
332 |
332 |
333 \small |
333 \small |
334 \lstinputlisting[language=C,numbers=none,xleftmargin=-6mm]{../progs/o1.c} |
334 \lstinputlisting[language=C,numbers=none,xleftmargin=-6mm]{../progs/o2.c} |
335 |
335 |
336 \begin{textblock}{7}(5,7.5) |
336 \begin{textblock}{7}(5,7.5) |
337 \begin{bubble}[7cm] |
337 \begin{bubble}[7cm] |
338 \lstinputlisting[language=C,numbers=none,xleftmargin=-0mm]{../progs/shell.c} |
338 \lstinputlisting[language=C,numbers=none,xleftmargin=-0mm]{../progs/shell.c} |
339 \end{bubble} |
339 \end{bubble} |
357 {\small |
357 {\small |
358 \lstinputlisting[language=C,numbers=none]{../progs/app5.c}} |
358 \lstinputlisting[language=C,numbers=none]{../progs/app5.c}} |
359 |
359 |
360 \end{frame} |
360 \end{frame} |
361 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
361 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
362 |
|
363 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
364 \begin{frame}[t] |
|
365 \frametitle{String from the Web} |
|
366 |
|
367 {\small |
|
368 \lstinputlisting[language=C,numbers=none,xleftmargin=-6mm]{../progs/o1.c}} |
|
369 \bigskip\bigskip |
|
370 |
|
371 \noindent |
|
372 More ``interesting'' shell programs can be found at |
|
373 |
|
374 \begin{center} |
|
375 \url{http://shellblade.net/shellcode.html} |
|
376 \end{center} |
|
377 |
|
378 \end{frame} |
|
379 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
362 |
380 |
363 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
381 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
364 \begin{frame}[c] |
382 \begin{frame}[c] |
365 \frametitle{Overflow.c} |
383 \frametitle{Overflow.c} |
366 \mbox{}\\[-10mm] |
384 \mbox{}\\[-10mm] |