Skip to content

Instantly share code, notes, and snippets.

@mmaridev
Created May 5, 2019 10:32
Show Gist options
  • Select an option

  • Save mmaridev/327a98d128d83f10113f4d6e113a533a to your computer and use it in GitHub Desktop.

Select an option

Save mmaridev/327a98d128d83f10113f4d6e113a533a to your computer and use it in GitHub Desktop.
Verifica delle conscenze laboratorio hacking
\documentclass{exam}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\usepackage{courier}
\usepackage{graphicx}
\newcounter{abc}
\renewcommand{\theabc}{\stepcounter{abc}\Roman{abc}}
\newcommand{\answerbox}{\fbox{\phantom{M}}}
%\pagenumbering{gobble}
\title{Laboratorio di hacking (Juvenes)\\
Verifica delle conoscenze}
\date{}
\author{}
\begin{document}
Marco Marinello
\hfill
20/3/2019
{\let\newpage\relax\maketitle}
RICORDA: non parlare con i tuoi compagni e non cercare le risposte
su internet!
Quando hai finito consegna la verifica a Nicola e ringrazialo.
Questa verifica non ha voto e serve solamente a vedere come sta andando
il corso.
Buon lavoro!
\makebox[\textwidth]{Cognome e nome:\enspace\hrulefill}
\vspace{8mm}
\begin{questions}
\question Segna fra i seguenti comandi \textbf{solamente} quelli
che abbiamo utilizzato fino ad ora \textbf{durante il corso}
\begin{minipage}{0.20\textwidth}
\begin{tabular}{p{\textwidth}}
\begin{checkboxes}
\choice asterisk
\choice cat
\choice cp
\choice cut
\choice dir
\choice echo
\end{checkboxes}
\end{tabular}
\end{minipage}
\begin{minipage}{0.20\textwidth}
\begin{tabular}{|p{\textwidth}}
\begin{checkboxes}
\choice grep
\choice ifconfig
\choice ip a
\choice ipconfig
\choice kill
\choice ls
\end{checkboxes}
\end{tabular}
\end{minipage}
\begin{minipage}{0.20\textwidth}
\begin{tabular}{|p{\textwidth}}
\begin{checkboxes}
\choice nmap
\choice openssl
\choice ps hwaxu
\choice python
\choice rm
\choice scp
\end{checkboxes}
\end{tabular}
\end{minipage}
\begin{minipage}{0.20\textwidth}
\begin{tabular}{|p{\textwidth}}
\begin{checkboxes}
\choice service
\choice ssh
\choice stat
\choice systemctl
\choice vzdump
\choice xkill
\end{checkboxes}
\end{tabular}
\end{minipage}
\question Spiega \textit{nello spazio assegnato} cosa sia una rete
\makebox[\textwidth]{\enspace\hrulefill}
\makebox[\textwidth]{\enspace\hrulefill}
\makebox[\textwidth]{\enspace\hrulefill}
\question Stabilisci se le seguenti affermazioni sono vere (V) o false (F)
\noindent\begin{tabularx}{\textwidth}{cXcc}
& & V & F\\
(\theabc) & \textbf{Internet}, per come lo conosciamo, si può definire
come "rete di reti" & \answerbox & \answerbox\\
(\theabc) & \textit{OpenSSH} è un software che permette di collegarsi da un
computer "A" (detto \textit{client}) ad un computer "B"
(detto \textit{server}) in maniera sicura & \answerbox & \answerbox\\
(\theabc) & Il comando \texttt{iptables -A INPUT -j DROP}
modifica il firewall in modo da bloccare tutte le connessioni
in uscita & \answerbox & \answerbox\\
(\theabc) & Un virus può avere dei sistemi di replicazione che gli
permettono di copiarsi autonomamente cosìcche anche
se si cancella il file principale non si
riesce ad eliminare il virus & \answerbox & \answerbox
\end{tabularx}
\question Scegli il giusto completamento per la seguente affermazione
Se normalmente la porta 22, usata da SSH, si può
immaginare come una vera e propria porta chiusa e che sia necessaria
una chiave (password) per aprirla allora quando
si \textbf{bloccano} tutte le connessioni in ingresso
\begin{oneparchoices}
\choice si può provare con qualsiasi chiave ma la porta non si
aprirà mai
\choice è come se la porta sparisse
\end{oneparchoices}
\question In riferimento al seguente diagramma di rete
\includegraphics[width=0.7\linewidth]{dia1.png}
\begin{parts}
\part Supponendo di voler effettuare un attacco MITM (Man-in-the-middle)
al PC di Martin, disegna con la penna \textbf{sul}
diagramma \textbf{in quali punti} si potrebbe trovare l'attaccante
\part Stabilisci se le seguenti affermazioni sono vere (V) o false (F)
\noindent\begin{tabularx}{\textwidth}{cXcc}
& & V & F\\
(\theabc) & Il PC di Michele può raggiungere il Server di Barillà
solamente attraverso il suo router & \answerbox & \answerbox\\
(\theabc) & Il Server di Barillà può raggiungere tutti i PC
& \answerbox & \answerbox\\
(\theabc) & La stampante di Martin può raggiungere il
router \footnote{Supponi si tratti di una stampante non intelligente}
& \answerbox & \answerbox\\
(\theabc) & Il PC di Gianmaria può scambiare dati con il PC di
Michele senza passare attraverso internet & \answerbox & \answerbox\\
(\theabc) & Se il PC di Gianmaria gestisse, ad esempio, le luci della casa,
allora le luci si potrebbero comandare dal PC di Michele
ma \textbf{non} dal PC di Martin & \answerbox & \answerbox
\end{tabularx}
\end{parts}
\question Disegna \textit{schematicamente} nel quadrato qui sotto,
facendo riferimento al diagramma poco sopra, il tragitto
che fa un pacchetto di dati (supponi un messaggio di testo)
per arrivare al PC di Martin partendo dal PC di Gianmaria.
Supponi si tratti di un'architettura \textit{serverless} (ovvero senza
server)
\fbox{\rule{\textwidth}{0pt}\rule[-0.5ex]{0pt}{28ex}}
\end{questions}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment