linux-rootkit

Feature-rich interactive rootkit that targets Linux kernel 4.19, accompanied by a dynamic kernel memory analysis GDB plugin for in vivo introspection (e.g. using QEMU)
git clone git://git.deurzen.net/linux-rootkit
Log | Files | Refs

beamerthemetum.sty (11431B)


      1 % This program can be redistributed and/or modified under the terms
      2 % of the GNU Public License, version 3.
      3 
      4 \usepackage{MnSymbol}
      5 \usepackage{helvet}
      6 
      7 \newcommand\semester[1]{\renewcommand\@semester{#1}}
      8 \newcommand\@semester{}
      9 
     10 % switch for 'dark' option
     11 \newif\ifyourpkgprefix@darkoption\yourpkgprefix@darkoptionfalse
     12 % switch for 'en' option
     13 \newif\ifyourpkgprefix@enoption\yourpkgprefix@enoptionfalse
     14 % switch for 'minimal' option
     15 \newif\ifyourpkgprefix@minimaloption\yourpkgprefix@minimaloptionfalse
     16 % switch for 'wide' option
     17 \newif\ifyourpkgprefix@wideoption\yourpkgprefix@wideoptionfalse
     18 
     19 
     20 \DeclareOption{dark}{\yourpkgprefix@darkoptiontrue}
     21 \DeclareOption{en}{\yourpkgprefix@enoptiontrue}
     22 \DeclareOption{minimal}{\yourpkgprefix@minimaloptiontrue}
     23 \DeclareOption{wide}{\yourpkgprefix@wideoptiontrue}
     24 
     25 \DeclareOption*{\OptionNotUsed} % discard any undeclared option
     26 
     27 \ProcessOptions\relax
     28 
     29 \newlength{\logoindent} %% Left and right margin on title page
     30 \setlength{\logoindent}{.5cm}
     31 
     32 \newlength{\headmargin} %% Left and right margin for title text line
     33 \setlength{\headmargin}{.1cm}
     34 
     35 \usepackage{babel}
     36 
     37 \ifyourpkgprefix@wideoption
     38 \geometry{paperwidth=170.66mm,paperheight=96mm}  % 16:9
     39 \else
     40 \geometry{paperwidth=128mm,paperheight=96mm} % 4:3
     41 \fi
     42 
     43 \setbeamerfont{title}{size=\Large}
     44 \setbeamerfont{subtitle}{size=\normalsize}
     45 
     46 \mode<presentation>
     47 
     48 \newif\ifbeamer@secheader
     49 \beamer@secheaderfalse
     50 
     51 \DeclareOptionBeamer{secheader}{\beamer@secheadertrue}
     52 \ProcessOptionsBeamer
     53 
     54 %% TUM Corporate Design Colors
     55 \definecolor{tumblue}{RGB}{0,101,189}
     56 \definecolor{primary-blue}{RGB}{0,101,189}
     57 \definecolor{primary-white}{RGB}{255,255,255}
     58 \definecolor{primary-black}{RGB}{0,0,0}
     59 
     60 \definecolor{secondary-grey-0}{RGB}{204,204,204}
     61 \definecolor{secondary-grey-1}{RGB}{127,127,127}
     62 \definecolor{secondary-grey-2}{RGB}{51,51,51}
     63 
     64 \definecolor{secondary-blue}{RGB}{0,82,147}
     65 
     66 \definecolor{secondary-dark-0}{RGB}{0,51,89}
     67 \definecolor{secondary-dark-1}{RGB}{0,40,71}
     68 \definecolor{secondary-dark-2}{RGB}{0,25,44}
     69 \definecolor{secondary-dark-3}{RGB}{0,10,17}
     70 
     71 \definecolor{emph-0}{RGB}{152,198,234} % light blue
     72 \definecolor{emph-1}{RGB}{100,160,200} % dark blue
     73 \definecolor{emph-2}{RGB}{218,215,203} % ivory
     74 \definecolor{emph-3}{RGB}{227,114,34}  % orange
     75 \definecolor{emph-4}{RGB}{162,173,0}   % green
     76 
     77 \definecolor{blue}{RGB}{0,101,189}
     78 
     79 % OLD legacy colors
     80 % =========================================================
     81 
     82 \ifyourpkgprefix@darkoption
     83   \colorlet{primary}{primary-white}
     84   \definecolor{secondary}{RGB}{0,82,147}
     85   \definecolor{tertiary}{RGB}{227,114,34}
     86   \definecolor{quarterly}{RGB}{162,173,0}
     87 \else
     88   \colorlet{primary}{primary-white}
     89   \definecolor{secondary}{RGB}{0,82,147}
     90   \definecolor{tertiary}{RGB}{227,114,34}
     91   \definecolor{quarterly}{RGB}{162,173,0}
     92 \fi
     93 \setbeamercolor{palette primary}{fg=white, bg=primary}
     94 \setbeamercolor{palette secondary}{fg=white, bg=primary}
     95 \setbeamercolor{palette tertiary}{fg=white, bg=primary}
     96 \setbeamercolor{title}{fg=primary, bg=white}
     97 \setbeamercolor{frametitle}{fg=white, bg=primary}
     98 \setbeamercolor{titlelike}{fg=primary}
     99 \setbeamercolor{section number projected}{fg=white, bg=primary}
    100 \setbeamercolor{item projected}{bg=primary}
    101 \setbeamercolor{subitem projected}{bg=primary}
    102 \setbeamercolor{subsubitem projected}{fg=primary}
    103 \setbeamercolor{itemize item}{fg=emph-4}
    104 \setbeamercolor{itemize subitem}{fg=emph-4}
    105 \setbeamercolor{itemize subsubitem}{fg=emph-4}
    106 \setbeamercolor{enumerate subitem}{fg=white}
    107 \setbeamercolor{description item}{fg=primary}
    108 \setbeamercolor{section in toc}{fg=primary}
    109 \setbeamercolor{alerted text}{fg=tertiary}
    110 \setbeamercolor{block title alerted}{fg=white, bg=primary}
    111 \setbeamercolor{block body alerted}{bg=white}
    112 \setbeamercolor{block title example}{fg=white, bg=primary}
    113 \setbeamercolor{block body example}{bg=white}
    114 \setbeamercolor{block body}{bg=white}
    115 % =========================================================
    116 
    117 
    118 %%% New and shiny color definitions obeying the 'dark' switch
    119 \pgfdeclareverticalshading[lower.bg,upper.bg]{bmb@transition}{200cm}{color(0pt)=(lower.bg); color(4pt)=(lower.bg); color(4pt)=(upper.bg)}
    120 
    121 \newcommand\ttt[1]{{\fdmfamily \footnotesize{#1}}}
    122 \newcommand\hl[1]{\textbf{\textcolor{emph-3}{#1}}}
    123 \renewcommand\emph[1]{{\textcolor{tumblue}{#1}}}
    124 
    125 \ifyourpkgprefix@darkoption
    126   % Blocks
    127   \setbeamertemplate{blocks}[rounded][shadow]
    128   \setbeamercolor{block title}{fg=white,bg=primary-blue}
    129   \setbeamercolor{block body}{fg=black,bg=primary-black!80}
    130 
    131   \setbeamercolor{alerted text}{fg=tumblue}
    132 
    133   % Footer
    134   \setbeamercolor*{left foot}{fg=white,bg=primary-black!80}
    135   \setbeamercolor*{mid foot}{fg=white,bg=primary-black!80}
    136   \setbeamercolor*{right foot}{fg=white,bg=primary-black!80}
    137 
    138   % Head background
    139   \setbeamercolor*{back title}{fg=white,bg=primary-black!80} % Head bg
    140 
    141   \setbeamercolor{normal text}{fg=white,bg=primary-black!90}
    142   \setbeamercolor{structure}{fg=white}
    143   \setbeamercolor{item projected}{use=item,fg=white,bg=item.fg!35}
    144   \setbeamercolor*{palette primary}{use=structure,fg=structure.fg}
    145   \setbeamercolor*{palette secondary}{use=structure,fg=structure.fg!95!black}
    146   \setbeamercolor*{palette tertiary}{use=structure,fg=structure.fg!90!black}
    147   \setbeamercolor*{palette quaternary}{use=structure,fg=structure.fg!95!black,bg=black!80}
    148   \setbeamercolor*{framesubtitle}{fg=white}
    149   \setbeamercolor*{subtitle}{fg=emph-4}
    150   \setbeamercolor*{block title}{parent=structure,bg=black!60}
    151   \setbeamercolor*{block body}{fg=black,bg=black!10}
    152   \setbeamercolor*{block title alerted}{parent=alerted text,bg=black!15}
    153   \setbeamercolor*{block title example}{parent=example text,bg=black!15}
    154 \else
    155   % Blocks
    156   \setbeamertemplate{blocks}[rounded][shadow]
    157   \setbeamercolor{block title}{fg=white,bg=primary-blue}
    158   \setbeamercolor{block body}{fg=black,bg=primary-black!80}
    159 
    160   \setbeamercolor*{left foot}{fg=white,bg=secondary-blue}
    161   \setbeamercolor*{mid foot}{fg=white,bg=secondary-blue}
    162   \setbeamercolor*{right foot}{fg=white,bg=secondary-blue}
    163   \setbeamercolor*{back title}{fg=white,bg=secondary-blue}
    164 
    165   % Head background
    166   \setbeamercolor*{back title}{fg=white,bg=secondary-blue}
    167 
    168   \setbeamercolor{alerted text}{fg=tumblue}
    169 
    170   \setbeamercolor*{itemize item}{fg=tumblue}
    171   \setbeamercolor*{itemize subitem}{fg=tumblue}
    172   \setbeamercolor*{itemize subsubitem}{fg=tumblue}
    173 
    174   \setbeamercolor*{description item}{fg=tumblue}
    175   \setbeamercolor*{enumerate item}{fg=tumblue}
    176   \setbeamercolor*{enumerate subitem}{fg=tumblue}
    177   \setbeamercolor*{enumerate subsubitem}{fg=tumblue}
    178   \setbeamercolor*{caption name}{fg=tumblue}
    179 
    180 \fi
    181 
    182 \setbeamercolor{title}{fg=primary-blue}
    183 
    184 \setbeamertemplate{navigation symbols}{}
    185 %\setbeamertemplate{enumerate items}[square]
    186 
    187 \setbeamertemplate{frametitle}
    188 {
    189   \vspace{-1ex}
    190   \begin{beamercolorbox}[wd=\paperwidth,ht=1cm,dp=0.4cm]{back title}
    191     \makebox[\textwidth]{
    192       \makebox[\headmargin]{ }
    193         \parbox{.8\textwidth}{
    194 	  \begin{tikzpicture}
    195             \node[inner sep = 0pt, outer sep = 0pt, text width = .9\textwidth,
    196 		  font = \strut, align = left] (t)
    197 		  {\LARGE\insertframetitle};
    198             \node[inner sep = 0pt, outer sep = 0pt, text width = .9\textwidth,
    199 		  below = 0cm of t, font = \strut, align = left, yshift = .25cm]
    200 		  {\scriptsize\insertframesubtitle};
    201           \end{tikzpicture}
    202         }
    203 	\hfill
    204         \parbox{.065\textwidth}{\vspace*{-.2cm}
    205           \resizebox{!}{2ex}{
    206             \begin{tikzpicture}[y = -.75cm, x = .75cm, transform shape]
    207               \tikzset{logofont/.style={
    208                 align = left, text width = 6cm, font=\vphantom{TUMy}
    209               }}
    210               \ifyourpkgprefix@enoption
    211 	              \node[logofont] at (-6, 0.7)
    212                   {\fontsize{1.2cm}{1.25cm}\selectfont \sffamily Technical};
    213                 \node[logofont] at (-6, 2.7)
    214                   {\fontsize{1.2cm}{1.25cm}\selectfont \sffamily University};
    215                 \node[logofont] at (-6, 4.4)
    216                   {\fontsize{1.2cm}{1.25cm}\selectfont \sffamily of Munich};
    217               \else
    218 	              \node[logofont] at (-6, 0.7)
    219                   {\fontsize{1.2cm}{1.25cm}\selectfont \sffamily Technische};
    220                 \node[logofont] at (-6, 2.55)
    221                   {\fontsize{1.2cm}{1.25cm}\selectfont \sffamily Universit\"at};
    222                 \node[logofont] at (-6, 4.4)
    223                   {\fontsize{1.2cm}{1.25cm}\selectfont \sffamily M\"unchen};
    224               \fi
    225               \fill [primary-white]
    226                 (0, 0) -- (4, 0) -- (4, 4) -- (5, 4) -- (5, 0) -- (10, 0) --
    227                 (10, 5) -- (9, 5) -- (9, 1) -- (8, 1) -- (8, 5) -- (7, 5) --
    228                 (7, 1) -- (6, 1) -- (6, 5) -- (3, 5) -- (3, 1) -- (2, 1) --
    229                 (2, 5) -- (1, 5) -- (1, 1) -- (0, 1) -- cycle;
    230             \end{tikzpicture}
    231           }
    232         }
    233       \makebox[\headmargin]{ }
    234     }
    235   \end{beamercolorbox}
    236 }
    237 
    238 \defbeamertemplate*{title page}{tum theme}[1][]
    239 {
    240   \makebox[\textwidth]{
    241     \makebox[\logoindent]{ }
    242     \begin{tikzpicture}[scale=0.4, every node/.style={scale = .4}]
    243       \draw[anchor = north west] (0, 0) arc (95:445:1cm) [thick, draw = primary-blue];
    244       \draw[anchor = north west] (0.09, 0.2) -- (0.09, -1.8) [thick, draw = primary-blue];
    245     \end{tikzpicture}
    246     \hfill
    247     \begin{tikzpicture}[x = .18cm, y = -.18cm, transform shape]
    248       \fill [primary-blue] (0, 0) -- (4, 0) -- (4, 4) -- (5, 4) -- (5, 0) -- (10, 0) --
    249             (10, 5) -- (9, 5) -- (9, 1) -- (8, 1) -- (8, 5) -- (7, 5) --
    250             (7, 1) -- (6, 1) -- (6, 5) -- (3, 5) -- (3, 1) -- (2, 1) --
    251             (2, 5) -- (1, 5) -- (1, 1) -- (0, 1) -- cycle;
    252     \end{tikzpicture}
    253     \makebox[\logoindent]{ }
    254   }
    255   \vskip2cm
    256   \hspace{\logoindent}\usebeamerfont{title}\inserttitle\par
    257   \hspace{\logoindent}\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle\par
    258   \bigskip
    259   \hspace{\logoindent}\usebeamerfont{author}\insertauthor\par
    260   \hspace{\logoindent}\usebeamerfont{institute}\insertinstitute\par
    261   \bigskip
    262   \hspace{\logoindent}\usebeamerfont{semester}\@semester\par
    263   \hspace{\logoindent}\usebeamerfont{date}\insertdate\par
    264   \usebeamercolor[fg]{titlegraphic}\inserttitlegraphic
    265 }
    266 
    267 %insertsectionhead
    268 
    269 \ifyourpkgprefix@minimaloption
    270 \setbeamertemplate{footline}
    271 {
    272   \leavevmode%
    273   \hfill
    274   \hbox{%
    275     \color{primary-black!50}
    276     \insertframenumber{} / \inserttotalframenumber\hspace{2ex}
    277   }
    278   \vspace{2ex}
    279   \vskip0pt%
    280 }
    281 \else
    282 \defbeamertemplate*{footline}{tum theme}
    283 {
    284   \leavevmode%
    285   \hbox{%
    286     \begin{beamercolorbox}[wd=.2\paperwidth,ht=2.25ex,dp=1ex,center]{left foot}%
    287       \usebeamerfont{left foot}\insertshortauthor
    288     \end{beamercolorbox}%
    289     \begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,center]{mid foot}%
    290       \usebeamerfont{mid foot}\beamer@ifempty{\insertsubtitle}{}{~~\insertsubtitle}
    291     \end{beamercolorbox}%
    292     \begin{beamercolorbox}[wd=.2\paperwidth,ht=2.25ex,dp=1ex,right]{right foot}%
    293       % \usebeamerfont{right foot}\@semester\hspace*{2em}
    294       %\insertshortdate{}\hspace*{2em}
    295       \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
    296     \end{beamercolorbox}}%
    297   \vskip0pt%
    298 }
    299 \fi
    300 
    301 %absteigende Reihenfolge der Kugel Größen
    302 \useitemizeitemtemplate{%
    303     \small\raise1.5pt\hbox{$\blacktriangleright$}%
    304 }
    305 \usesubitemizeitemtemplate{%
    306     \scriptsize\raise1.5pt\hbox{$\blacktriangleright$}%
    307 }
    308 \usesubsubitemizeitemtemplate{%
    309     \tiny\raise1.5pt\hbox{$\blacktriangleright$}%
    310 }
    311 
    312 \setbeamersize{text margin left=1em,text margin right=1em}
    313 
    314 \mode
    315 <all>