Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fact_pdf_report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
fact_pdf_report
Commits
0cb96d69
Commit
0cb96d69
authored
Jun 08, 2020
by
lwilms
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
major improvements, if statements, more data
parent
6a51b4aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
87 additions
and
95 deletions
+87
-95
main.tex
pdf_generator/templates/new_template/main.tex
+87
-95
No files found.
pdf_generator/templates/new_template/main.tex
View file @
0cb96d69
...
@@ -31,124 +31,116 @@
...
@@ -31,124 +31,116 @@
\input
{
meta.tex
}
\input
{
meta.tex
}
%----------------------------------------------------------------------------------------
\begin{document}
\begin{document}
%----------------------------------------------------------------------------------------
% ABOUT ME
%----------------------------------------------------------------------------------------
\aboutme
{
\aboutme
{
\BLOCK
{
if
analysis | contains('crypto
_
material')
}
\BLOCK
{
if
'crypto
_
material' in analysis
}
\BLOCK
{
for selected
_
summary in analysis['crypto
_
material']['summary']
}
\BLOCK
{
for selected
_
summary in analysis['crypto
_
material']['summary']
}
\VAR
{
selected
_
summary | filter
_
chars
}
\\
\VAR
{
selected
_
summary | filter
_
chars
}
\\
\BLOCK
{
endfor
}
\BLOCK
{
endfor
}
\BLOCK
{
endif
}
\BLOCK
{
endif
}
}
% To have no About Me section, just remove all the text and leave \aboutme{}
%----------------------------------------------------------------------------------------
% SKILLS
%----------------------------------------------------------------------------------------
% Skill bar section, each skill must have a value between 0 an 6 (float)
\skills
{
\BLOCK
{
for selected
_
summary in analysis['exploit
_
mitigations']['summary']
}{
\VAR
{
selected
_
summary | filter
_
chars
}
/
\VAR
{
analysis['exploit
_
mitigations']['summary'][selected
_
summary]|elements
_
count *6/analysis['exploit
_
mitigations']['count']
}}
,
\BLOCK
{
endfor
}{}
}
}
%------------------------------------------------
% Skill text section, each skill must have a value between 0 an 6
% \skillstext{{lovely/4},{narcissistic/3}}
% \skillstext{{lovely/4},{narcissistic/3}}
%----------------------------------------------------------------------------------------
\makeprofile
% Print the sidebar
\skills
{{}
\BLOCK
{
for selected
_
summary in analysis['exploit
_
mitigations']['summary'] | sort
}
,
{
\VAR
{
selected
_
summary | filter
_
chars
}
/
\VAR
{
analysis['exploit
_
mitigations']['summary'][selected
_
summary]|elements
_
count *6/analysis['exploit
_
mitigations']['count']
}}
\BLOCK
{
endfor
}
}
%----------------------------------------------------------------------------------------
% EDUCATION
%----------------------------------------------------------------------------------------
\section
{
Binwalk
}
\makeprofile
\BLOCK
{
if analysis['entropy
_
analysis
_
graph']
}
% ----------------------------------------------------------------------------------------------------------------------
% Binwalk & Entropy Graph
% ----------------------------------------------------------------------------------------------------------------------
\BLOCK
{
if analysis | contains('entropy
_
analysis
_
graph')
}
\section
{
Binwalk
}
\subsection
{
Entropy Graph
}
\subsection
{
Entropy Graph
}
%\includegraphics[width = \textwidth]{/tmp/interface/data/entropy_analysis_graph.png}
%\includegraphics[width = \textwidth]{/tmp/interface/data/entropy_analysis_graph.png}
\includegraphics
[width = \textwidth]
{
\VAR
{
analysis['entropy
_
analysis
_
graph'] | base64
_
to
_
png('entropy
_
analysis
_
graph', tmp
_
dir)
}}
\includegraphics
[width = \textwidth]
{
\VAR
{
analysis['entropy
_
analysis
_
graph'] | base64
_
to
_
png('entropy
_
analysis
_
graph', tmp
_
dir)
}}
\BLOCK
{
endif
}
\BLOCK
{
endif
}
% ----------------------------------------------------------------------------------------------------------------------
%\begin{twenty} % Environment for a list with descriptions
% Executables
% \twentyitem{since 1865}{Ph.D. {\normalfont candidate in Computer Science}}{Wonderland}{\emph{A Quantified Theory of Social Cohesion.}}
% ----------------------------------------------------------------------------------------------------------------------
% \twentyitem{1863-1865}{M.Sc. magna cum laude}{Wonderland}{Majoring in Computer Science}
% \twentyitem{1861-1863}{B.Sc. magna cum laude}{Wonderland}{Majoring in Computer Science}
% \twentyitem{1856-1861}{High school}{Wonderland}{Specializing in mathematics and physics.}
%\twentyitem{<dates>}{<title>}{<location>}{<description>}
%\end{twenty}
%\BLOCK{for current_analysis in analysis}
% \input{\VAR{current_analysis}.tex}
%\BLOCK{endfor}
\section
{
Executables
}
\section
{
Executables
}
\begin{twentyshort}
% Environment for a short list with no descriptions
\begin{twentyshort}
\twentyitemshort
{
521
}{
ARM, 32-bit, little endian
}
\BLOCK
{
for selected
_
summary in analysis['cpu
_
architecture']['summary']
}
\twentyitemshort
{
3
}{
x86, 32-bit, little endian
}
\twentyitemshort
{
\VAR
{
analysis['cpu
_
architecture']['summary'][selected
_
summary] | elements
_
count
}}{
\VAR
{
selected
_
summary | filter
_
chars
}}
%\twentyitemshort{<dates>}{<title/description>}
\BLOCK
{
endfor
}
\end{twentyshort}
\end{twentyshort}
% ----------------------------------------------------------------------------------------------------------------------
% Top 5 File Types
\section
{
Top five occuring file types
}
\\
% ----------------------------------------------------------------------------------------------------------------------
\section
{
Top five occuring file types
}
\begin{twentyshort}
\BLOCK
{
for selected
_
summary in analysis['file
_
type']['summary'] | top
_
five
}
\begin{twentyshort}
\twentyitemshort
{
\VAR
{
analysis['file
_
type']['summary'][selected
_
summary] | elements
_
count
}}{
\VAR
{
selected
_
summary | filter
_
chars
}}
\BLOCK
{
for selected
_
summary in analysis['file
_
type']['summary'] | top
_
five
}
\BLOCK
{
endfor
}
\twentyitemshort
{
\VAR
{
analysis['file
_
type']['summary'][selected
_
summary] | elements
_
count
}}{
\VAR
{
selected
_
summary | filter
_
chars
}}
\end{twentyshort}
\BLOCK
{
endfor
}
\end{twentyshort}
\BLOCK
{
if analysis['known
_
vulnerabilities']
}
% ----------------------------------------------------------------------------------------------------------------------
\section
{
Known Vulnerabilities
}
\\
% Known Vulnerabilities
% ----------------------------------------------------------------------------------------------------------------------
\BLOCK
{
if 'known
_
vulnerabilities' in analysis
}
\section
{
Known Vulnerabilities
}
% \href{https://nvd.nist.gov/vuln/detail/CVE-2014-0160}{The SSL Hearbleed bug allowing buffer overread
\begin{twentyshort}
% Environment for a short list with no descriptions
\begin{twentyshort}
% Environment for a short list with no descriptions
\BLOCK
{
for known
_
vullies in analysis['known
_
vulnerabilities']['summary']
}
\BLOCK
{
for known
_
vullies in analysis['known
_
vulnerabilities']['summary']
}
\twentyitemshort
{
\VAR
{
known
_
vullies | filter
_
chars
}}{}
\twentyitemshort
{
\VAR
{
known
_
vullies | filter
_
chars
}}{}
\BLOCK
{
endfor
}
\BLOCK
{
endfor
}
\end{twentyshort}
\end{twentyshort}
\BLOCK
{
endif
}
\BLOCK
{
endif
}
% \href{https://nvd.nist.gov/vuln/detail/CVE-2014-0160}{The SSL Hearbleed bug allowing buffer overread
% ----------------------------------------------------------------------------------------------------------------------
\section
{
Software
}
\\
% Software Components
% ----------------------------------------------------------------------------------------------------------------------
\begin{twentyshort}
\BLOCK
{
if 'software
_
components' in analysis
}
\BLOCK
{
for software in analysis['software
_
components']['summary']
}
\section
{
Software
}
\twentyitemshort
{
\VAR
{
software | filter
_
chars
}}{}
\BLOCK
{
endfor
}
\begin{twentyshort}
%\twentyitemshort{0.6.10}{wpa\_supplicant}
\BLOCK
{
for software in analysis['software
_
components']['summary'] | sort
}
\end{twentyshort}
\twentyitemshort
{
\VAR
{
software | filter
_
chars
}}{}
\BLOCK
{
endfor
}
\end{twentyshort}
% \section{IPs and URIs}
\BLOCK
{
endif
}
% ----------------------------------------------------------------------------------------------------------------------
% \subsection{IPs}
% ELF ANALYSIS
% ----------------------------------------------------------------------------------------------------------------------
% Total: 140
\BLOCK
{
if 'elf
_
analysis' in analysis
}
\section
{
ELF Analysis
}
% \begin{itemize}
% \item 192.168.1.1
\begin{twentyshort}
% \end{itemize}
\BLOCK
{
for ELF in analysis['elf
_
analysis']['summary'] | top
_
five(20)
}
\twentyitemshort
{
\VAR
{
analysis['elf
_
analysis']['summary'][ELF] | elements
_
count
}}{
\VAR
{
ELF | filter
_
chars
}}
% \subsection{URIs}
\BLOCK
{
endfor
}
\end{twentyshort}
% Total: 12
\BLOCK
{
endif
}
% ----------------------------------------------------------------------------------------------------------------------
% \begin{itemize}
% IP & URI
% \item www.bud.de
% ----------------------------------------------------------------------------------------------------------------------
% \end{itemize}
\BLOCK
{
if ('ips
_
v4' in analysis or 'ips
_
v6' in analysis or 'uris' in analysis)
}
{
\begin{longtable}
{
|p
{
3cm
}
|p
{
11.5cm
}
|
}
%\section{Experience}
\BLOCK
{
if 'ips
_
v4' in analysis
}
\hline
%\begin{twenty} % Environment for a list with descriptions
IPs v4
%\twentyitem{1900}{Alice in Wonderland-The Circra (1900's) Silent Film.}{Film}{The first Alice on film was over a hundred years ago.}
\BLOCK
{
for ip in analysis['ips
_
v4'] | check
_
list | filter
_
list
}
%\twentyitem{<dates>}{<title>}{<location>}{<description>}
&
\VAR
{
ip
}
\\
%\end{twenty}
\BLOCK
{
endfor
}
\BLOCK
{
elif 'ips
_
v6' in analysis
}
\hline
IPs v6
\BLOCK
{
for ip in analysis['ips
_
v6'] | check
_
list | filter
_
list
}
&
\VAR
{
ip
}
\\
\BLOCK
{
endfor
}
\BLOCK
{
elif 'uris' in analysis
}
\hline
URIs
\BLOCK
{
for uri in analysis['uris'] | check
_
list | filter
_
list
}
&
\VAR
{
uri
}
\\
\BLOCK
{
endfor
}
\BLOCK
{
endif
}
\hline
\end{longtable}
}
\BLOCK
{
endif
}
%----------------------------------------------------------------------------------------
%----------------------------------------------------------------------------------------
% SECOND PAGE EXAMPLE
% SECOND PAGE EXAMPLE
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment