-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfspoof.html
More file actions
177 lines (159 loc) · 4.24 KB
/
fspoof.html
File metadata and controls
177 lines (159 loc) · 4.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Google Login Redirect</title>
<style>
/* Reset defaults */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
font-family: Arial, sans-serif;
background: #f2f2f2;
}
body {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 20px;
}
.redirect-button {
padding: 12px 24px;
font-size: 16px;
border-radius: 6px;
background-color: #4285F4;
color: white;
border: none;
cursor: pointer;
box-shadow: 0 4px 12px rgba(66, 133, 244, 0.5);
transition: background-color 0.3s ease;
}
.redirect-button:hover {
background-color: #357ae8;
}
.address-bar {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 90px;
z-index: 9999;
object-fit: cover;
display: block;
border-bottom: 1px solid #ccc;
}
.login-container {
background: white;
padding: 40px 50px;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
width: 360px;
text-align: center;
margin-top: 60px; /* Push content below address bar */
}
.logo {
font-size: 48px;
font-weight: 700;
margin-bottom: 24px;
user-select: none;
}
.logo .g { color: #4285F4; }
.logo .o1 { color: #EA4335; }
.logo .o2 { color: #FBBC05; }
.logo .g2 { color: #4285F4; }
.logo .l { color: #34A853; }
.logo .e { color: #EA4335; }
h1 {
font-weight: 400;
font-size: 24px;
margin-bottom: 20px;
color: #202124;
}
input[type="email"], input[type="password"] {
width: 100%;
padding: 12px 15px;
margin: 8px 0 24px;
border: 1px solid #dadce0;
border-radius: 4px;
font-size: 16px;
}
input[type="email"]:focus, input[type="password"]:focus {
border-color: #4285F4;
outline: none;
box-shadow: 0 0 5px rgba(66,133,244,0.5);
}
button {
background-color: #4285F4;
color: white;
border: none;
width: 100%;
padding: 12px;
font-size: 16px;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #357ae8;
}
.footer-text {
margin-top: 20px;
font-size: 12px;
color: #666;
user-select: none;
}
.funny-msg {
color: red;
font-weight: bold;
margin-top: 15px;
user-select: none;
}
</style>
<script>
function redirectToGoogle() {
const elem = document.documentElement;
const goFullscreen = () => {
if (elem.requestFullscreen) {
return elem.requestFullscreen();
} else if (elem.webkitRequestFullscreen) {
return elem.webkitRequestFullscreen();
} else if (elem.msRequestFullscreen) {
return elem.msRequestFullscreen();
} else {
return Promise.resolve();
}
};
goFullscreen().finally(() => {
document.body.innerHTML = `
<img src="https://guzings.github.io/spoof.png" alt="Address Bar" class="address-bar" />
<div class="login-container">
<div class="logo" aria-label="Google Logo">
<span class="g">G</span>
<span class="o1">o</span>
<span class="o2">o</span>
<span class="g2">g</span>
<span class="l">l</span>
<span class="e">e</span>
</div>
<h1>Sign in to your Google Account</h1>
<input type="email" placeholder="Email or phone" aria-label="Email or phone" />
<input type="password" placeholder="Password" aria-label="Password" />
<button onclick="alert('Fake Google')">Next</button>
<div class="funny-msg">Warning: No real accounts here!</div>
<div class="footer-text">© 2025 Google</div>
</div>
`;
});
}
</script>
</head>
<body>
<button class="redirect-button" onclick="redirectToGoogle()">Login to your Google Account!</button>
</body>
</html>