-
Notifications
You must be signed in to change notification settings - Fork 4
/
categories.html
122 lines (91 loc) · 3.14 KB
/
categories.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Detector List (Categories)</title>
<style>
.clear {
color: transparent;
}
pre {
font-size: x-large;
}
</style>
</head>
<body>
<table width="75%">
<tr>
<td style="text-align:left">
<a href="./index.html">
<img src="./static/logo.png" style="width: 100px;" />
</a>
</td>
<td style="text-align:left">
<label style="font-size:24pt;text-decoration: underline;"> Solidity Vulnerabilities Covered By Slither (Detector List) </label>
<br>
</td>
<td style="text-align:right">
<a href="https://blog.trailofbits.com/2018/10/19/slither-a-solidity-static-analysis-framework/" target="_blank">Slither/Crytic / Trail Of Bits Blog</a>
<br>
<a href="https://github.com/crytic/slither" target="_blank">Slither/Crytic Suite Github</a>
<br>
</td>
</tr>
</table>
<table>
<tr>
<td>
</td>
<td>
<pre id="preTag1"></pre>
</td>
</tr>
</table>
<script>
//const lblMsg = document.getElementById("lblMsg");
const preTag1 = document.getElementById("preTag1");
async function fetchcategoriesJSON() {
const response = await fetch('http://localhost:8080/getcategories');
const categories = await response.json();
return categories;
}
fetchcategoriesJSON().then(categories => {
//console.log(categories);
var jsonStringified = JSON.stringify(categories);
var jsonObj = categories;
var stdoutText = categories.output;
console.log(stdoutText);
preTag1.innerText = stdoutText;
//preTag1.innerText = JSON.stringify(categories);
});
const initialize = async () => {
try {
//fetch('http://localhost:8080/getcategories')
//selectedFile.value = '';
//uploadForm.addEventListener('submit', uploadFile);
//var httpRequest = new XMLHttpRequest();
// function uploadFile(event) {
// event.preventDefault();
// var data = new FormData(document.getElementById("uploadForm"));
// httpRequest.onreadystatechange = checkResponse;
// httpRequest.open("GET", "http://localhost:8080/getcategories");
// httpRequest.send(data);
//}
// function checkResponse() {
// if (httpRequest.readyState == 4)
// {
// var rawText = httpRequest.response.toString();
// }
// }
}
catch(error) {
console.log(error);
}
}
window.addEventListener('DOMContentLoaded', initialize);
</script>
</body>
</html>