equal
deleted
inserted
replaced
394 |
394 |
395 \end{frame} |
395 \end{frame} |
396 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
396 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
397 |
397 |
398 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
398 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
399 \begin{frame}[c] |
399 \begin{frame}[t] |
400 \frametitle{Payloads (2)} |
400 \frametitle{Starting A Shell} |
|
401 |
|
402 \small |
|
403 \lstinputlisting[language=C,numbers=none,xleftmargin=-6mm]{../progs/o1.c} |
|
404 |
|
405 \begin{textblock}{7}(5,7.5) |
|
406 \begin{bubble}[7cm] |
|
407 \lstinputlisting[language=C,numbers=none,xleftmargin=-0mm]{../progs/shell.c} |
|
408 \end{bubble} |
|
409 \end{textblock} |
|
410 |
|
411 \end{frame} |
|
412 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
413 |
|
414 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
415 \begin{frame}[c] |
|
416 \frametitle{Avoiding \texttt{$\backslash$x00}} |
401 |
417 |
402 \begin{itemize} |
418 \begin{itemize} |
403 \item another difficulty is that the code is not allowed to contain \texttt{$\backslash$x00}: |
419 \item another difficulty is that the code is not allowed to contain \texttt{$\backslash$x00}: |
404 |
420 |
405 \begin{center} |
421 \begin{center} |
410 {\small |
426 {\small |
411 \lstinputlisting[language=C,numbers=none]{../progs/app5.c}} |
427 \lstinputlisting[language=C,numbers=none]{../progs/app5.c}} |
412 |
428 |
413 \end{frame} |
429 \end{frame} |
414 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
430 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
431 |
|
432 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
433 \begin{frame}[c] |
|
434 \frametitle{Overflow.c} |
|
435 |
|
436 \lstinputlisting[language=C,numbers=none]{../progs/overflow.c} |
|
437 |
|
438 |
|
439 \end{frame} |
|
440 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
441 |
415 |
442 |
416 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
443 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
417 \begin{frame}[c] |
444 \begin{frame}[c] |
418 \frametitle{Variants} |
445 \frametitle{Variants} |
419 |
446 |