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
13876234
Commit
13876234
authored
4 years ago
by
lwilms
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for emptiness
parent
005c06f2
master
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
29 deletions
+48
-29
Dockerfile
Dockerfile
+2
-2
main.tex
pdf_generator/templates/default/main.tex
+46
-27
No files found.
Dockerfile
View file @
13876234
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
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
apt-get remove
-y
python3-pip
...
...
This diff is collapsed.
Click to expand it.
pdf_generator/templates/default/main.tex
View file @
13876234
...
...
@@ -35,9 +35,11 @@
%----------------------------------------------------------------------------------------
\aboutme
{
\BLOCK
{
if 'crypto
_
material' in analysis
}
\BLOCK
{
for selected
_
summary in analysis['crypto
_
material']['summary']
}
\VAR
{
selected
_
summary | filter
_
chars
}
\\
\BLOCK
{
endfor
}
\BLOCK
{
if analysis['crypto
_
material']['summary'] | length
}
\BLOCK
{
for selected
_
summary in analysis['crypto
_
material']['summary']
}
\VAR
{
selected
_
summary | filter
_
chars
}
\\
\BLOCK
{
endfor
}
\BLOCK
{
endif
}
\BLOCK
{
else
}
No Crypto
\BLOCK
{
endif
}
...
...
@@ -46,7 +48,10 @@ No Crypto
% EXPLOIT MITIGATION
%----------------------------------------------------------------------------------------
\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
}
\skills
{
No Analysis Done/1
}
\BLOCK
{
endif
}
...
...
@@ -57,23 +62,28 @@ No Crypto
% ----------------------------------------------------------------------------------------------------------------------
\BLOCK
{
if 'binwalk' in analysis
}
\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
}
% ----------------------------------------------------------------------------------------------------------------------
% Software Components
% ----------------------------------------------------------------------------------------------------------------------
\BLOCK
{
if 'software
_
components' in analysis
}
\section
{
Software
}
\BLOCK
{
if analysis['software
_
components']['summary'] | length
}
\section
{
Software
}
\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
}
\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
}
\end{twentyshort}
\BLOCK
{
endif
}
\\
% ----------------------------------------------------------------------------------------------------------------------
% Known Vulnerabilities
...
...
@@ -106,36 +116,45 @@ No Crypto
% ----------------------------------------------------------------------------------------------------------------------
% 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}
\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}
\\
\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
{
endif
}
\BLOCK
{
endif
}
\\
% ----------------------------------------------------------------------------------------------------------------------
% IP & URI
% ----------------------------------------------------------------------------------------------------------------------
\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}
\BLOCK
{
for selected
_
analysis in analysis['ip
_
and
_
uri
_
finder']['summary'] | triplet
}
\twentyitemshort
{
\VAR
{
selected
_
analysis
| filter
_
chars
}}
\twentyitemshort
{
\VAR
{
selected
_
analysis
}}
\BLOCK
{
endfor
}
\end{twentyshort}
\BLOCK
{
endif
}
\BLOCK
{
endif
}
% ----------------------------------------------------------------------------------------------------------------------
% Executables
% ----------------------------------------------------------------------------------------------------------------------
\BLOCK
{
if 'cpu
_
architecture' in analysis
}
\section
{
Executables
}
\BLOCK
{
if analysis['cpu
_
architecture']['summary'] | length
}
\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}
\\
\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}
\\
\BLOCK
{
endif
}
\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