-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
41 lines (39 loc) · 1.59 KB
/
index.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
<!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>SandboxJS</title>
<link rel="shortcut icon" href="favicon.png" type="image/x-icon">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script>
<script src="test/script.js" type="module"></script>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<h1>Sandbox.js - Safe eval runtime</h1>
<div class="container">
<div class="p">
<p>
The following tests demonstrate the capabilities of SandboxJS. The results are compared with eval that has a basic scope proxy prison implemented. A global variable called <i>bypassed</i> is present, and if the test manages to set it to 1, then it will be marked with bypassed in red, if there is an Error then it means generally that the bypass was blocked. Also demonstrated is how the Window and Function globals are replaced with a sandboxed version no matter how you reach them.
</p>
<label><input id="jit-parsing" type="checkbox" checked> JIT Parsing</label>
<select id="runtime-type">
<option value="sync" selected>sync</option>
<option value="async">async</option>
</select>
<table id="times">
<tbody>
</tbody>
</table>
</div>
<div class="tests">
<table>
<thead><tr><th>Code</th><th>eval</th><th>Sandbox.js</th><th>Tests</th></tr></thead>
<tbody>
</tbody>
</table>
</div>
</div>
</body>
</html>