-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (38 loc) · 1.34 KB
/
index.html
File metadata and controls
38 lines (38 loc) · 1.34 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
<!DOCTYPE html>
<html>
<head>
<title>Yocto Private Key Scanner</title>
<meta charset="UTF-8" />
<script>
async function scanKeys() {
const input = document.getElementById('keys').value.trim().split('\n');
const response = await fetch('/scan', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ keys: input })
});
const data = await response.json();
const resultDiv = document.getElementById('results');
resultDiv.innerHTML = '';
if (data.results) {
data.results.forEach(entry => {
if (entry.error) {
resultDiv.innerHTML += `<p style="color:red">❌ ${entry.key} → ${entry.error}</p>`;
} else {
resultDiv.innerHTML += `<p style="color:green">✅ ${entry.key} → ${entry.address}</p>`;
}
});
} else {
resultDiv.innerHTML = '<p style="color:red">Error occurred.</p>';
}
}
</script>
</head>
<body style="background:black;color:lime;font-family:monospace;padding:20px">
<h1>🔍 Yocto Bitcoin Private Key Scanner</h1>
<p>Masukkan 64-digit HEX Private Key (1 per baris):</p>
<textarea id="keys" rows="10" cols="70"></textarea><br><br>
<button onclick="scanKeys()">🔎 Pindai</button>
<div id="results" style="margin-top:20px;"></div>
</body>
</html>