\documentclass[11pt,a4paper,oldfontcommands,oneside]{memoir}
\usepackage[french]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%\usepackage{microtype}
\usepackage[dvips]{graphicx}
\usepackage{xcolor}
\usepackage{times}
\usepackage{titlesec}
\usepackage{color}
\usepackage{listings}
\usepackage[many]{tcolorbox}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{wrapfig}
\usepackage{abstract}
\usepackage[format=plain,labelfont=it,textfont=it,font=small]{caption}
\usepackage{hyperref}
\usepackage{geometry}
\usepackage[normalem]{ulem}

\tcbuselibrary{listings}

%Pour les références dans le texte, renvoie à un label
\hypersetup{
    colorlinks=true,
    linkcolor=blue,
%    filecolor=magenta,
%    urlcolor=cyan,
}

\geometry{total={210mm,297mm},
left=15mm,right=15mm,
%bindingoffset=10mm, 
top=15mm,bottom=15mm
}

\OnehalfSpacing
%\linespread{1.3}

%%% CODE SECTIONS STYLE
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{mauve}{rgb}{0.58,0,0.82}
\definecolor{okgreen}{rgb}{0.191,0.50,0.114}

\lstset{frame=tb,
  language=,
  aboveskip=3mm,
  belowskip=3mm,
  showstringspaces=false,
  columns=flexible,
  basicstyle={\small\ttfamily},
  numbers=none,
  numberstyle=\tiny\color{gray},
  keywordstyle=\color{blue},
  commentstyle=\color{dkgreen},
  stringstyle=\color{mauve},
  breaklines=true,
  breakatwhitespace=true,
  tabsize=3
}

%%% CHAPTER'S STYLE
%\chapterstyle{bianchi}
%\chapterstyle{ger}
%\chapterstyle{}
\definecolor{gray60}{gray}{0.60}
\newcommand{\hsp}{\hspace{10pt}}
\titleformat{\chapter}{\Huge\bfseries\sffamily\raggedright}{\thechapter\hsp\textcolor{gray60}{|}\hsp}{0pt}{\Huge\bfseries\sffamily\raggedright}
%\chapterstyle{madsen}
%\chapterstyle{ell}
%%% STYLE OF SECTIONS, SUBSECTIONS, AND SUBSUBSECTIONS
\setsecheadstyle{\Large\bfseries\sffamily\raggedright}
\setsubsecheadstyle{\large\bfseries\sffamily\raggedright}
\setsubsubsecheadstyle{\bfseries\sffamily\raggedright}


%%% STYLE OF PAGES NUMBERING
%\pagestyle{companion}\nouppercaseheads 
%\pagestyle{headings}
%\pagestyle{Ruled}
\pagestyle{plain}
\makepagestyle{plain}
\makeevenfoot{plain}{\thepage}{}{}
\makeoddfoot{plain}{}{}{\thepage}
\makeevenhead{plain}{}{}{}
\makeoddhead{plain}{}{}{}

%%% STYLE FOR TERM QUOTES
\newtcblisting{termstyle}{
    colupper=black,
%    colframe=yellow!75!black,
    listing only,
%    hbox,
    listing options={
        basicstyle=\scriptsize\ttfamily,
        breaklines=false,
        columns=fullflexible,
  },
}


\maxsecnumdepth{subsection} % chapters, sections, and subsections are numbered
\maxtocdepth{subsection} % chapters, sections, and subsections are in the Table of Contents


%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%

\renewcommand*\contentsname{Table des Matières} %%%renommage de la table des matières

% Dossier où se trouvent les images par défaut
\graphicspath{{imgs/}}

% Rajouter les numérotation pour les \paragraphe et \subparagraphe
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}

% Ne pas afficher la mention « Chapter X » lors des chapitres, ne pas numéroter ce qui n'est pas un chapitre à proprement parler
\titleformat{\chapter}[display]
  {\Huge\bfseries}
  {}
  {0pt}
  {\thechapter.\ }
\titleformat{name=\chapter,numberless}[display]
  {\Huge\bfseries}
  {}
  {0pt}
  {}

% Bonjour je veux des colonnes centrées
\newcolumntype{C}{>{\centering\arraybackslash}X}

\begin{document}

%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
%   TITLEPAGE
%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
\thispagestyle{empty}

{%%%
\sffamily
\centering
\Large

\includegraphics[width=150pt]{ensiie}
~\vspace{\fill}

\noindent\hrulefill
\vspace{6mm}

{\huge Tests d'intrusion boîte noire de machines virtuelles}


\noindent\hrulefill


\vspace{2cm}

{\LARGE
Alexis Brouste

Tàzio Gennuso
}

\vspace{3cm}

ENSIIE

\vspace{2mm}
--
\vspace{2mm}

SEC2

\vspace{\fill}

\today

}

%\cleardoublepage
\clearpage

\hypersetup{
    linkcolor=black,
}

\begin{KeepFromToc}
  \tableofcontents
\end{KeepFromToc}
\hypersetup{
    linkcolor=blue,
}

\clearpage

\input{./preambule.tex}

\input{./vm1.tex}

\input{./vm2.tex}

\input{./vm3.tex}

\input{./vm4.tex}

\end{document}
