Spaces:
Running
Running
Add 2 files
Browse files- README.md +7 -5
- index.html +677 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: red-teaming
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: gray
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,677 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>System Reconnaissance Tool</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@400;500;600&display=swap');
|
| 11 |
+
|
| 12 |
+
body {
|
| 13 |
+
font-family: 'Inter', sans-serif;
|
| 14 |
+
background-color: #0a0a0a;
|
| 15 |
+
color: #e5e7eb;
|
| 16 |
+
overflow-x: hidden;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.mono {
|
| 20 |
+
font-family: 'Fira Code', monospace;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
.scanlines {
|
| 24 |
+
position: fixed;
|
| 25 |
+
top: 0;
|
| 26 |
+
left: 0;
|
| 27 |
+
width: 100%;
|
| 28 |
+
height: 100%;
|
| 29 |
+
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
|
| 30 |
+
background-size: 100% 2px, 3px 100%;
|
| 31 |
+
pointer-events: none;
|
| 32 |
+
z-index: 9999;
|
| 33 |
+
opacity: 0.3;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
.glow {
|
| 37 |
+
box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.glow:hover {
|
| 41 |
+
box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
.data-card {
|
| 45 |
+
background: linear-gradient(145deg, #111827, #1f2937);
|
| 46 |
+
border: 1px solid #1e40af;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
.tab-active {
|
| 50 |
+
border-bottom: 2px solid #3b82f6;
|
| 51 |
+
color: #3b82f6;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
.hash-missing {
|
| 55 |
+
opacity: 0.5;
|
| 56 |
+
font-style: italic;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
.suspicious-item {
|
| 60 |
+
animation: pulse 2s infinite;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
@keyframes pulse {
|
| 64 |
+
0% { background-color: rgba(239, 68, 68, 0.1); }
|
| 65 |
+
50% { background-color: rgba(239, 68, 68, 0.3); }
|
| 66 |
+
100% { background-color: rgba(239, 68, 68, 0.1); }
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.copy-btn {
|
| 70 |
+
transition: all 0.2s ease;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.copy-btn:hover {
|
| 74 |
+
color: #3b82f6;
|
| 75 |
+
transform: scale(1.1);
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
.copy-btn:active {
|
| 79 |
+
transform: scale(0.95);
|
| 80 |
+
}
|
| 81 |
+
</style>
|
| 82 |
+
</head>
|
| 83 |
+
<body class="min-h-screen">
|
| 84 |
+
<div class="scanlines"></div>
|
| 85 |
+
|
| 86 |
+
<div class="container mx-auto px-4 py-8">
|
| 87 |
+
<!-- Header -->
|
| 88 |
+
<header class="flex justify-between items-center mb-8 border-b border-gray-800 pb-4">
|
| 89 |
+
<div class="flex items-center space-x-3">
|
| 90 |
+
<div class="w-10 h-10 rounded-full bg-blue-900 flex items-center justify-center">
|
| 91 |
+
<i class="fas fa-shield-alt text-blue-400 text-xl"></i>
|
| 92 |
+
</div>
|
| 93 |
+
<h1 class="text-2xl font-bold text-gray-100">System Reconnaissance Tool</h1>
|
| 94 |
+
</div>
|
| 95 |
+
<div class="flex items-center space-x-4">
|
| 96 |
+
<button id="refresh-btn" class="px-4 py-2 bg-blue-900 hover:bg-blue-800 text-blue-100 rounded-md flex items-center space-x-2 transition-colors">
|
| 97 |
+
<i class="fas fa-sync-alt"></i>
|
| 98 |
+
<span>Refresh</span>
|
| 99 |
+
</button>
|
| 100 |
+
<div class="text-sm text-gray-400">
|
| 101 |
+
<span id="last-updated">Last updated: Just now</span>
|
| 102 |
+
</div>
|
| 103 |
+
</div>
|
| 104 |
+
</header>
|
| 105 |
+
|
| 106 |
+
<!-- Overview Cards -->
|
| 107 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-8">
|
| 108 |
+
<div class="data-card rounded-lg p-4 shadow-lg">
|
| 109 |
+
<div class="flex justify-between items-start">
|
| 110 |
+
<div>
|
| 111 |
+
<h3 class="text-sm font-medium text-gray-400 mb-1">Operating System</h3>
|
| 112 |
+
<div class="flex items-center space-x-2">
|
| 113 |
+
<i id="os-icon" class="fab fa-windows text-blue-400"></i>
|
| 114 |
+
<p class="text-xl font-semibold text-gray-100"><span id="os-name">Windows</span> <span id="os-version" class="text-gray-400">11</span></p>
|
| 115 |
+
</div>
|
| 116 |
+
</div>
|
| 117 |
+
<div class="text-xs px-2 py-1 rounded bg-gray-800 text-gray-300">
|
| 118 |
+
Kernel: <span id="kernel-version" class="mono">10.0.22621</span>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
|
| 123 |
+
<div class="data-card rounded-lg p-4 shadow-lg">
|
| 124 |
+
<h3 class="text-sm font-medium text-gray-400 mb-1">System Identity</h3>
|
| 125 |
+
<div class="space-y-2">
|
| 126 |
+
<div class="flex items-center space-x-2">
|
| 127 |
+
<i class="fas fa-user text-blue-400"></i>
|
| 128 |
+
<p class="mono text-gray-100"><span id="username">CurrentUser</span>@<span id="hostname">TARGET-MACHINE</span></p>
|
| 129 |
+
</div>
|
| 130 |
+
<div class="flex items-center space-x-2">
|
| 131 |
+
<i class="fas fa-network-wired text-blue-400"></i>
|
| 132 |
+
<p class="mono text-gray-100"><span id="public-ip">198.51.100.1</span></p>
|
| 133 |
+
</div>
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
|
| 137 |
+
<div class="data-card rounded-lg p-4 shadow-lg">
|
| 138 |
+
<h3 class="text-sm font-medium text-gray-400 mb-1">Environment</h3>
|
| 139 |
+
<div class="space-y-2">
|
| 140 |
+
<div class="flex items-center space-x-2">
|
| 141 |
+
<i id="virtual-icon" class="fas fa-server text-green-400"></i>
|
| 142 |
+
<p class="text-gray-100">Virtual Machine: <span id="is-virtual" class="font-semibold">Yes</span></p>
|
| 143 |
+
</div>
|
| 144 |
+
<div class="flex items-center space-x-2">
|
| 145 |
+
<i id="internet-icon" class="fas fa-wifi text-green-400"></i>
|
| 146 |
+
<p class="text-gray-100">Internet Access: <span id="internet-access" class="font-semibold">Available</span></p>
|
| 147 |
+
</div>
|
| 148 |
+
</div>
|
| 149 |
+
</div>
|
| 150 |
+
|
| 151 |
+
<div class="data-card rounded-lg p-4 shadow-lg">
|
| 152 |
+
<h3 class="text-sm font-medium text-gray-400 mb-1">Threat Indicators</h3>
|
| 153 |
+
<div class="space-y-2">
|
| 154 |
+
<div class="flex items-center space-x-2">
|
| 155 |
+
<i class="fas fa-file-alt text-red-400"></i>
|
| 156 |
+
<p class="text-gray-100">Indicator Files: <span id="indicator-count" class="font-semibold">2</span></p>
|
| 157 |
+
</div>
|
| 158 |
+
<div class="flex items-center space-x-2">
|
| 159 |
+
<i class="fas fa-exclamation-triangle text-red-400"></i>
|
| 160 |
+
<p class="text-gray-100">Suspicious Services: <span id="service-count" class="font-semibold">2</span></p>
|
| 161 |
+
</div>
|
| 162 |
+
<div class="flex items-center space-x-2">
|
| 163 |
+
<i class="fas fa-microchip text-gray-400"></i>
|
| 164 |
+
<p class="text-gray-100">Processes: <span id="process-count" class="font-semibold">45</span></p>
|
| 165 |
+
</div>
|
| 166 |
+
</div>
|
| 167 |
+
</div>
|
| 168 |
+
</div>
|
| 169 |
+
|
| 170 |
+
<!-- Main Content Tabs -->
|
| 171 |
+
<div class="mb-6 border-b border-gray-800">
|
| 172 |
+
<div class="flex space-x-8">
|
| 173 |
+
<button data-tab="processes" class="tab-btn pb-2 font-medium text-gray-300 hover:text-blue-400 transition-colors tab-active">Processes</button>
|
| 174 |
+
<button data-tab="indicators" class="tab-btn pb-2 font-medium text-gray-300 hover:text-blue-400 transition-colors">Indicator Files</button>
|
| 175 |
+
<button data-tab="services" class="tab-btn pb-2 font-medium text-gray-300 hover:text-blue-400 transition-colors">Suspicious Services</button>
|
| 176 |
+
<button data-tab="raw" class="tab-btn pb-2 font-medium text-gray-300 hover:text-blue-400 transition-colors">Raw Data</button>
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
|
| 180 |
+
<!-- Tab Content -->
|
| 181 |
+
<div id="tab-content">
|
| 182 |
+
<!-- Processes Tab -->
|
| 183 |
+
<div id="processes-tab" class="tab-panel">
|
| 184 |
+
<div class="flex justify-between items-center mb-4">
|
| 185 |
+
<h2 class="text-xl font-semibold text-gray-100">Running Processes</h2>
|
| 186 |
+
<div class="relative">
|
| 187 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 188 |
+
<i class="fas fa-search text-gray-500"></i>
|
| 189 |
+
</div>
|
| 190 |
+
<input type="text" id="process-search" class="bg-gray-800 border border-gray-700 text-gray-200 rounded-md py-2 pl-10 pr-4 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500" placeholder="Filter processes...">
|
| 191 |
+
</div>
|
| 192 |
+
</div>
|
| 193 |
+
|
| 194 |
+
<div class="data-card rounded-lg p-4 shadow-lg">
|
| 195 |
+
<div class="overflow-x-auto">
|
| 196 |
+
<table class="min-w-full divide-y divide-gray-700">
|
| 197 |
+
<thead>
|
| 198 |
+
<tr>
|
| 199 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Process Name</th>
|
| 200 |
+
<th class="px-4 py-3 text-right text-xs font-medium text-gray-400 uppercase tracking-wider">Actions</th>
|
| 201 |
+
</tr>
|
| 202 |
+
</thead>
|
| 203 |
+
<tbody id="process-list" class="divide-y divide-gray-800">
|
| 204 |
+
<!-- Process items will be inserted here by JavaScript -->
|
| 205 |
+
</tbody>
|
| 206 |
+
</table>
|
| 207 |
+
</div>
|
| 208 |
+
</div>
|
| 209 |
+
</div>
|
| 210 |
+
|
| 211 |
+
<!-- Indicator Files Tab -->
|
| 212 |
+
<div id="indicators-tab" class="tab-panel hidden">
|
| 213 |
+
<div class="flex justify-between items-center mb-4">
|
| 214 |
+
<h2 class="text-xl font-semibold text-gray-100">Indicator Files</h2>
|
| 215 |
+
<div class="flex space-x-2">
|
| 216 |
+
<button id="copy-all-indicators" class="px-3 py-1 bg-gray-800 hover:bg-gray-700 text-gray-300 rounded-md text-sm flex items-center space-x-1 transition-colors">
|
| 217 |
+
<i class="fas fa-copy"></i>
|
| 218 |
+
<span>Copy All</span>
|
| 219 |
+
</button>
|
| 220 |
+
<div class="relative">
|
| 221 |
+
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 222 |
+
<i class="fas fa-search text-gray-500"></i>
|
| 223 |
+
</div>
|
| 224 |
+
<input type="text" id="indicator-search" class="bg-gray-800 border border-gray-700 text-gray-200 rounded-md py-2 pl-10 pr-4 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500" placeholder="Filter files...">
|
| 225 |
+
</div>
|
| 226 |
+
</div>
|
| 227 |
+
</div>
|
| 228 |
+
|
| 229 |
+
<div class="data-card rounded-lg p-4 shadow-lg">
|
| 230 |
+
<div class="overflow-x-auto">
|
| 231 |
+
<table class="min-w-full divide-y divide-gray-700">
|
| 232 |
+
<thead>
|
| 233 |
+
<tr>
|
| 234 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Path</th>
|
| 235 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">SHA-256 Hash</th>
|
| 236 |
+
<th class="px-4 py-3 text-right text-xs font-medium text-gray-400 uppercase tracking-wider">Actions</th>
|
| 237 |
+
</tr>
|
| 238 |
+
</thead>
|
| 239 |
+
<tbody id="indicator-list" class="divide-y divide-gray-800">
|
| 240 |
+
<!-- Indicator files will be inserted here by JavaScript -->
|
| 241 |
+
</tbody>
|
| 242 |
+
</table>
|
| 243 |
+
</div>
|
| 244 |
+
</div>
|
| 245 |
+
</div>
|
| 246 |
+
|
| 247 |
+
<!-- Suspicious Services Tab -->
|
| 248 |
+
<div id="services-tab" class="tab-panel hidden">
|
| 249 |
+
<div class="flex justify-between items-center mb-4">
|
| 250 |
+
<h2 class="text-xl font-semibold text-gray-100">Suspicious Services</h2>
|
| 251 |
+
<div class="flex space-x-2">
|
| 252 |
+
<button id="copy-all-services" class="px-3 py-1 bg-gray-800 hover:bg-gray-700 text-gray-300 rounded-md text-sm flex items-center space-x-1 transition-colors">
|
| 253 |
+
<i class="fas fa-copy"></i>
|
| 254 |
+
<span>Copy All</span>
|
| 255 |
+
</button>
|
| 256 |
+
</div>
|
| 257 |
+
</div>
|
| 258 |
+
|
| 259 |
+
<div class="data-card rounded-lg p-4 shadow-lg">
|
| 260 |
+
<div class="overflow-x-auto">
|
| 261 |
+
<table class="min-w-full divide-y divide-gray-700">
|
| 262 |
+
<thead>
|
| 263 |
+
<tr>
|
| 264 |
+
<th class="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">Service Name</th>
|
| 265 |
+
<th class="px-4 py-3 text-right text-xs font-medium text-gray-400 uppercase tracking-wider">Actions</th>
|
| 266 |
+
</tr>
|
| 267 |
+
</thead>
|
| 268 |
+
<tbody id="service-list" class="divide-y divide-gray-800">
|
| 269 |
+
<!-- Suspicious services will be inserted here by JavaScript -->
|
| 270 |
+
</tbody>
|
| 271 |
+
</table>
|
| 272 |
+
</div>
|
| 273 |
+
</div>
|
| 274 |
+
</div>
|
| 275 |
+
|
| 276 |
+
<!-- Raw Data Tab -->
|
| 277 |
+
<div id="raw-tab" class="tab-panel hidden">
|
| 278 |
+
<div class="flex justify-between items-center mb-4">
|
| 279 |
+
<h2 class="text-xl font-semibold text-gray-100">Raw System Data</h2>
|
| 280 |
+
<button id="copy-raw" class="px-3 py-1 bg-gray-800 hover:bg-gray-700 text-gray-300 rounded-md text-sm flex items-center space-x-1 transition-colors">
|
| 281 |
+
<i class="fas fa-copy"></i>
|
| 282 |
+
<span>Copy JSON</span>
|
| 283 |
+
</button>
|
| 284 |
+
</div>
|
| 285 |
+
|
| 286 |
+
<div class="data-card rounded-lg p-4 shadow-lg">
|
| 287 |
+
<pre id="raw-data" class="mono text-sm text-gray-300 overflow-x-auto p-4 bg-gray-900 rounded-md"></pre>
|
| 288 |
+
</div>
|
| 289 |
+
</div>
|
| 290 |
+
</div>
|
| 291 |
+
|
| 292 |
+
<!-- Footer -->
|
| 293 |
+
<footer class="mt-8 pt-4 border-t border-gray-800 text-sm text-gray-500">
|
| 294 |
+
<div class="flex justify-between items-center">
|
| 295 |
+
<div>
|
| 296 |
+
<span>System Reconnaissance Tool v1.0.0</span>
|
| 297 |
+
<span class="mx-2">•</span>
|
| 298 |
+
<span>Data source: <span class="text-blue-400">Live Scan</span></span>
|
| 299 |
+
</div>
|
| 300 |
+
<div>
|
| 301 |
+
<span>Powered by Rust</span>
|
| 302 |
+
<span class="mx-2">•</span>
|
| 303 |
+
<span>UI built with TailwindCSS</span>
|
| 304 |
+
</div>
|
| 305 |
+
</div>
|
| 306 |
+
</footer>
|
| 307 |
+
</div>
|
| 308 |
+
|
| 309 |
+
<script>
|
| 310 |
+
// Sample data - in a real app this would come from the Rust backend
|
| 311 |
+
const systemData = {
|
| 312 |
+
"os_name": "Windows",
|
| 313 |
+
"os_version": "11",
|
| 314 |
+
"kernel_version": "10.0.22621",
|
| 315 |
+
"username": "CurrentUser",
|
| 316 |
+
"hostname": "TARGET-MACHINE",
|
| 317 |
+
"public_ip": "198.51.100.1",
|
| 318 |
+
"is_virtual": true,
|
| 319 |
+
"processes": [
|
| 320 |
+
"System",
|
| 321 |
+
"smss.exe",
|
| 322 |
+
"csrss.exe",
|
| 323 |
+
"wininit.exe",
|
| 324 |
+
"services.exe",
|
| 325 |
+
"lsass.exe",
|
| 326 |
+
"svchost.exe",
|
| 327 |
+
"svchost.exe",
|
| 328 |
+
"svchost.exe",
|
| 329 |
+
"svchost.exe",
|
| 330 |
+
"svchost.exe",
|
| 331 |
+
"svchost.exe",
|
| 332 |
+
"svchost.exe",
|
| 333 |
+
"spoolsv.exe",
|
| 334 |
+
"taskhostw.exe",
|
| 335 |
+
"dwm.exe",
|
| 336 |
+
"explorer.exe",
|
| 337 |
+
"SearchIndexer.exe",
|
| 338 |
+
"chrome.exe",
|
| 339 |
+
"chrome.exe",
|
| 340 |
+
"chrome.exe",
|
| 341 |
+
"chrome.exe",
|
| 342 |
+
"chrome.exe",
|
| 343 |
+
"Code.exe",
|
| 344 |
+
"Code.exe",
|
| 345 |
+
"Code.exe",
|
| 346 |
+
"Code.exe",
|
| 347 |
+
"Code.exe",
|
| 348 |
+
"Code.exe",
|
| 349 |
+
"node.exe",
|
| 350 |
+
"conhost.exe",
|
| 351 |
+
"powershell.exe",
|
| 352 |
+
"WmiPrvSE.exe",
|
| 353 |
+
"dllhost.exe",
|
| 354 |
+
"MsMpEng.exe",
|
| 355 |
+
"NisSrv.exe",
|
| 356 |
+
"CSFalconService.exe",
|
| 357 |
+
"MsSense.exe"
|
| 358 |
+
],
|
| 359 |
+
"internet_access_dns": true,
|
| 360 |
+
"indicator_files": [
|
| 361 |
+
{
|
| 362 |
+
"path": "C:\\Program Files\\Windows Defender\\MsMpEng.exe",
|
| 363 |
+
"sha256_hash": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2"
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"path": "C:\\Program Files\\CrowdStrike\\CSFalconService.exe",
|
| 367 |
+
"sha256_hash": "e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6"
|
| 368 |
+
},
|
| 369 |
+
{
|
| 370 |
+
"path": "C:\\Windows\\System32\\suspicious.dll",
|
| 371 |
+
"sha256_hash": null
|
| 372 |
+
}
|
| 373 |
+
],
|
| 374 |
+
"suspicious_services_running": [
|
| 375 |
+
"MsMpEng",
|
| 376 |
+
"CSFalconService",
|
| 377 |
+
"MsSense"
|
| 378 |
+
]
|
| 379 |
+
};
|
| 380 |
+
|
| 381 |
+
// DOM elements
|
| 382 |
+
const tabButtons = document.querySelectorAll('.tab-btn');
|
| 383 |
+
const tabPanels = document.querySelectorAll('.tab-panel');
|
| 384 |
+
const processList = document.getElementById('process-list');
|
| 385 |
+
const indicatorList = document.getElementById('indicator-list');
|
| 386 |
+
const serviceList = document.getElementById('service-list');
|
| 387 |
+
const rawDataElement = document.getElementById('raw-data');
|
| 388 |
+
const processSearch = document.getElementById('process-search');
|
| 389 |
+
const indicatorSearch = document.getElementById('indicator-search');
|
| 390 |
+
const refreshBtn = document.getElementById('refresh-btn');
|
| 391 |
+
const copyAllIndicatorsBtn = document.getElementById('copy-all-indicators');
|
| 392 |
+
const copyAllServicesBtn = document.getElementById('copy-all-services');
|
| 393 |
+
const copyRawBtn = document.getElementById('copy-raw');
|
| 394 |
+
const lastUpdatedElement = document.getElementById('last-updated');
|
| 395 |
+
|
| 396 |
+
// Initialize the UI with data
|
| 397 |
+
function initUI() {
|
| 398 |
+
// Update overview cards
|
| 399 |
+
document.getElementById('os-name').textContent = systemData.os_name;
|
| 400 |
+
document.getElementById('os-version').textContent = systemData.os_version;
|
| 401 |
+
document.getElementById('kernel-version').textContent = systemData.kernel_version;
|
| 402 |
+
document.getElementById('username').textContent = systemData.username;
|
| 403 |
+
document.getElementById('hostname').textContent = systemData.hostname;
|
| 404 |
+
document.getElementById('public-ip').textContent = systemData.public_ip;
|
| 405 |
+
document.getElementById('is-virtual').textContent = systemData.is_virtual ? 'Yes' : 'No';
|
| 406 |
+
document.getElementById('internet-access').textContent = systemData.internet_access_dns ? 'Available' : 'Unavailable';
|
| 407 |
+
document.getElementById('process-count').textContent = systemData.processes.length;
|
| 408 |
+
document.getElementById('indicator-count').textContent = systemData.indicator_files.length;
|
| 409 |
+
document.getElementById('service-count').textContent = systemData.suspicious_services_running.length;
|
| 410 |
+
|
| 411 |
+
// Set OS icon
|
| 412 |
+
const osIcon = document.getElementById('os-icon');
|
| 413 |
+
if (systemData.os_name.includes('Windows')) {
|
| 414 |
+
osIcon.className = 'fab fa-windows text-blue-400';
|
| 415 |
+
} else if (systemData.os_name.includes('macOS') || systemData.os_name.includes('Mac')) {
|
| 416 |
+
osIcon.className = 'fab fa-apple text-gray-400';
|
| 417 |
+
} else if (systemData.os_name.includes('Ubuntu') || systemData.os_name.includes('Linux')) {
|
| 418 |
+
osIcon.className = 'fab fa-linux text-orange-400';
|
| 419 |
+
}
|
| 420 |
+
|
| 421 |
+
// Set virtual machine icon
|
| 422 |
+
const virtualIcon = document.getElementById('virtual-icon');
|
| 423 |
+
if (systemData.is_virtual) {
|
| 424 |
+
virtualIcon.className = 'fas fa-server text-purple-400';
|
| 425 |
+
} else {
|
| 426 |
+
virtualIcon.className = 'fas fa-server text-green-400';
|
| 427 |
+
}
|
| 428 |
+
|
| 429 |
+
// Set internet access icon
|
| 430 |
+
const internetIcon = document.getElementById('internet-icon');
|
| 431 |
+
if (systemData.internet_access_dns) {
|
| 432 |
+
internetIcon.className = 'fas fa-wifi text-green-400';
|
| 433 |
+
} else {
|
| 434 |
+
internetIcon.className = 'fas fa-wifi-slash text-red-400';
|
| 435 |
+
}
|
| 436 |
+
|
| 437 |
+
// Render processes
|
| 438 |
+
renderProcesses(systemData.processes);
|
| 439 |
+
|
| 440 |
+
// Render indicator files
|
| 441 |
+
renderIndicatorFiles(systemData.indicator_files);
|
| 442 |
+
|
| 443 |
+
// Render suspicious services
|
| 444 |
+
renderSuspiciousServices(systemData.suspicious_services_running);
|
| 445 |
+
|
| 446 |
+
// Render raw data
|
| 447 |
+
rawDataElement.textContent = JSON.stringify(systemData, null, 2);
|
| 448 |
+
|
| 449 |
+
// Update last updated time
|
| 450 |
+
updateLastUpdated();
|
| 451 |
+
}
|
| 452 |
+
|
| 453 |
+
// Render processes list
|
| 454 |
+
function renderProcesses(processes) {
|
| 455 |
+
processList.innerHTML = '';
|
| 456 |
+
|
| 457 |
+
processes.forEach(process => {
|
| 458 |
+
const row = document.createElement('tr');
|
| 459 |
+
row.className = 'hover:bg-gray-800';
|
| 460 |
+
|
| 461 |
+
row.innerHTML = `
|
| 462 |
+
<td class="px-4 py-3 whitespace-nowrap mono">${process}</td>
|
| 463 |
+
<td class="px-4 py-3 whitespace-nowrap text-right">
|
| 464 |
+
<button class="copy-btn text-gray-500 hover:text-blue-400" data-value="${process}">
|
| 465 |
+
<i class="fas fa-copy"></i>
|
| 466 |
+
</button>
|
| 467 |
+
</td>
|
| 468 |
+
`;
|
| 469 |
+
|
| 470 |
+
processList.appendChild(row);
|
| 471 |
+
});
|
| 472 |
+
|
| 473 |
+
// Add copy functionality
|
| 474 |
+
document.querySelectorAll('#process-list .copy-btn').forEach(btn => {
|
| 475 |
+
btn.addEventListener('click', () => {
|
| 476 |
+
const text = btn.getAttribute('data-value');
|
| 477 |
+
navigator.clipboard.writeText(text);
|
| 478 |
+
|
| 479 |
+
// Show feedback
|
| 480 |
+
const icon = btn.querySelector('i');
|
| 481 |
+
icon.className = 'fas fa-check text-green-400';
|
| 482 |
+
setTimeout(() => {
|
| 483 |
+
icon.className = 'fas fa-copy';
|
| 484 |
+
}, 1000);
|
| 485 |
+
});
|
| 486 |
+
});
|
| 487 |
+
}
|
| 488 |
+
|
| 489 |
+
// Render indicator files list
|
| 490 |
+
function renderIndicatorFiles(files) {
|
| 491 |
+
indicatorList.innerHTML = '';
|
| 492 |
+
|
| 493 |
+
files.forEach(file => {
|
| 494 |
+
const row = document.createElement('tr');
|
| 495 |
+
row.className = 'hover:bg-gray-800';
|
| 496 |
+
|
| 497 |
+
const hashClass = file.sha256_hash ? '' : 'hash-missing';
|
| 498 |
+
|
| 499 |
+
row.innerHTML = `
|
| 500 |
+
<td class="px-4 py-3 whitespace-nowrap mono">${file.path}</td>
|
| 501 |
+
<td class="px-4 py-3 whitespace-nowrap mono ${hashClass}">${file.sha256_hash || 'Hash not available'}</td>
|
| 502 |
+
<td class="px-4 py-3 whitespace-nowrap text-right">
|
| 503 |
+
<button class="copy-btn text-gray-500 hover:text-blue-400 mr-2" data-value="${file.path}">
|
| 504 |
+
<i class="fas fa-copy"></i>
|
| 505 |
+
</button>
|
| 506 |
+
${file.sha256_hash ? `
|
| 507 |
+
<button class="copy-btn text-gray-500 hover:text-blue-400" data-value="${file.sha256_hash}">
|
| 508 |
+
<i class="fas fa-copy"></i>
|
| 509 |
+
</button>
|
| 510 |
+
` : ''}
|
| 511 |
+
</td>
|
| 512 |
+
`;
|
| 513 |
+
|
| 514 |
+
indicatorList.appendChild(row);
|
| 515 |
+
});
|
| 516 |
+
|
| 517 |
+
// Add copy functionality
|
| 518 |
+
document.querySelectorAll('#indicator-list .copy-btn').forEach(btn => {
|
| 519 |
+
btn.addEventListener('click', () => {
|
| 520 |
+
const text = btn.getAttribute('data-value');
|
| 521 |
+
navigator.clipboard.writeText(text);
|
| 522 |
+
|
| 523 |
+
// Show feedback
|
| 524 |
+
const icon = btn.querySelector('i');
|
| 525 |
+
icon.className = 'fas fa-check text-green-400';
|
| 526 |
+
setTimeout(() => {
|
| 527 |
+
icon.className = 'fas fa-copy';
|
| 528 |
+
}, 1000);
|
| 529 |
+
});
|
| 530 |
+
});
|
| 531 |
+
}
|
| 532 |
+
|
| 533 |
+
// Render suspicious services list
|
| 534 |
+
function renderSuspiciousServices(services) {
|
| 535 |
+
serviceList.innerHTML = '';
|
| 536 |
+
|
| 537 |
+
services.forEach(service => {
|
| 538 |
+
const row = document.createElement('tr');
|
| 539 |
+
row.className = 'hover:bg-gray-800 suspicious-item';
|
| 540 |
+
|
| 541 |
+
row.innerHTML = `
|
| 542 |
+
<td class="px-4 py-3 whitespace-nowrap mono">
|
| 543 |
+
<i class="fas fa-exclamation-triangle text-red-400 mr-2"></i>
|
| 544 |
+
${service}
|
| 545 |
+
</td>
|
| 546 |
+
<td class="px-4 py-3 whitespace-nowrap text-right">
|
| 547 |
+
<button class="copy-btn text-gray-500 hover:text-blue-400" data-value="${service}">
|
| 548 |
+
<i class="fas fa-copy"></i>
|
| 549 |
+
</button>
|
| 550 |
+
</td>
|
| 551 |
+
`;
|
| 552 |
+
|
| 553 |
+
serviceList.appendChild(row);
|
| 554 |
+
});
|
| 555 |
+
|
| 556 |
+
// Add copy functionality
|
| 557 |
+
document.querySelectorAll('#service-list .copy-btn').forEach(btn => {
|
| 558 |
+
btn.addEventListener('click', () => {
|
| 559 |
+
const text = btn.getAttribute('data-value');
|
| 560 |
+
navigator.clipboard.writeText(text);
|
| 561 |
+
|
| 562 |
+
// Show feedback
|
| 563 |
+
const icon = btn.querySelector('i');
|
| 564 |
+
icon.className = 'fas fa-check text-green-400';
|
| 565 |
+
setTimeout(() => {
|
| 566 |
+
icon.className = 'fas fa-copy';
|
| 567 |
+
}, 1000);
|
| 568 |
+
});
|
| 569 |
+
});
|
| 570 |
+
}
|
| 571 |
+
|
| 572 |
+
// Update last updated time
|
| 573 |
+
function updateLastUpdated() {
|
| 574 |
+
const now = new Date();
|
| 575 |
+
const timeString = now.toLocaleTimeString();
|
| 576 |
+
const dateString = now.toLocaleDateString();
|
| 577 |
+
lastUpdatedElement.textContent = `Last updated: ${dateString} ${timeString}`;
|
| 578 |
+
}
|
| 579 |
+
|
| 580 |
+
// Tab switching
|
| 581 |
+
tabButtons.forEach(button => {
|
| 582 |
+
button.addEventListener('click', () => {
|
| 583 |
+
// Remove active class from all buttons
|
| 584 |
+
tabButtons.forEach(btn => btn.classList.remove('tab-active'));
|
| 585 |
+
|
| 586 |
+
// Add active class to clicked button
|
| 587 |
+
button.classList.add('tab-active');
|
| 588 |
+
|
| 589 |
+
// Hide all panels
|
| 590 |
+
tabPanels.forEach(panel => panel.classList.add('hidden'));
|
| 591 |
+
|
| 592 |
+
// Show the corresponding panel
|
| 593 |
+
const tabName = button.getAttribute('data-tab');
|
| 594 |
+
document.getElementById(`${tabName}-tab`).classList.remove('hidden');
|
| 595 |
+
});
|
| 596 |
+
});
|
| 597 |
+
|
| 598 |
+
// Process search functionality
|
| 599 |
+
processSearch.addEventListener('input', () => {
|
| 600 |
+
const searchTerm = processSearch.value.toLowerCase();
|
| 601 |
+
const filteredProcesses = systemData.processes.filter(process =>
|
| 602 |
+
process.toLowerCase().includes(searchTerm)
|
| 603 |
+
);
|
| 604 |
+
renderProcesses(filteredProcesses);
|
| 605 |
+
});
|
| 606 |
+
|
| 607 |
+
// Indicator search functionality
|
| 608 |
+
indicatorSearch.addEventListener('input', () => {
|
| 609 |
+
const searchTerm = indicatorSearch.value.toLowerCase();
|
| 610 |
+
const filteredIndicators = systemData.indicator_files.filter(file =>
|
| 611 |
+
file.path.toLowerCase().includes(searchTerm) ||
|
| 612 |
+
(file.sha256_hash && file.sha256_hash.toLowerCase().includes(searchTerm))
|
| 613 |
+
);
|
| 614 |
+
renderIndicatorFiles(filteredIndicators);
|
| 615 |
+
});
|
| 616 |
+
|
| 617 |
+
// Copy all indicators
|
| 618 |
+
copyAllIndicatorsBtn.addEventListener('click', () => {
|
| 619 |
+
const allIndicators = systemData.indicator_files.map(file =>
|
| 620 |
+
`${file.path}${file.sha256_hash ? ` | ${file.sha256_hash}` : ''}`
|
| 621 |
+
).join('\n');
|
| 622 |
+
|
| 623 |
+
navigator.clipboard.writeText(allIndicators);
|
| 624 |
+
|
| 625 |
+
// Show feedback
|
| 626 |
+
const icon = copyAllIndicatorsBtn.querySelector('i');
|
| 627 |
+
copyAllIndicatorsBtn.innerHTML = '<i class="fas fa-check text-green-400"></i> <span>Copied!</span>';
|
| 628 |
+
setTimeout(() => {
|
| 629 |
+
copyAllIndicatorsBtn.innerHTML = '<i class="fas fa-copy"></i> <span>Copy All</span>';
|
| 630 |
+
}, 1000);
|
| 631 |
+
});
|
| 632 |
+
|
| 633 |
+
// Copy all services
|
| 634 |
+
copyAllServicesBtn.addEventListener('click', () => {
|
| 635 |
+
const allServices = systemData.suspicious_services_running.join('\n');
|
| 636 |
+
navigator.clipboard.writeText(allServices);
|
| 637 |
+
|
| 638 |
+
// Show feedback
|
| 639 |
+
const icon = copyAllServicesBtn.querySelector('i');
|
| 640 |
+
copyAllServicesBtn.innerHTML = '<i class="fas fa-check text-green-400"></i> <span>Copied!</span>';
|
| 641 |
+
setTimeout(() => {
|
| 642 |
+
copyAllServicesBtn.innerHTML = '<i class="fas fa-copy"></i> <span>Copy All</span>';
|
| 643 |
+
}, 1000);
|
| 644 |
+
});
|
| 645 |
+
|
| 646 |
+
// Copy raw data
|
| 647 |
+
copyRawBtn.addEventListener('click', () => {
|
| 648 |
+
navigator.clipboard.writeText(JSON.stringify(systemData, null, 2));
|
| 649 |
+
|
| 650 |
+
// Show feedback
|
| 651 |
+
const icon = copyRawBtn.querySelector('i');
|
| 652 |
+
copyRawBtn.innerHTML = '<i class="fas fa-check text-green-400"></i> <span>Copied!</span>';
|
| 653 |
+
setTimeout(() => {
|
| 654 |
+
copyRawBtn.innerHTML = '<i class="fas fa-copy"></i> <span>Copy JSON</span>';
|
| 655 |
+
}, 1000);
|
| 656 |
+
});
|
| 657 |
+
|
| 658 |
+
// Refresh button
|
| 659 |
+
refreshBtn.addEventListener('click', () => {
|
| 660 |
+
// In a real app, this would fetch new data from the backend
|
| 661 |
+
// For this demo, we'll just update the timestamp
|
| 662 |
+
updateLastUpdated();
|
| 663 |
+
|
| 664 |
+
// Show loading state
|
| 665 |
+
const icon = refreshBtn.querySelector('i');
|
| 666 |
+
icon.className = 'fas fa-circle-notch fa-spin';
|
| 667 |
+
|
| 668 |
+
setTimeout(() => {
|
| 669 |
+
icon.className = 'fas fa-sync-alt';
|
| 670 |
+
}, 1000);
|
| 671 |
+
});
|
| 672 |
+
|
| 673 |
+
// Initialize the UI
|
| 674 |
+
initUI();
|
| 675 |
+
</script>
|
| 676 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=rahpi/red-teaming" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 677 |
+
</html>
|