-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGlassGuard.html
More file actions
302 lines (258 loc) · 6.97 KB
/
GlassGuard.html
File metadata and controls
302 lines (258 loc) · 6.97 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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<!--
# ----- License -------------------------------------------------- #
# GlassGuard – GlassGuard is an open-source utility for authorized security testing, iframe inspection, and controlled target interaction in ethical environments.
# Copyright (c) 2025 - CursedSec (Operated by Cursed271). All rights reserved.
# This software is an proprietary intellectual property developed for
# penetration testing, threat modeling, and security research. It
# is licensed under the CURSEDSEC OWNERSHIP EDICT:
#
# 🚫 PROHIBITION WARNING 🚫
# Redistribution, re-uploading, and unauthorized modification are strictly forbidden
# under the COE. Use is granted ONLY under the limited terms defined in the official
# LICENSE file (COE), which must be included in all copies.
# DISCLAIMER:
# This tool is intended for **educational or ethical testing** purposes only.
# Unauthorized or malicious use of this software against systems without
# proper authorization is strictly prohibited and may violate laws and regulations.
# The author assumes no liability for misuse or damage caused by this tool.
# 🔗 LICENSE: CURSEDSEC OWNERSHIP EDICT (COE)
# 🔗 Repository: https://github.com/Cursed271
# 🔗 Author: Steven Pereira (@Cursed271)
-->
<!-- # ----- Clickjacking Script -------------------------------------- # -->
<!DOCTYPE html>
<html lang = "en">
<head>
<meta charset = "UTF-8"/>
<meta name = "viewport" content = "width = device-width, initial-scale = 1.0"/>
<title>GlassGuard Clickjacker</title>
<link rel = "icon" type = "image/png" href = "https://raw.githubusercontent.com/Cursed271/Cursed271/main/Logo.png">
<style>
:root {
--accent: #C6ECE3;
--bg: #262626;
--panel: #1f1f1f;
--section: #2b2b2b;
--log-success: #00ff00;
--log-warning: #ff4c4c;
--log-info: #B4D9CF;
}
* {
box-sizing: border-box;
}
body {
background-color: var(--bg);
font-family: "JetBrains Mono", monospace;
color: #f1f1f1;
display: flex;
justify-content: center;
align-items: flex-start;
height: 100vh;
margin: 0;
padding: 20px;
gap: 20px;
}
.panel {
background: var(--panel);
border-radius: 16px;
padding: 20px;
box-shadow: 0 4px 20px rgba(0,0,0,0.4);
width: 320px;
display: flex;
flex-direction: column;
gap: 20px;
height: calc(100vh - 40px);
}
.header {
display: flex;
align-items: center;
gap: 12px;
}
.icon img {
width: 65px;
height: 65px;
object-fit: contain;
border-radius: 50%;
}
.title {
font-weight: 600;
font-size: 15px;
line-height: 1.2;
}
.section {
background: var(--section);
padding: 14px;
border-radius: 12px;
display: flex;
flex-direction: column;
gap: 10px;
}
input[type="text"] {
background: #1a1a1a;
border: none;
color: #f1f1f1;
padding: 10px;
border-radius: 8px;
width: 100%;
box-sizing: border-box;
outline: none;
}
.button-row {
display: flex;
justify-content: space-between;
gap: 10px;
}
button {
flex: 1;
padding: 10px;
border-radius: 8px;
border: none;
font-weight: 600;
cursor: pointer;
background-color: var(--accent);
color: #262626;
transition: background-color 0.3s;
}
.log {
background: var(--section);
border-radius: 12px;
padding: 12px;
font-family: monospace;
font-size: 12px;
white-space: normal;
overflow-y: auto;
overflow-wrap: break-word;
word-break: normal;
}
.success{
color: var(--log-success);
}
.warning{
color: var(--log-warning);
}
.info{
color: var(--log-info);
}
.notes {
font-size: 12px;
color: #aaa;
line-height: 1.4;
}
.social {
font-size: 12px;
color: #aaa;
line-height: 1.4;
}
.social a,
.social a:visited {
color: var(--log-info);
text-decoration: none;
}
.iframe-container {
background: var(--panel);
border-radius: 16px;
flex: 1;
min-width: 850px;
height: calc(100vh - 40px);
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
iframe {
width: 100%;
height: 100%;
border: none;
border-radius: 16px;
}
.panel > .section:nth-child(3){
min-height: 0;
}
</style>
</head>
<body>
<div class = "panel">
<div class = "header">
<div class = "icon">
<img src = "https://raw.githubusercontent.com/Cursed271/Cursed271/main/Logo.png">
</div>
<div class = "title">GlassGuard - Frame the Target. Guard the Access.</div>
</div>
<div class = "section">
<label>Target URL</label>
<input id = "targetURL" type = "text" placeholder = "https://cursedsec.com"/>
<div class = "button-row">
<button id = "loadBtn">Load Target</button>
</div>
</div>
<div class = "section" style = "flex: 1;">
<label>Activity Log</label>
<div id="log" class="log">
<div class="success">[+] GlassGuard is ready!</div>
<div class="success">[+] Enter a Target URL & Click "Load Target"</div>
</div>
</div>
<div class = "section">
<div class = "notes">
Notes:<br>
<ul>
<li>Use this script on systems that you have authorization to test.<br></li>
<li>This does not bypass iFrame Protections.<br></li>
<li>Created by Cursed271.</li>
</ul>
</div>
</div>
<div class = "section">
<div class = "social">
Follow me On:<br>
<ul>
<li>Github: <a href="https://github.com/Cursed271">@Cursed271</a><br></li>
<li>LinkedIn: <a href="https://www.linkedin.com/in/Cursed271">@Cursed271</a><br></li>
<li>Website: <a href="https://www.cursedsec.com">CursedSec.com</a></li>
</ul>
</div>
</div>
</div>
<div class = "iframe-container">
<iframe id = "targetFrame" sandbox = "allow-same-origin allow-scripts allow-forms"></iframe>
</div>
<script>
const loadBtn = document.getElementById("loadBtn");
const frame = document.getElementById("targetFrame");
const log = document.getElementById("log");
const targetURLInput = document.getElementById("targetURL");
targetURLInput.value = "";
frame.src = "about:blank";
function logMsg(msg, type = "info"){
const timestamp = new Date().toISOString().replace("T", " ").split(".")[0];
const entry = document.createElement("div");
let icon;
if (type === 'success') {
icon = '[+]';
entry.classList.add('success');
} else if (type === 'warning') {
icon = '[!]';
entry.classList.add('warning');
} else {
icon = '[?]';
entry.classList.add('info');
}
entry.innerHTML = `${timestamp} — ${icon} ${msg}`;
log.appendChild(entry);
setTimeout(() => { log.scrollTop = log.scrollHeight; }, 0);
}
loadBtn.addEventListener("click", () => {
const url = document.getElementById("targetURL").value.trim();
if (!url) {
logMsg("Enter a valid URL.", "warning");
return;
}
frame.src = "about:blank";
logMsg(`Loading target: ${url}`, "info");
frame.src = url;
});
</script>
</body>
</html>
<!-- # ----- End ------------------------------------------------------ # -->