-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
288 lines (256 loc) · 6.97 KB
/
index.html
File metadata and controls
288 lines (256 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CORTEX AUTOMATION </title>
<script src="https://cdn.socket.io/4.7.2/socket.io.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Roboto+Mono:wght@400;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #0a0e14;
color: #00ff9d;
font-family: 'Orbitron', sans-serif;
min-height: 100vh;
overflow-x: hidden;
background-image:
radial-gradient(circle at 15% 50%, #00ff9d11 0%, transparent 25%),
radial-gradient(circle at 85% 30%, #00ff9d0d 0%, transparent 35%);
}
/* Rotating cyber rings */
.cyber-ring {
position: fixed;
inset: 0;
pointer-events: none;
background:
conic-gradient(from 0deg at 50% 50%,
transparent 0deg,
#00ff9d22 30deg,
transparent 80deg,
#00ff9d15 150deg,
transparent 220deg,
#00ff9d22 300deg,
transparent 360deg);
animation: rotate 18s linear infinite;
opacity: 0.4;
mix-blend-mode: screen;
}
@keyframes rotate {
0% { transform: rotate(0deg) scale(1.1); }
100% { transform: rotate(360deg) scale(1.1); }
}
#container {
position: relative;
max-width: 960px;
margin: 30px auto;
padding: 20px 30px;
z-index: 10;
}
h1 {
font-size: 2.4rem;
font-weight: 900;
letter-spacing: 6px;
text-align: center;
text-transform: uppercase;
background: linear-gradient(90deg, #00ff9d, #00d4ff, #00ff9d);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
text-shadow: 0 0 20px #00ff9d88, 0 0 40px #00ff9d44;
margin-bottom: 28px;
}
#screenshot {
width: 100%;
max-height: 420px;
object-fit: contain;
border: 2px solid #00ff9d44;
border-radius: 8px;
background: #0d1522;
box-shadow:
inset 0 0 30px #00ff9d11,
0 0 30px #00ff9d55,
0 0 60px #00ff9d22;
margin-bottom: 24px;
image-rendering: crisp-edges;
}
.input-row {
display: flex;
gap: 12px;
margin-bottom: 20px;
flex-wrap: wrap;
}
#cmd {
flex: 1;
min-width: 280px;
padding: 14px 18px;
font-family: 'Roboto Mono', monospace;
font-size: 1.05rem;
background: #0f1a2a;
color: #00ff9d;
border: 1px solid #00ff9d66;
border-radius: 6px;
outline: none;
box-shadow: 0 0 15px #00ff9d33 inset;
transition: all 0.2s;
}
#cmd:focus {
border-color: #00ff9d;
box-shadow: 0 0 25px #00ff9d66, 0 0 40px #00ff9d33;
}
button {
padding: 14px 22px;
font-family: 'Orbitron', sans-serif;
font-weight: 700;
font-size: 0.95rem;
letter-spacing: 1px;
background: transparent;
color: #00ff9d;
border: 2px solid #00ff9d88;
border-radius: 6px;
cursor: pointer;
transition: all 0.18s;
text-shadow: 0 0 10px currentColor;
}
button:hover {
background: #00ff9d22;
border-color: #00ff9d;
box-shadow: 0 0 25px #00ff9d88;
transform: translateY(-1px);
}
button:active {
transform: translateY(1px);
box-shadow: 0 0 15px #00ff9d44;
}
pre#console {
background: #0b1421;
color: #00ff9dcc;
font-family: 'Roboto Mono', monospace;
font-size: 0.96rem;
padding: 18px;
border: 1px solid #00ff9d33;
border-radius: 8px;
min-height: 240px;
max-height: 420px;
overflow-y: auto;
box-shadow: inset 0 0 30px #000000aa;
white-space: pre-wrap;
line-height: 1.45;
}
#guide {
margin-top: 28px;
background: rgba(0, 255, 157, 0.06);
border: 1px solid #00ff9d44;
border-radius: 8px;
padding: 18px 24px;
backdrop-filter: blur(4px);
}
#guide strong {
color: #00ff9d;
text-shadow: 0 0 12px currentColor;
display: block;
margin-bottom: 12px;
font-size: 1.1rem;
}
#guide code {
background: #00ff9d11;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid #00ff9d33;
}
.scanline {
position: fixed;
inset: 0;
pointer-events: none;
background: linear-gradient(
to bottom,
transparent 0%,
rgba(0,255,157,0.04) 50%,
transparent 100%
);
animation: scan 8s linear infinite;
opacity: 0.5;
}
@keyframes scan {
0% { transform: translateY(-100%); }
100% { transform: translateY(100%); }
}
</style>
</head>
<body>
<div class="cyber-ring"></div>
<div class="scanline"></div>
<div id="container">
<h1>CORTEX AUTOMATION GRID</h1>
<img id="screenshot" src="" alt="Target viewport" />
<div class="input-row">
<input id="cmd" placeholder="ENTER COMMAND → open | click | type | wait ..." autocomplete="off"/>
<button onclick="sendCmd()">EXECUTE</button>
<button onclick="newSession()">NEW SESSION</button>
<button onclick="saveProject()">SAVE PROJECT</button>
<button onclick="downloadLog()">EXPORT LOG</button>
</div>
<pre id="console">> CORTEX AUTO v0.8.1 ONLINE AWAITING COMMAND SEQUENCE...</pre>
<div id="guide">
<strong>NEURAL COMMAND SYNTAX:</strong>
<ul>
<li><code>open https://target.domain</code> — breach target node</li>
<li><code>click #node-id</code> / <code>click .element-class</code> — trigger interaction</li>
<li><code>type #input-field restricted payload</code> — inject sequence</li>
<li><code>wait 1.8</code> — temporal delay (seconds)</li>
<li><code>refresh</code> — force node refresh</li>
</ul>
</div>
</div>
<script>
let socket = io();
const consoleEl = document.getElementById("console");
socket.on("command_result", (data) => {
document.getElementById("screenshot").src = "data:image/png;base64," + data.screenshot;
const prefix = data.success ? "✔ " : "✖ ";
consoleEl.textContent += prefix + data.message + "\n";
consoleEl.scrollTop = consoleEl.scrollHeight;
});
function sendCmd() {
const cmd = document.getElementById("cmd").value.trim();
if (!cmd) return;
socket.emit("execute_command", { cmd });
document.getElementById("cmd").value = "";
}
function newSession() {
consoleEl.textContent += "> Initializing new grid instance...\n";
fetch("/save_project/temp_session") //... optional
}
function saveProject() {
const name = prompt("SAVE AS PROJECT DESIGNATION?");
if (!name) return;
fetch("/save_project/" + encodeURIComponent(name))
.then(r => r.json())
.then(d => {
consoleEl.textContent += d.message + "\n";
});
}
function downloadLog() {
fetch("/download_log")
.then(r => r.blob())
.then(blob => {
const url = window.URL.createObjectURL(blob);
const a = document.createElement("a");
a.href = url;
a.download = "neon-core_session_" + Date.now() + ".json";
document.body.appendChild(a);
a.click();
a.remove();
});
}
document.getElementById("cmd").addEventListener("keypress", e => {
if (e.key === "Enter") {
sendCmd();
}
});
</script>
</body>
</html>