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
5 years ago
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 @@
\input
{
meta.tex
}
%----------------------------------------------------------------------------------------
\begin{document}
%----------------------------------------------------------------------------------------
% ABOUT ME
%----------------------------------------------------------------------------------------
\aboutme
{
\BLOCK
{
if
analysis | contains('crypto
_
material')
}
\BLOCK
{
if
'crypto
_
material' in analysis
}
\BLOCK
{
for selected
_
summary in analysis['crypto
_
material']['summary']
}
\VAR
{
selected
_
summary | filter
_
chars
}
\\
\BLOCK
{
endfor
}
\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
%----------------------------------------------------------------------------------------
% EDUCATION
%----------------------------------------------------------------------------------------
\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
}
}
\section
{
Binwalk
}
\BLOCK
{
if analysis['entropy
_
analysis
_
graph']
}
\makeprofile
% ----------------------------------------------------------------------------------------------------------------------
% Binwalk & Entropy Graph
% ----------------------------------------------------------------------------------------------------------------------
\BLOCK
{
if analysis | contains('entropy
_
analysis
_
graph')
}
\section
{
Binwalk
}
\subsection
{
Entropy Graph
}
%\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)
}}
\BLOCK
{
endif
}
%\begin{twenty} % Environment for a list with descriptions
% \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}
% ----------------------------------------------------------------------------------------------------------------------
% Executables
% ----------------------------------------------------------------------------------------------------------------------
\section
{
Executables
}
\begin{twentyshort}
% Environment for a short list with no descriptions
\twentyitemshort
{
521
}{
ARM, 32-bit, little endian
}
\twentyitemshort
{
3
}{
x86, 32-bit, little endian
}
%\twentyitemshort{<dates>}{<title/description>}
\end{twentyshort}
\section
{
Top five occuring file types
}
\\
\begin{twentyshort}
\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
}}
\BLOCK
{
endfor
}
\end{twentyshort}
\BLOCK
{
if analysis['known
_
vulnerabilities']
}
\section
{
Known Vulnerabilities
}
\\
\begin{twentyshort}
\BLOCK
{
for selected
_
summary in analysis['cpu
_
architecture']['summary']
}
\twentyitemshort
{
\VAR
{
analysis['cpu
_
architecture']['summary'][selected
_
summary] | elements
_
count
}}{
\VAR
{
selected
_
summary | filter
_
chars
}}
\BLOCK
{
endfor
}
\end{twentyshort}
% ----------------------------------------------------------------------------------------------------------------------
% Top 5 File Types
% ----------------------------------------------------------------------------------------------------------------------
\section
{
Top five occuring file types
}
\begin{twentyshort}
\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
}}
\BLOCK
{
endfor
}
\end{twentyshort}
% ----------------------------------------------------------------------------------------------------------------------
% 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
\BLOCK
{
for known
_
vullies in analysis['known
_
vulnerabilities']['summary']
}
\twentyitemshort
{
\VAR
{
known
_
vullies | filter
_
chars
}}{}
\BLOCK
{
endfor
}
\end{twentyshort}
\BLOCK
{
endif
}
% \href{https://nvd.nist.gov/vuln/detail/CVE-2014-0160}{The SSL Hearbleed bug allowing buffer overread
\section
{
Software
}
\\
\begin{twentyshort}
\BLOCK
{
for software in analysis['software
_
components']['summary']
}
\twentyitemshort
{
\VAR
{
software | filter
_
chars
}}{}
\BLOCK
{
endfor
}
%\twentyitemshort{0.6.10}{wpa\_supplicant}
\end{twentyshort}
% \section{IPs and URIs}
% \subsection{IPs}
% Total: 140
% \begin{itemize}
% \item 192.168.1.1
% \end{itemize}
% \subsection{URIs}
% Total: 12
% \begin{itemize}
% \item www.bud.de
% \end{itemize}
%\section{Experience}
%\begin{twenty} % Environment for a list with descriptions
%\twentyitem{1900}{Alice in Wonderland-The Circra (1900's) Silent Film.}{Film}{The first Alice on film was over a hundred years ago.}
%\twentyitem{<dates>}{<title>}{<location>}{<description>}
%\end{twenty}
% ----------------------------------------------------------------------------------------------------------------------
% Software Components
% ----------------------------------------------------------------------------------------------------------------------
\BLOCK
{
if 'software
_
components' in analysis
}
\section
{
Software
}
\begin{twentyshort}
\BLOCK
{
for software in analysis['software
_
components']['summary'] | sort
}
\twentyitemshort
{
\VAR
{
software | filter
_
chars
}}{}
\BLOCK
{
endfor
}
\end{twentyshort}
\BLOCK
{
endif
}
% ----------------------------------------------------------------------------------------------------------------------
% ELF ANALYSIS
% ----------------------------------------------------------------------------------------------------------------------
\BLOCK
{
if 'elf
_
analysis' in analysis
}
\section
{
ELF Analysis
}
\begin{twentyshort}
\BLOCK
{
for ELF in analysis['elf
_
analysis']['summary'] | top
_
five(20)
}
\twentyitemshort
{
\VAR
{
analysis['elf
_
analysis']['summary'][ELF] | elements
_
count
}}{
\VAR
{
ELF | filter
_
chars
}}
\BLOCK
{
endfor
}
\end{twentyshort}
\BLOCK
{
endif
}
% ----------------------------------------------------------------------------------------------------------------------
% IP & URI
% ----------------------------------------------------------------------------------------------------------------------
\BLOCK
{
if ('ips
_
v4' in analysis or 'ips
_
v6' in analysis or 'uris' in analysis)
}
{
\begin{longtable}
{
|p
{
3cm
}
|p
{
11.5cm
}
|
}
\BLOCK
{
if 'ips
_
v4' in analysis
}
\hline
IPs v4
\BLOCK
{
for ip in analysis['ips
_
v4'] | check
_
list | filter
_
list
}
&
\VAR
{
ip
}
\\
\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
...
...
This diff is collapsed.
Click to expand it.
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