handout.tex 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. \documentclass[11pt]{exam}
  2. \newcommand{\myname}{Vecna}
  3. \newcommand{\myemail}{vvecna@uwaterloo.ca}
  4. \newcommand{\myhwtype}{Netsim}
  5. \newcommand{\myhwnum}{Handout}
  6. \newcommand{\myclass}{SPARCS}
  7. \newcommand{\mylecture}{}
  8. \newcommand{\mysection}{2024}
  9. \date{2024 May 13}
  10. % Prefix for numedquestion's
  11. \newcommand{\questiontype}{}
  12. % Use this if your "written" questions are all under one section
  13. % For example, if the homework handout has Section 5: Written Questions
  14. % and all questions are 5.1, 5.2, 5.3, etc. set this to 5
  15. % Use for 0 no prefix. Redefine as needed per-question.
  16. \newcommand{\writtensection}{0}
  17. \usepackage{amsmath, amsfonts, amsthm, amssymb} % Some math symbols
  18. \usepackage{enumerate}
  19. \usepackage{enumitem}
  20. \usepackage{graphicx}
  21. \usepackage{hyperref}
  22. \usepackage[all]{xy}
  23. \usepackage{wrapfig}
  24. \usepackage{fancyvrb}
  25. \usepackage[T1]{fontenc}
  26. \usepackage{listings}
  27. \usepackage{centernot}
  28. \usepackage{mathtools}
  29. \DeclarePairedDelimiter{\ceil}{\lceil}{\rceil}
  30. \DeclarePairedDelimiter{\floor}{\lfloor}{\rfloor}
  31. \DeclarePairedDelimiter{\card}{\vert}{\vert}
  32. % Uncomment the following line to get Solarized-themed source listings
  33. % You will have had to already installed the solarized-light package
  34. % https://github.com/jez/latex-solarized
  35. %
  36. %\usepackage{solarized-light}
  37. \setlength{\parindent}{0pt}
  38. \setlength{\parskip}{5pt plus 1pt}
  39. \pagestyle{empty}
  40. \def\indented#1{\list{}{}\item[]}
  41. \let\indented=\endlist
  42. \newcounter{questionCounter}
  43. \newcounter{partCounter}[questionCounter]
  44. \newenvironment{namedquestion}[1][\arabic{questionCounter}]{%
  45. \addtocounter{questionCounter}{1}%
  46. \setcounter{partCounter}{0}%
  47. \vspace{.2in}%
  48. \noindent{\bf \questiontype \; \arabic{questionCounter}. #1}%
  49. \vspace{0.3em} \hrule \vspace{.1in}%
  50. }{}
  51. \newenvironment{numedquestion}[0]{%
  52. \stepcounter{questionCounter}%
  53. \vspace{.2in}%
  54. \ifx\writtensection\undefined
  55. \noindent{\bf \questiontype \; \arabic{questionCounter}. }%
  56. \else
  57. \if\writtensection0
  58. \noindent{\bf \questiontype \; \arabic{questionCounter}. }%
  59. \else
  60. \noindent{\bf \questiontype \; \writtensection.\arabic{questionCounter} }%
  61. \fi
  62. \vspace{0.3em} \hrule \vspace{.1in}%
  63. }{}
  64. \newenvironment{alphaparts}[0]{%
  65. \begin{enumerate}[label=\textbf{(\alph*)}]
  66. }{\end{enumerate}}
  67. \newenvironment{arabicparts}[0]{%
  68. \begin{enumerate}[label=\textbf{\arabic{questionCounter}.\arabic*})]
  69. }{\end{enumerate}}
  70. \newenvironment{questionpart}[0]{%
  71. \item
  72. }{}
  73. \newcommand{\answerbox}[1]{
  74. \begin{framed}
  75. \vspace{#1}
  76. \end{framed}}
  77. \pagestyle{head}
  78. \headrule
  79. \header{\textbf{\myclass\ \mylecture\mysection}}%
  80. {\textbf{\myname\ (\myemail)}}%
  81. {\textbf{\myhwtype\ \myhwnum}}
  82. \begin{document}
  83. \thispagestyle{plain}
  84. \begin{center}
  85. {\Large \myclass{} \myhwtype{} \myhwnum} \\
  86. \myname{} (\myemail{}) \\
  87. Cryptography, Security, and Privacy (CrySP) Research Group \\
  88. University of Waterloo \\
  89. 2024 May 13
  90. \end{center}
  91. \begin{namedquestion}[Links]
  92. \begin{itemize}
  93. \item Netsim game: \url{https://vvecna.cs.uwaterloo.ca/netsim/}
  94. \item Backup link: \url{https://netsim.erinn.io/}
  95. \item Slides: \url{https://vvecna.cs.uwaterloo.ca/2024-uw-sparcs-netsim.pdf}
  96. \end{itemize}
  97. \end{namedquestion}
  98. \begin{namedquestion}[Goals]
  99. \begin{itemize}
  100. \item \textit{\textbf{Define}} the foundations of computer networks
  101. \item \textit{\textbf{Define}} security goals
  102. \item \textit{\textbf{Explore}} whether these security goals are accomplished on the Internet
  103. \item \textit{\textbf{Execute}} attacks against a (simulated) network
  104. \item \textit{\textbf{Identify}} real-world implications and defenses
  105. \end{itemize}
  106. \end{namedquestion}
  107. %\begin{namedquestion}[Outline]
  108. % \begin{itemize}
  109. % \item Networking background
  110. % \begin{itemize}
  111. % \item Introduction to networking/the Internet: \textbf{2 levels}
  112. % \item ICMP (ping): \textbf{3 levels}
  113. % \end{itemize}
  114. % \item Security goals (and how the Internet fails to accomplish them)
  115. % \begin{itemize}
  116. % \item What are our security goals?
  117. % \item Encryption: \textbf{1 level}
  118. % \item Attacks: \textbf{6 levels}
  119. % \end{itemize}
  120. % \item Real-world implications
  121. % \end{itemize}
  122. %\end{namedquestion}
  123. \begin{namedquestion}[Takeaways and Advice]
  124. \begin{itemize}
  125. \item The Internet was not designed with security in mind.
  126. \item The Internet's insecurity can be exploited for surveillance, censorship, and other bad things.
  127. \item Some things you can do:
  128. \begin{itemize}
  129. \item Encrypt your web traffic with HTTPS\footnote{\url{https://www.eff.org/deeplinks/2021/09/https-actually-everywhere}}
  130. \item Encrypt your private messages with Signal\footnote{\url{https://signal.org/}}
  131. \item Hide which sites you visit with Tor\footnote{\url{https://torproject.org/}}
  132. \item Help other people access Tor with Snowflake\footnote{\url{https://snowflake.torproject.org/}}
  133. \item Study cryptography, security, and/or privacy and work on problems that give people more privacy and security
  134. \end{itemize}
  135. \end{itemize}
  136. \end{namedquestion}
  137. \end{document}