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
26b0455c
Commit
26b0455c
authored
Jun 24, 2020
by
lwilms
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct icons and order of sections
parent
bb1450a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
34 deletions
+46
-34
docker_entry.py
docker_entry.py
+2
-2
main.tex
pdf_generator/templates/new_template/main.tex
+26
-28
twentysecondcv.cls
pdf_generator/templates/new_template/twentysecondcv.cls
+18
-4
No files found.
docker_entry.py
View file @
26b0455c
...
...
@@ -51,4 +51,4 @@ if __name__ == '__main__':
exit
(
main
(
'new_template'
))
# TODO
# icons
\ No newline at end of file
# order of sections
\ No newline at end of file
pdf_generator/templates/new_template/main.tex
View file @
26b0455c
...
...
@@ -42,30 +42,25 @@
% Binwalk & Entropy Graph
% ----------------------------------------------------------------------------------------------------------------------
\BLOCK
{
if 'binwalk' in analysis
}
\section
{
Entropy Graph
}
%
\section{Entropy Graph}
\includegraphics
[width = \textwidth]
{
\VAR
{
analysis['binwalk']['entropy
_
analysis
_
graph'] | base64
_
to
_
png('entropy
_
analysis
_
graph', tmp
_
dir)
}}
\BLOCK
{
endif
}
% ----------------------------------------------------------------------------------------------------------------------
%
Executable
s
%
Software Component
s
% ----------------------------------------------------------------------------------------------------------------------
\section
{
Executables
}
\BLOCK
{
if 'software
_
components' in analysis
}
\section
{
Software
}
\begin{twentyshort}
\BLOCK
{
for s
elected
_
summary in analysis['cpu
_
architecture']['summary']
}
\twentyitemshort
{
\VAR
{
analysis['cpu
_
architecture']['summary'][selected
_
summary] | elements
_
count
}}{
\VAR
{
selected
_
summary | filter
_
chars
}}
\BLOCK
{
for s
ummary in analysis['software
_
components']['summary'] | sort | x
_
entires
}
\twentyitemshort
{
\VAR
{
summary | split
_
space
}}
\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}
\\
\BLOCK
{
if analysis['software
_
components']['summary'] | elements
_
count > 10
}
\twentyitemshort
{}{
and
\VAR
{
analysis['software
_
components']['summary'] | elements
_
count - 10
}
others
}
\BLOCK
{
endif
}
\end{twentyshort}
\BLOCK
{
endif
}
\\
% ----------------------------------------------------------------------------------------------------------------------
% Known Vulnerabilities
% ----------------------------------------------------------------------------------------------------------------------
...
...
@@ -79,21 +74,15 @@
\end{twentyshort}
\BLOCK
{
endif
}
\\
% ----------------------------------------------------------------------------------------------------------------------
%
Software Component
s
%
Top 5 File Type
s
% ----------------------------------------------------------------------------------------------------------------------
\BLOCK
{
if 'software
_
components' in analysis
}
\section
{
Software
}
\section
{
Top five occuring file types
}
\begin{twentyshort}
\BLOCK
{
for summary in analysis['software
_
components']['summary'] | sort | x
_
entires
}
\twentyitemshort
{
\VAR
{
summary | split
_
space
}}
\BLOCK
{
endfor
}
\BLOCK
{
if analysis['software
_
components']['summary'] | elements
_
count > 10
}
\twentyitemshort
{}{
and
\VAR
{
analysis['software
_
components']['summary'] | elements
_
count - 10
}
others
}
\BLOCK
{
endif
}
\end{twentyshort}
\BLOCK
{
endif
}
\\
\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}
\\
% ----------------------------------------------------------------------------------------------------------------------
% IP & URI
% ----------------------------------------------------------------------------------------------------------------------
...
...
@@ -106,7 +95,16 @@
\BLOCK
{
endfor
}
\end{twentyshort}
\BLOCK
{
endif
}
% ----------------------------------------------------------------------------------------------------------------------
% Executables
% ----------------------------------------------------------------------------------------------------------------------
\section
{
Executables
}
\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}
\\
%----------------------------------------------------------------------------------------
% SECOND PAGE EXAMPLE
%----------------------------------------------------------------------------------------
...
...
pdf_generator/templates/new_template/twentysecondcv.cls
View file @
26b0455c
...
...
@@ -22,6 +22,20 @@
\DeclareOption*
{
\PassOptionsToClass
{
\CurrentOption
}{
article
}}
\ProcessOptions\relax
\newbool
{
icon
}
\DeclareOption
{
icon
}{
%
\booltrue
{
icon
}
}
\DeclareOption
{
print
}{
\def\@
cv@print
{}}
\DeclareOption*
{
\PassOptionsToClass
{
\CurrentOption
}{
article
}
}
\ProcessOptions\relax
\ifbool
{
icon
}{
\RequirePackage
{
fontawesome
}}{}
\usetikzlibrary
{
calc
}
%----------------------------------------------------------------------------------------
% COLOURS
%----------------------------------------------------------------------------------------
...
...
@@ -139,10 +153,10 @@
\renewcommand
{
\arraystretch
}{
1.6
}
\begin{tabular}
{
p
{
0.5cm
}
@
{
\hskip
0.5cm
}
p
{
5cm
}}
\ifthenelse
{
\equal
{
\cvdate
}{}}{}{
\textsc
{
\
Large\icon
{
\Info
}}
&
\cvdate\\
}
\ifthenelse
{
\equal
{
\cvaddress
}{}}{}{
\textsc
{
\Large\icon
{
\
Letter
}}
&
\cvaddress\\
}
\ifthenelse
{
\equal
{
\cvnumberphone
}{}}{}{
\textsc
{
\Large\icon
{
\
Telefon
}}
&
\cvnumberphone\\
}
\ifthenelse
{
\equal
{
\cvsite
}{}}{}{
\textsc
{
\
Large\icon
{
\Mundus
}}
&
\cvsite\\
}
\ifthenelse
{
\equal
{
\cvdate
}{}}{}{
\textsc
{
\
large\icon
{
\faIndustry
}}
&
\cvdate\\
}
\ifthenelse
{
\equal
{
\cvaddress
}{}}{}{
\textsc
{
\Large\icon
{
\
faArrowsH
}}
&
\cvaddress\\
}
\ifthenelse
{
\equal
{
\cvnumberphone
}{}}{}{
\textsc
{
\Large\icon
{
\
faCodeFork
}}
&
\cvnumberphone\\
}
\ifthenelse
{
\equal
{
\cvsite
}{}}{}{
\textsc
{
\
large\icon
{
\faCalendar
}}
&
\cvsite\\
}
\ifthenelse
{
\equal
{
\cvmail
}{}}{}{
\textsc
{
\large\icon
{
@
}}
&
\href
{
mailto:
\cvmail
}{
\cvmail
}}
\end{tabular}
...
...
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