%% HINWEISE: %% Hier müssen folgende Einstellungen vorgenommen werden: \newif\ifeng %% Sprache: %% Falls die Dokumentensprache Englisch ist \engfalse mit einem %-Zeichen %%%davor auskommentieren, falls Deutsch \engtrue auskommentieren: %\engtrue \input{header} \title{Network} \subtitle{} \author{Michael Preisach} \institute{} \date{May 17 2019} %%%% %%%%%%%%%%%%%%%% \begin{document} %%%%%%%%%%%%%%%% %%%% { \usebackgroundtemplate{\includegraphics[width=\paperwidth]{logos/hacker_flyer_bg_cmyk_slide.jpg}} \begin{frame}[plain] \titlepage \end{frame} } \section{Networking Basics} \begin{frame} \frametitle{Networking Basics} \begin{itemize} \item How do you capture network traffic? \end{itemize} \begin{center} \begin{tikzpicture} \Vertex[ x=0, y=0, color=sigflagblue]{A} \Vertex[ x=6, y=0, color=sigflagblue]{B} \Vertex[ x=3, y=-3, Pseudo]{C} \Vertex[ x=3, y=0, opacity=0, style={color=sigflagblue}]{D} \Text[ x=0, y=0,color=white, position=above,distance=5mm]{\texttt{Alice}} \Text[ x=6, y=0,color=white, position=above,distance=5mm]{\texttt{Bob}} \Edge[color=white,Direct](C)(D) \Edge[color=white](A)(B) \Plane[x=-3, y=2, width=2, height=2,image=logos/thinkface, NoBorder] \Text[ x=3, y=-3.5,color=white]{\texttt{Charlie}} \end{tikzpicture} \end{center} \end{frame} \begin{frame} \frametitle{Networking Basics} \begin{itemize} \item Use a managed switch and mirror the port of either Alice or Bob to the port of Charlie \end{itemize} \begin{center} \begin{tikzpicture} \Vertex[ x=0, y=0, color=sigflagblue]{A} \Vertex[ x=6, y=0, color=sigflagblue]{B} \Vertex[ x=3, y=-3, Pseudo]{C} \Vertex[ x=3, y=0, opacity=0, style={color=sigflagblue}]{D} \Text[ x=0, y=0,color=white, position=above,distance=5mm]{\texttt{Alice}} \Text[ x=6, y=0,color=white, position=above,distance=5mm]{\texttt{Bob}} \Edge[color=white,Direct](C)(D) \Edge[color=white](A)(D) \Edge[color=white](B)(D) \Plane[x=-3, y=2, width=2, height=2,image=logos/trollface, NoBorder] \Text[ x=3, y=-3.5,color=white]{\texttt{Charlie}} \end{tikzpicture} \end{center} \end{frame} \begin{frame} \frametitle{Networking Basics} \begin{itemize} \item How do you capture the traffic? \begin{itemize} \item tcpdump (CLI) \item Wireshark (GUI) \end{itemize} \end{itemize} \vfill \begin{block}{Example: Capturing traffic from \texttt{eth0}} \lstinputlisting[language=bash,numbers=none]{sources/tcpdump.sh} \end{block} \end{frame} \section{Wireshark} \begin{frame} \frametitle{Wireshark} \begin{itemize} \item How do you capture the traffic? \begin{itemize} \item tcpdump (CLI) \item Wireshark (GUI) \end{itemize} \end{itemize} \vfill \begin{block}{Example: Capturing traffic from \texttt{eth0}} \lstinputlisting[language=bash,numbers=none]{sources/tcpdump.sh} \end{block} \end{frame} \begin{frame} \frametitle{ANSI C} \begin{exampleblock}{helloworld.c} \lstinputlisting[language=c]{sources/helloworld.c} \end{exampleblock} \end{frame} \begin{frame} \frametitle{Java} \begin{alertblock}{helloworld.java} \lstinputlisting[language=java]{sources/helloworld.java} \end{alertblock} \end{frame} \begin{frame} \frametitle{Go} \begin{block}{helloworld.go} \lstinputlisting[language=go]{sources/helloworld.go} \end{block} \end{frame} \begin{frame} \frametitle{Python} \begin{exampleblock}{helloworld.py} \lstinputlisting[language=Python]{sources/helloworld.py} \end{exampleblock} \end{frame} \end{document}