-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_report.php
More file actions
222 lines (206 loc) · 8.93 KB
/
Copy pathtest_report.php
File metadata and controls
222 lines (206 loc) · 8.93 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<?php
// Testovací soubor pro zobrazení reportu v hackerskému stylu
// Simulace dat z formuláře
$reportData = [
'reportId' => '250424-250',
'analysisDate' => '2025-04-24',
'analystName' => 'Test Analytik',
'analysisType' => 'Bezpečnostní analýza',
'tagType' => 'NFC Type 2',
'manufacturer' => 'NXP',
'model' => 'NTAG213',
'serialNumber' => '04:A2:B3:C4:D5:E6',
'frequency' => '13.56 MHz',
'memoryCapacity' => '144 bytes',
'dimensions' => '25mm x 25mm',
'protocols' => ['ISO/IEC 14443A', 'MIFARE'],
'encryption' => ['None'],
'supportedCommands' => 'READ, WRITE, FAST_READ',
'ndefRecords' => 'URL, Text',
'uid' => '04:A2:B3:C4:D5:E6',
'atrResponse' => '3B 8F 80 01 80 4F 0C A0 00 00 03 06',
'vulnerabilities' => 'Žádné významné zranitelnosti nebyly zjištěny.',
'securityLevel' => '4',
'cloning' => ['Teoreticky možné'],
'knownExploits' => 'Žádné známé exploity',
'securityRecommendations' => 'Použití silnějšího šifrování pro citlivá data.',
'readers' => 'ACR122U, Proxmark3',
'software' => 'NFC Tools Pro, MFOC',
'firmware' => '1.2.3',
'testConditions' => 'Laboratorní podmínky, teplota 22°C',
'readUidSuccess' => 'Úspěšné',
'readUidTime' => '12',
'readUidNote' => 'Bez problémů',
'readDataSuccess' => 'Úspěšné',
'readDataTime' => '45',
'readDataNote' => 'Bez problémů',
'writeDataSuccess' => 'Úspěšné',
'writeDataTime' => '78',
'writeDataNote' => 'Bez problémů',
'transferSpeed' => '106 kbit/s',
'readDistance' => 'Až 5 cm',
'interferenceResistance' => '3',
'penetrationTestResults' => 'Všechny testy proběhly úspěšně.',
'communicationLogs' => 'Log1.txt, Log2.txt',
'screenshots' => 'Screenshot1.png, Screenshot2.png',
'tagPhotos' => 'Photo1.jpg, Photo2.jpg',
'performanceGraphs' => 'Graph1.png, Graph2.png',
'overallRating' => '4',
'suitability' => 'Vhodné pro zamýšlené použití',
'securityRecommendationsFinal' => 'Doporučujeme použití silnějšího šifrování pro citlivá data.',
'improvementSuggestions' => 'Zvážit použití novější verze tagu s lepší podporou šifrování.'
];
// Začátek generování HTML obsahu
$html = '
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NFC/RFID Analýza - ' . htmlspecialchars($reportData['reportId']) . '</title>
<style>
/* Základní styly - hackerský design */
body {
font-family: "Courier New", monospace;
line-height: 1.6;
color: #00ff00; /* Matrix zelená */
background-color: #0a0a0a;
margin: 0;
padding: 0;
}
.container {
max-width: 1140px;
margin: 0 auto;
padding: 20px;
background-color: #121212;
box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
border: 1px solid #1a1a1a;
}
/* Hlavička reportu */
.report-header {
background: linear-gradient(135deg, #000000, #1a1a1a);
color: #00ff00;
padding: 30px;
margin-bottom: 30px;
border-radius: 0;
position: relative;
overflow: hidden;
border-left: 4px solid #00ff00;
text-transform: uppercase;
letter-spacing: 2px;
}
.report-header h1 {
margin: 0;
font-size: 28px;
font-weight: 700;
text-align: center;
text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
font-family: "Courier New", monospace;
}
.report-header h1::before {
content: "[ ";
}
.report-header h1::after {
content: " ]";
}
/* Sekce reportu */
.section {
margin-bottom: 30px;
border-radius: 0;
overflow: hidden;
box-shadow: 0 0 10px rgba(0, 255, 0, 0.1);
background-color: #1a1a1a;
border: 1px solid #333;
border-left: 3px solid #00ff00;
}
.section-header {
background-color: #000000;
padding: 15px 20px;
border-bottom: 1px solid #333;
display: flex;
align-items: center;
}
.section-header h2 {
margin: 0;
font-size: 16px;
color: #00ff00;
font-weight: 700;
font-family: "Courier New", monospace;
text-transform: uppercase;
letter-spacing: 1px;
}
.section-header .section-icon {
margin-right: 10px;
width: 24px;
height: 24px;
background-color: #00ff00;
color: #000;
border-radius: 0;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 14px;
font-family: "Courier New", monospace;
}
.section-content {
padding: 20px;
color: #cccccc;
font-family: "Courier New", monospace;
}
</style>
</head>
<body>
<div class="container">
<div class="report-header">
<h1>NFC/RFID Analýza</h1>
</div>
<div class="section">
<div class="section-header">
<div class="section-icon">1</div>
<h2>Základní informace o analýze</h2>
</div>
<div class="section-content">
<table style="width: 100%; border-collapse: collapse; background-color: #0a0a0a;">
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Datum analýzy:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;"><?php echo htmlspecialchars($reportData['analysisDate']); ?></td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Analytik:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;"><?php echo htmlspecialchars($reportData['analystName']); ?></td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">ID reportu:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;"><?php echo htmlspecialchars($reportData['reportId']); ?></td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Typ analýzy:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;"><?php echo htmlspecialchars($reportData['analysisType']); ?></td>
</tr>
</table>
</div>
</div>
<div class="section">
<div class="section-header">
<div class="section-icon">2</div>
<h2>Informace o testovaném tagu</h2>
</div>
<div class="section-content">
<table style="width: 100%; border-collapse: collapse; background-color: #0a0a0a;">
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Typ tagu:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;"><?php echo htmlspecialchars($reportData['tagType']); ?></td>
</tr>
<tr>
<td style="background-color: #0a0a0a; color: #00cc00; padding: 8px; border-bottom: 1px solid #333; width: 30%; text-transform: uppercase; font-size: 12px; letter-spacing: 1px;">Výrobce:</td>
<td style="background-color: #0a0a0a; color: #cccccc; padding: 8px; border-bottom: 1px solid #333;"><?php echo htmlspecialchars($reportData['manufacturer']); ?></td>
</tr>
</table>
</div>
</div>
</div>
</body>
</html>';
// Zobrazení HTML
echo $html;