-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmallhives.html
110 lines (99 loc) · 3.69 KB
/
smallhives.html
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
<!DOCTYPE html>
<meta charset="utf-8">
<html>
<head>
<title>netkraken | small multiple hives</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/bootstrap-theme.min.css" />
<link rel="stylesheet" type="text/css" href="css/hive.css" />
<style>
th {
text-align: center;
}
</style>
</head>
<body>
<ol class="breadcrumb">
<li><a href="/">netkraken</a></li>
<li>small multiple hives</li>
</ol>
<article>
<h1><img src="res/octopus.png"> small multiple hives</h1>
<div class="hive-description">
<em>Description: Hosts get mapped to three groups, based on their name:
<br/>
"devel-*" on lower right axis (orange),
<br/>
"testing-*" on lower left axis (green),
<br/>
rest on upper axis (blue).
<br/>
Connections are in the color of the source host.
</em>
</div>
<table>
<tr>
<td colspan=6" id="infoText">...</td>
</tr>
<tr>
<th></th>
<th>http</th>
<th>https</th>
<th>ssh</th>
<th>ldaps</th>
<th>mysql</th>
</tr>
<tr class="graphs">
<th id="description0"></th>
<td id="graph_0_0"></td>
<td id="graph_0_1"></td>
<td id="graph_0_2"></td>
<td id="graph_0_3"></td>
<td id="graph_0_4"></td>
</tr>
<tr>
<th></th>
<th>vrace</th>
<th>cfinger</th>
<th>imap</th>
<th>squid</th>
<th>smtp</th>
</tr>
<tr class="graphs">
<th id="description0"></th>
<td id="graph_0_5"></td>
<td id="graph_0_6"></td>
<td id="graph_0_7"></td>
<td id="graph_0_8"></td>
<td id="graph_0_9"></td>
</tr>
</table>
</article>
<script src="js/d3.min.js"></script>
<script src="js/link.js"></script>
<script src="js/hive.js"></script>
<script src="js/jsxcompressor.min.js"></script>
<script>
"use strict";
var source = getUrlVar("source");
source = (source === "") ? "model.live.reduced.json" : source;
var size = getUrlVar("size");
size = (size === "") ? 200 : +size;
var mapping0 = createGroupFunction(JSON.parse(getUrlVar("mapping0")));
d3.xhr(source, function(response) {
var binary = JXG.decompress(response.response);
var data = JSON.parse(binary);
renderSingleHive(data, "http", mapping0, 3, "#graph_0_0", "#infoText");
renderSingleHive(data, "https", mapping0, 3, "#graph_0_1", "#infoText");
renderSingleHive(data, "ssh", mapping0, 3, "#graph_0_2", "#infoText");
renderSingleHive(data, "ldaps", mapping0, 3, "#graph_0_3", "#infoText");
renderSingleHive(data, "mysql", mapping0, 3, "#graph_0_4", "#infoText");
renderSingleHive(data, "vrace", mapping0, 3, "#graph_0_5", "#infoText");
renderSingleHive(data, "cfinger", mapping0, 3, "#graph_0_6", "#infoText");
renderSingleHive(data, "imap", mapping0, 3, "#graph_0_7", "#infoText");
renderSingleHive(data, "squid", mapping0, 3, "#graph_0_8", "#infoText");
renderSingleHive(data, "smtp", mapping0, 3, "#graph_0_9", "#infoText");
});
</script>
</body>
</html>