Commit 13876234 by lwilms

test for emptiness

parent 005c06f2
FROM phusion/baseimage:0.11 FROM phusion/baseimage:0.11
RUN install_clean git python3 python3-pip python3-wheel python3-setuptools texlive-latex-base texlive-latex-extra texlive-fonts-extra texlive-fonts-recommended lmodern
WORKDIR /opt/app WORKDIR /opt/app
COPY . /opt/app COPY . /opt/app
RUN install_clean git python3 python3-pip python3-wheel python3-setuptools texlive-latex-base texlive-latex-extra texlive-fonts-extra texlive-fonts-recommended lmodern
RUN pip3 install -r requirements.txt RUN pip3 install -r requirements.txt
RUN apt-get remove -y python3-pip RUN apt-get remove -y python3-pip
......
...@@ -35,9 +35,11 @@ ...@@ -35,9 +35,11 @@
%---------------------------------------------------------------------------------------- %----------------------------------------------------------------------------------------
\aboutme{ \aboutme{
\BLOCK{if 'crypto_material' in analysis} \BLOCK{if 'crypto_material' in analysis}
\BLOCK{for selected_summary in analysis['crypto_material']['summary']} \BLOCK{if analysis['crypto_material']['summary'] | length}
\VAR{selected_summary | filter_chars} \\ \BLOCK{for selected_summary in analysis['crypto_material']['summary']}
\BLOCK{endfor} \VAR{selected_summary | filter_chars} \\
\BLOCK{endfor}
\BLOCK{endif}
\BLOCK{else} \BLOCK{else}
No Crypto No Crypto
\BLOCK{endif} \BLOCK{endif}
...@@ -46,7 +48,10 @@ No Crypto ...@@ -46,7 +48,10 @@ No Crypto
% EXPLOIT MITIGATION % EXPLOIT MITIGATION
%---------------------------------------------------------------------------------------- %----------------------------------------------------------------------------------------
\BLOCK{if 'exploit_mitigations' in analysis} \BLOCK{if 'exploit_mitigations' in analysis}
\skills{\VAR{ analysis | call_for_mitigations}} \BLOCK{if analysis['exploit_mitigations']['summary'] | length}
\skills{\VAR{ analysis | call_for_mitigations}}
\BLOCK{endif}
\BLOCK{else} \BLOCK{else}
\skills{No Analysis Done/1} \skills{No Analysis Done/1}
\BLOCK{endif} \BLOCK{endif}
...@@ -57,23 +62,28 @@ No Crypto ...@@ -57,23 +62,28 @@ No Crypto
% ---------------------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------------------
\BLOCK{if 'binwalk' in analysis} \BLOCK{if 'binwalk' in analysis}
\BLOCK{if 'entropy_analysis_graph' in analysis['binwalk']} \BLOCK{if 'entropy_analysis_graph' in analysis['binwalk']}
\includegraphics[width = \textwidth]{\VAR{analysis['binwalk']['entropy_analysis_graph'] | base64_to_png('entropy_analysis_graph', tmp_dir)}} \BLOCK{if analysis['binwalk']['entropy_analysis_graph'] | length}
\includegraphics[width = \textwidth]{\VAR{analysis['binwalk']['entropy_analysis_graph'] | base64_to_png('entropy_analysis_graph', tmp_dir)}}
\BLOCK{endif}
\BLOCK{endif} \BLOCK{endif}
\BLOCK{endif} \BLOCK{endif}
% ---------------------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------------------
% Software Components % Software Components
% ---------------------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------------------
\BLOCK{if 'software_components' in analysis} \BLOCK{if 'software_components' in analysis}
\section{Software} \BLOCK{if analysis['software_components']['summary'] | length}
\section{Software}
\begin{twentyshort} \begin{twentyshort}
\BLOCK{for summary in analysis['software_components']['summary'] | sort | x_entires} \BLOCK{for summary in analysis['software_components']['summary'] | sort | x_entires}
\twentyitemshort{\VAR{summary | split_space}} \twentyitemshort{\VAR{summary | split_space}}
\BLOCK{endfor} \BLOCK{endfor}
\BLOCK{if analysis['software_components']['summary'] | elements_count > 10} \BLOCK{if analysis['software_components']['summary'] | elements_count > 10}
\twentyitemshort{}{and \VAR{analysis['software_components']['summary'] | elements_count - 10} others} \twentyitemshort{}{and \VAR{analysis['software_components']['summary'] | elements_count - 10} others}
\BLOCK{endif}
\end{twentyshort}
\BLOCK{endif} \BLOCK{endif}
\end{twentyshort}
\BLOCK{endif}\\ \BLOCK{endif}\\
% ---------------------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------------------
% Known Vulnerabilities % Known Vulnerabilities
...@@ -106,36 +116,45 @@ No Crypto ...@@ -106,36 +116,45 @@ No Crypto
% ---------------------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------------------
% Top 5 File Types % Top 5 File Types
% ---------------------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------------------
\section{Top five occuring file types} \BLOCK{if 'file_type' in analysis}
\BLOCK{if analysis['file_type']['summary'] | length}
\section{Top five occuring file types}
\begin{twentyshort} \begin{twentyshort}
\BLOCK{for selected_summary in analysis['file_type']['summary'] | top_five} \BLOCK{for selected_summary in analysis['file_type']['summary'] | top_five}
\twentyitemshort{\VAR{analysis['file_type']['summary'][selected_summary] | elements_count}}{\VAR{selected_summary | filter_chars}} \twentyitemshort{\VAR{analysis['file_type']['summary'][selected_summary] | elements_count}}{\VAR{selected_summary | filter_chars}}
\BLOCK{endfor} \BLOCK{endfor}
\end{twentyshort}\\ \end{twentyshort}
\BLOCK{endif}
\BLOCK{endif}\\
% ---------------------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------------------
% IP & URI % IP & URI
% ---------------------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------------------
\BLOCK{if 'ip_and_uri_finder' in analysis} \BLOCK{if 'ip_and_uri_finder' in analysis}
\section{IPs and URIs} \BLOCK{if analysis['ip_and_uri_finder']['summary'] | length}
\section{IPs and URIs}
\begin{twentyshort} \begin{twentyshort}
\BLOCK{for selected_analysis in analysis['ip_and_uri_finder']['summary'] | triplet} \BLOCK{for selected_analysis in analysis['ip_and_uri_finder']['summary'] | triplet}
\twentyitemshort{\VAR{selected_analysis | filter_chars}} \twentyitemshort{\VAR{selected_analysis}}
\BLOCK{endfor} \BLOCK{endfor}
\end{twentyshort} \end{twentyshort}
\BLOCK{endif}
\BLOCK{endif} \BLOCK{endif}
% ---------------------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------------------
% Executables % Executables
% ---------------------------------------------------------------------------------------------------------------------- % ----------------------------------------------------------------------------------------------------------------------
\BLOCK{if 'cpu_architecture' in analysis} \BLOCK{if 'cpu_architecture' in analysis}
\section{Executables} \BLOCK{if analysis['cpu_architecture']['summary'] | length}
\begin{twentyshort} \section{Executables}
\BLOCK{for selected_summary in analysis['cpu_architecture']['summary']}
\twentyitemshort{\VAR{analysis['cpu_architecture']['summary'][selected_summary] | elements_count}}{\VAR{selected_summary | filter_chars}} \begin{twentyshort}
\BLOCK{endfor} \BLOCK{for selected_summary in analysis['cpu_architecture']['summary']}
\end{twentyshort}\\ \twentyitemshort{\VAR{analysis['cpu_architecture']['summary'][selected_summary] | elements_count}}{\VAR{selected_summary | filter_chars}}
\BLOCK{endfor}
\end{twentyshort}\\
\BLOCK{endif}
\BLOCK{endif} \BLOCK{endif}
%---------------------------------------------------------------------------------------- %----------------------------------------------------------------------------------------
% SECOND PAGE EXAMPLE % SECOND PAGE EXAMPLE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment