-
Notifications
You must be signed in to change notification settings - Fork 0
/
file.php
80 lines (69 loc) · 1.88 KB
/
file.php
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
<?php
echo "<h2>PHP is Fun!</h2>";
?>
<table id="myTable" class="table table-bordered table-striped">
<thead>
<tr>
<th>no</th>
<th>host</th>
<th>url</th>
<th>web server</th>
<th>fingerprint_sha256</th>
<th>response time</th>
<th>technologies</th>
<th>open port</th>
</tr>
</thead>
<tbody>
<tr>
<?php
$json = file_get_contents('jsontesting.json');
$json_data = json_decode($json,true);
//print_r($json_data);
// echo $json_data['tls-grab'][7]['tls_version'];
$no = 1;
foreach($json_data as $row) {
?>
<td><?= $no ?></td>
<td><?= $row['host'] ?></td>
<td><?= $row['url'] ?></td>
<td><?= $row['webserver'] ?></td>
<td><?= $row['a'] ?></td>
<td><?= $row['tls-grab']['fingerprint_sha256'] ?></td>
<td><?= $row['response-time'] ?></td>
<td>
<?php
foreach($row['technologies'] as $test)
/* if (!empty($test))
{
echo $test;
} */
// elseif (empty($test))
{
// echo $test;
?>
<?= $test ?> |
<?php
}
?>
</td>
<tr>
<?
$no++;
}
?>
</tr>
</tbody>
<tfoot>
<tr>
<th>no</th>
<th>host</th>
<th>url</th>
<th>web server</th>
<th>fingerprint_sha256</th>
<th>response time</th>
<th>technologies</th>
<th>open port</th>
</tr>
</tfoot>
</table>