2018-12-29 16:27:01 +01:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
|
2023-10-09 11:28:03 +02:00
|
|
|
slidedecks=("0-intro-shorter" "0-misp-introduction-to-information-sharing" "1-misp-usage" "1.2-misp-integration" "1.1-misp-viper-integration" "1.2.1-misp-integration-mail2misp" "2-misp-administration" "3-misp-taxonomy-tagging" "3.1-misp-modules" "3.2-misp-galaxy" "3.3-misp-object-template" "6.0-misp-dashboard" "a.0-contributing" "a.1-devintro" "a.2-pymisp" "a.3-misp-feed" "a.4-best-practices" "a.5-decaying-indicators" "a.5-bis-decaying-indicators-light-version" "a.6-forensic" "a.7-rest-API" "b.1-best-practices-in-threat-intelligence" "a.8-dev-hands-on" "a.9-restsearch-dev" "a.10-galaxy-2.0" "a.11-misp-data-model" "a.a-widget-dev" "b.2-turning-data-into-actionable-intelligence" "b.5-turning-data-into-actionable-intelligence-training" "4-misp-standard" "a.b-cli" "a.c-deployment" "a.12-misp-workflows" "a.12-misp-workflows-short" "a.13-misp-stix" "b.6-automation")
|
|
|
|
slidedecks=("b.6-automation")
|
2021-02-11 09:37:24 +01:00
|
|
|
|
2018-12-29 16:27:01 +01:00
|
|
|
mkdir output
|
2022-02-10 10:39:57 +01:00
|
|
|
mkdir output/handout
|
|
|
|
|
2018-12-29 16:03:57 +01:00
|
|
|
export TEXINPUTS=::`pwd`/themes/
|
|
|
|
echo ${TEXINPUTS}
|
2018-12-29 16:27:01 +01:00
|
|
|
for slide in ${slidedecks[@]}; do
|
2021-02-11 09:37:24 +01:00
|
|
|
echo "---- Building ${slide}"
|
2018-12-29 16:27:01 +01:00
|
|
|
cd ${slide}
|
2019-05-23 21:28:13 +02:00
|
|
|
if test -f "slide_nl.tex"; then
|
|
|
|
pdflatex slide_nl.tex
|
2023-03-02 10:48:23 +01:00
|
|
|
fi
|
|
|
|
if test -f "slide_es.tex"; then
|
|
|
|
pdflatex slide_es.tex
|
2019-05-23 21:28:13 +02:00
|
|
|
fi
|
2018-12-29 16:27:01 +01:00
|
|
|
pdflatex slide.tex
|
|
|
|
pdflatex slide.tex
|
2018-12-29 17:31:45 +01:00
|
|
|
rm *.aux *.toc *.snm *.log *.out *.nav *.vrb
|
2022-02-10 10:39:57 +01:00
|
|
|
sed '12 i \\\\usepackage{pgfpages}\n\\setbeameroption{show notes on second screen=right}' slide.tex >slide_handout.tex
|
|
|
|
pdflatex slide_handout.tex
|
|
|
|
pdflatex slide_handout.tex
|
|
|
|
rm *.aux *.toc *.snm *.log *.out *.nav *.vrb
|
2018-12-29 16:27:01 +01:00
|
|
|
cp slide.pdf ../output/${slide}.pdf
|
2022-02-10 10:39:57 +01:00
|
|
|
cp slide_handout.pdf ../output/handout/${slide}_handout.pdf
|
2018-12-29 16:46:52 +01:00
|
|
|
rm slide.pdf
|
2022-02-10 10:39:57 +01:00
|
|
|
rm slide_handout.pdf
|
2019-06-05 22:24:27 +02:00
|
|
|
if test -f "slide_nl.tex"; then
|
|
|
|
cp slide_nl.pdf ../output/${slide}_nl.pdf
|
2020-12-16 11:28:55 +01:00
|
|
|
rm slide_nl.pdf
|
|
|
|
fi
|
2023-03-02 10:48:23 +01:00
|
|
|
if test -f "slide_es.tex"; then
|
|
|
|
cp slide_es.pdf ../output/${slide}_es.pdf
|
|
|
|
rm slide_es.pdf
|
|
|
|
fi
|
2018-12-29 16:39:05 +01:00
|
|
|
cd ..
|
2021-02-11 09:37:24 +01:00
|
|
|
echo "--- Finished building ${slide}"
|
2018-12-29 16:27:01 +01:00
|
|
|
done
|
2018-12-29 16:39:05 +01:00
|
|
|
|
|
|
|
echo "Generating ack page..."
|
|
|
|
cd complementary/ack
|
|
|
|
pdflatex ack.tex
|
|
|
|
rm *.aux *.log *.out
|
|
|
|
cp ack.pdf ../../output
|
2018-12-29 18:17:51 +01:00
|
|
|
rm ack.pdf
|
|
|
|
cd ../..
|
|
|
|
|
2021-05-19 17:33:10 +02:00
|
|
|
echo "Generating awesome cheatsheet.."
|
|
|
|
cd cheatsheets/
|
|
|
|
pdflatex cheatsheet
|
2018-12-29 18:17:51 +01:00
|
|
|
rm *.aux *.toc *.snm *.log *.out *.nav *.vrb
|
2021-05-19 17:41:27 +02:00
|
|
|
cp cheatsheet.pdf ../output
|
2018-12-29 18:17:51 +01:00
|
|
|
rm cheatsheet.pdf
|
2021-05-19 17:37:12 +02:00
|
|
|
cd ..
|
2018-12-29 16:39:05 +01:00
|
|
|
|
2018-12-29 18:33:16 +01:00
|
|
|
echo "Generating checklist..."
|
|
|
|
cd training-support/checklist
|
|
|
|
pdflatex usage.tex
|
|
|
|
rm *.aux *.toc *.snm *.log *.out *.nav *.vrb
|
|
|
|
cp usage.pdf ../../output
|
|
|
|
rm usage.pdf
|
|
|
|
cd ../..
|
|
|
|
|
2018-12-29 16:39:05 +01:00
|
|
|
echo "Generating handout..."
|
|
|
|
cd output
|
2018-12-29 17:39:41 +01:00
|
|
|
for pdf in ${slidedecks[@]}; do
|
|
|
|
listofpdf+="${pdf}.pdf "
|
|
|
|
done
|
|
|
|
echo ${listofpdf}
|
|
|
|
|
2018-12-29 18:33:16 +01:00
|
|
|
pdfunite ${listofpdf} cheatsheet.pdf usage.pdf ack.pdf ../misp-training.pdf
|
2020-12-23 17:44:14 +01:00
|
|
|
cp ../misp-training.pdf .
|
2018-12-29 16:39:05 +01:00
|
|
|
cd ..
|
2018-12-29 17:39:41 +01:00
|
|
|
|
2018-12-29 17:25:08 +01:00
|
|
|
exiftool -overwrite_original_in_place -Title="MISP Training and Slide Decks" -Author="CIRCL Computer Incident Response Center Luxembourg" -Subject="MISP Threat Intelligence Platform Training Materials" -Keywords="MISP Threat Intelligence CTI STIX information sharing yara sigma suricata snort bro openioc threat-actor TIP threat intelligence platform circl.lu training cybersecurity MISPProject" misp-training.pdf
|
2018-12-29 16:39:05 +01:00
|
|
|
|
2018-12-29 23:01:50 +01:00
|
|
|
rm table.md
|
|
|
|
|
|
|
|
echo "| Slides (PDF) | Source Code |">>table.md
|
2018-12-29 23:08:44 +01:00
|
|
|
echo "| ------------ | ----------- |">>table.md
|
2018-12-29 23:18:48 +01:00
|
|
|
|
2018-12-29 23:01:50 +01:00
|
|
|
for t in ${slidedecks[@]}; do
|
2021-02-11 09:52:48 +01:00
|
|
|
echo "| [${t}](https://www.misp-project.org/misp-training/${t}.pdf) | [source](https://github.com/MISP/misp-training/tree/main/${t}) |" >>table.md
|
2018-12-29 23:01:50 +01:00
|
|
|
done
|
|
|
|
|