-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
generate_document.sh
executable file
·95 lines (93 loc) · 3.57 KB
/
generate_document.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
type pandoc >/dev/null 2>&1 || { echo >&2 "I require pandoc but it's not installed. Aborting."; exit 1; }
# How to generate Docx
# TODO:
# 0. fix position of TOC: https://stackoverflow.com/questions/25591517/pandoc-inserting-pages-before-generated-table-of-contents
# 1. add changelog
# 2. add [Date] to tag+tag of Date
cd ../Document
# ../Tools/metadata.yml \
pandoc -f gfm --toc -N --columns 10000 --self-contained -s --reference-doc ../Tools/reference.docx -t docx -o ../Generated/MSTG.docx \
0x00-Header.md \
Foreword.md \
0x02-Frontispiece.md \
0x03-Overview.md \
0x04-General-Testing-Guide.md \
0x04a-Mobile-App-Taxonomy.md \
0x04b-Mobile-App-Security-Testing.md \
0x04c-Tampering-and-Reverse-Engineering.md \
0x04e-Testing-Authentication-and-Session-Management.md \
0x04f-Testing-Network-Communication.md \
0x04g-Testing-Cryptography.md \
0x04h-Testing-Code-Quality.md \
0x05-Android-Testing-Guide.md \
0x05a-Platform-Overview.md \
0x05b-Basic-Security_Testing.md \
0x05d-Testing-Data-Storage.md \
0x05e-Testing-Cryptography.md \
0x05f-Testing-Local-Authentication.md \
0x05g-Testing-Network-Communication.md \
0x05h-Testing-Platform-Interaction.md \
0x05i-Testing-Code-Quality-and-Build-Settings.md \
0x05c-Reverse-Engineering-and-Tampering.md \
0x05j-Testing-Resiliency-Against-Reverse-Engineering.md \
0x06-iOS-Testing-Guide.md \
0x06a-Platform-Overview.md \
0x06b-Basic-Security-Testing.md \
0x06d-Testing-Data-Storage.md \
0x06e-Testing-Cryptography.md \
0x06f-Testing-Local-Authentication.md \
0x06g-Testing-Network-Communication.md \
0x06h-Testing-Platform-Interaction.md \
0x06i-Testing-Code-Quality-and-Build-Settings.md \
0x06c-Reverse-Engineering-and-Tampering.md \
0x06j-Testing-Resiliency-Against-Reverse-Engineering.md \
0x07-Appendix.md \
0x08-Testing-Tools.md \
0x09-Suggested-Reading.md
# cd ../Document-ru
#
# pandoc -f gfm --toc -N --columns 10000 --self-contained --reference-doc ../Tools/reference.docx -t docx -o ../Generated/MSTG_2.docx \
# 0x03-Overview.md \
# 0x04-General-Testing-Guide.md \
# 0x04a-Mobile-App-Taxonomy.md \
# 0x04b-Mobile-App-Security-Testing.md \
# 0x04c-Tampering-and-Reverse-Engineering.md \
# 0x04e-Testing-Authentication-and-Session-Management.md \
# 0x04f-Testing-Network-Communication.md \
# 0x04g-Testing-Cryptography.md \
# 0x04h-Testing-Code-Quality.md \
# 0x05-Android-Testing-Guide.md \
# 0x05a-Platform-Overview.md \
# 0x05b-Basic-Security_Testing.md \
# 0x05d-Testing-Data-Storage.md \
# 0x05e-Testing-Cryptography.md \
# 0x05f-Testing-Local-Authentication.md \
# 0x05g-Testing-Network-Communication.md \
# 0x05h-Testing-Platform-Interaction.md \
# 0x05i-Testing-Code-Quality-and-Build-Settings.md \
# 0x05c-Reverse-Engineering-and-Tampering.md \
# 0x05j-Testing-Resiliency-Against-Reverse-Engineering.md \
# 0x06-iOS-Testing-Guide.md \
# 0x06a-Platform-Overview.md \
# 0x06b-Basic-Security-Testing.md \
# 0x06d-Testing-Data-Storage.md \
# 0x06e-Testing-Cryptography.md \
# 0x06f-Testing-Local-Authentication.md \
# 0x06g-Testing-Network-Communication.md \
# 0x06h-Testing-Platform-Interaction.md \
# 0x06i-Testing-Code-Quality-and-Build-Settings.md \
# 0x06c-Reverse-Engineering-and-Tampering.md \
# 0x06j-Testing-Resiliency-Against-Reverse-Engineering.md \
# 0x07-Appendix.md \
# 0x08-Testing-Tools.md \
# 0x09-Suggested-Reading.md
#
# pandoc -f gfm -N --columns 10000 --reference-doc ../Tools/reference.docx -o ../Generated/MSTG_1-ru.docx \
# 0x00-Header.md \
# Foreword.md \
# 0x02-Frontispiece.md
#
# pandoc -f docx -N --columns 10000 --reference-doc ../Tools/reference.docx -o ../Generated/MSTG-ru.docx \
# ../Generated/MSTG_1-ru.docx \
# ../Generated/MSTG_2-ru.docx