Add 3 files
Browse files- README.md +7 -5
- index.html +508 -19
- prompts.txt +1 -0
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: ecta
|
| 3 |
+
emoji: 🐳
|
| 4 |
+
colorFrom: green
|
| 5 |
+
colorTo: blue
|
| 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,508 @@
|
|
| 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>Automation Workflow Dashboard</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 |
+
@keyframes pulse {
|
| 11 |
+
0%, 100% { opacity: 1; }
|
| 12 |
+
50% { opacity: 0.5; }
|
| 13 |
+
}
|
| 14 |
+
.animate-pulse {
|
| 15 |
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
| 16 |
+
}
|
| 17 |
+
.workflow-card:hover {
|
| 18 |
+
transform: translateY(-5px);
|
| 19 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
| 20 |
+
}
|
| 21 |
+
.workflow-card {
|
| 22 |
+
transition: all 0.3s ease;
|
| 23 |
+
}
|
| 24 |
+
.log-entry {
|
| 25 |
+
border-left: 3px solid #3b82f6;
|
| 26 |
+
}
|
| 27 |
+
.log-entry.error {
|
| 28 |
+
border-left: 3px solid #ef4444;
|
| 29 |
+
}
|
| 30 |
+
.log-entry.success {
|
| 31 |
+
border-left: 3px solid #10b981;
|
| 32 |
+
}
|
| 33 |
+
.log-entry.warning {
|
| 34 |
+
border-left: 3px solid #f59e0b;
|
| 35 |
+
}
|
| 36 |
+
</style>
|
| 37 |
+
</head>
|
| 38 |
+
<body class="bg-gray-50">
|
| 39 |
+
<div class="min-h-screen">
|
| 40 |
+
<!-- Header -->
|
| 41 |
+
<header class="bg-white shadow-sm">
|
| 42 |
+
<div class="max-w-7xl mx-auto px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center">
|
| 43 |
+
<div class="flex items-center space-x-4">
|
| 44 |
+
<div class="bg-blue-600 p-2 rounded-lg">
|
| 45 |
+
<i class="fas fa-robot text-white text-2xl"></i>
|
| 46 |
+
</div>
|
| 47 |
+
<h1 class="text-2xl font-bold text-gray-900">Automation Workflow Dashboard</h1>
|
| 48 |
+
</div>
|
| 49 |
+
<div class="flex items-center space-x-4">
|
| 50 |
+
<div class="relative">
|
| 51 |
+
<div class="flex items-center space-x-2">
|
| 52 |
+
<span class="h-3 w-3 rounded-full bg-green-500 animate-pulse"></span>
|
| 53 |
+
<span class="text-sm font-medium text-gray-700">Running</span>
|
| 54 |
+
</div>
|
| 55 |
+
</div>
|
| 56 |
+
<button class="bg-gray-100 hover:bg-gray-200 px-4 py-2 rounded-lg text-sm font-medium text-gray-700 transition">
|
| 57 |
+
<i class="fas fa-cog mr-2"></i>Settings
|
| 58 |
+
</button>
|
| 59 |
+
</div>
|
| 60 |
+
</div>
|
| 61 |
+
</header>
|
| 62 |
+
|
| 63 |
+
<!-- Main Content -->
|
| 64 |
+
<main class="max-w-7xl mx-auto px-4 py-6 sm:px-6 lg:px-8">
|
| 65 |
+
<!-- Stats Overview -->
|
| 66 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
|
| 67 |
+
<div class="bg-white p-6 rounded-lg shadow">
|
| 68 |
+
<div class="flex items-center justify-between">
|
| 69 |
+
<div>
|
| 70 |
+
<p class="text-sm font-medium text-gray-500">Processed Today</p>
|
| 71 |
+
<p class="mt-1 text-3xl font-semibold text-gray-900">24</p>
|
| 72 |
+
</div>
|
| 73 |
+
<div class="bg-blue-100 p-3 rounded-full">
|
| 74 |
+
<i class="fas fa-envelope-open-text text-blue-600"></i>
|
| 75 |
+
</div>
|
| 76 |
+
</div>
|
| 77 |
+
</div>
|
| 78 |
+
<div class="bg-white p-6 rounded-lg shadow">
|
| 79 |
+
<div class="flex items-center justify-between">
|
| 80 |
+
<div>
|
| 81 |
+
<p class="text-sm font-medium text-gray-500">Password Resets</p>
|
| 82 |
+
<p class="mt-1 text-3xl font-semibold text-gray-900">15</p>
|
| 83 |
+
</div>
|
| 84 |
+
<div class="bg-green-100 p-3 rounded-full">
|
| 85 |
+
<i class="fas fa-key text-green-600"></i>
|
| 86 |
+
</div>
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
<div class="bg-white p-6 rounded-lg shadow">
|
| 90 |
+
<div class="flex items-center justify-between">
|
| 91 |
+
<div>
|
| 92 |
+
<p class="text-sm font-medium text-gray-500">SIP Changes</p>
|
| 93 |
+
<p class="mt-1 text-3xl font-semibold text-gray-900">9</p>
|
| 94 |
+
</div>
|
| 95 |
+
<div class="bg-purple-100 p-3 rounded-full">
|
| 96 |
+
<i class="fas fa-ethernet text-purple-600"></i>
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
</div>
|
| 100 |
+
<div class="bg-white p-6 rounded-lg shadow">
|
| 101 |
+
<div class="flex items-center justify-between">
|
| 102 |
+
<div>
|
| 103 |
+
<p class="text-sm font-medium text-gray-500">Errors</p>
|
| 104 |
+
<p class="mt-1 text-3xl font-semibold text-gray-900">2</p>
|
| 105 |
+
</div>
|
| 106 |
+
<div class="bg-red-100 p-3 rounded-full">
|
| 107 |
+
<i class="fas fa-exclamation-triangle text-red-600"></i>
|
| 108 |
+
</div>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
|
| 113 |
+
<!-- Workflow Cards -->
|
| 114 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
|
| 115 |
+
<!-- Email Listener Card -->
|
| 116 |
+
<div class="workflow-card bg-white rounded-lg shadow overflow-hidden">
|
| 117 |
+
<div class="bg-blue-600 px-4 py-3 flex items-center">
|
| 118 |
+
<i class="fas fa-envelope text-white mr-3"></i>
|
| 119 |
+
<h3 class="text-lg font-medium text-white">Email Listener</h3>
|
| 120 |
+
</div>
|
| 121 |
+
<div class="p-6">
|
| 122 |
+
<div class="flex items-center mb-4">
|
| 123 |
+
<div class="flex-1">
|
| 124 |
+
<p class="text-sm text-gray-500">Status</p>
|
| 125 |
+
<p class="font-medium">Active</p>
|
| 126 |
+
</div>
|
| 127 |
+
<div class="flex-1">
|
| 128 |
+
<p class="text-sm text-gray-500">Protocol</p>
|
| 129 |
+
<p class="font-medium">IMAP</p>
|
| 130 |
+
</div>
|
| 131 |
+
</div>
|
| 132 |
+
<div class="space-y-3">
|
| 133 |
+
<div class="flex items-center">
|
| 134 |
+
<div class="w-2 h-2 bg-blue-500 rounded-full mr-2"></div>
|
| 135 |
+
<p class="text-sm">Monitoring: support@company.com</p>
|
| 136 |
+
</div>
|
| 137 |
+
<div class="flex items-center">
|
| 138 |
+
<div class="w-2 h-2 bg-blue-500 rounded-full mr-2"></div>
|
| 139 |
+
<p class="text-sm">Triggers: "Reset" or "IP 192.168."</p>
|
| 140 |
+
</div>
|
| 141 |
+
</div>
|
| 142 |
+
<div class="mt-6 pt-4 border-t border-gray-200">
|
| 143 |
+
<button class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md transition">
|
| 144 |
+
<i class="fas fa-sync-alt mr-2"></i>Test Connection
|
| 145 |
+
</button>
|
| 146 |
+
</div>
|
| 147 |
+
</div>
|
| 148 |
+
</div>
|
| 149 |
+
|
| 150 |
+
<!-- Password Reset Workflow Card -->
|
| 151 |
+
<div class="workflow-card bg-white rounded-lg shadow overflow-hidden">
|
| 152 |
+
<div class="bg-green-600 px-4 py-3 flex items-center">
|
| 153 |
+
<i class="fas fa-key text-white mr-3"></i>
|
| 154 |
+
<h3 class="text-lg font-medium text-white">Password Reset</h3>
|
| 155 |
+
</div>
|
| 156 |
+
<div class="p-6">
|
| 157 |
+
<div class="flex items-center mb-4">
|
| 158 |
+
<div class="flex-1">
|
| 159 |
+
<p class="text-sm text-gray-500">Last Run</p>
|
| 160 |
+
<p class="font-medium">2 min ago</p>
|
| 161 |
+
</div>
|
| 162 |
+
<div class="flex-1">
|
| 163 |
+
<p class="text-sm text-gray-500">Method</p>
|
| 164 |
+
<p class="font-medium">PowerShell</p>
|
| 165 |
+
</div>
|
| 166 |
+
</div>
|
| 167 |
+
<div class="space-y-3">
|
| 168 |
+
<div class="flex items-center">
|
| 169 |
+
<div class="w-2 h-2 bg-green-500 rounded-full mr-2"></div>
|
| 170 |
+
<p class="text-sm">Extracts username from sender</p>
|
| 171 |
+
</div>
|
| 172 |
+
<div class="flex items-center">
|
| 173 |
+
<div class="w-2 h-2 bg-green-500 rounded-full mr-2"></div>
|
| 174 |
+
<p class="text-sm">Generates 16-char password</p>
|
| 175 |
+
</div>
|
| 176 |
+
<div class="flex items-center">
|
| 177 |
+
<div class="w-2 h-2 bg-green-500 rounded-full mr-2"></div>
|
| 178 |
+
<p class="text-sm">Sends reply with new password</p>
|
| 179 |
+
</div>
|
| 180 |
+
</div>
|
| 181 |
+
<div class="mt-6 pt-4 border-t border-gray-200">
|
| 182 |
+
<button class="w-full bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded-md transition">
|
| 183 |
+
<i class="fas fa-play mr-2"></i>Run Manually
|
| 184 |
+
</button>
|
| 185 |
+
</div>
|
| 186 |
+
</div>
|
| 187 |
+
</div>
|
| 188 |
+
|
| 189 |
+
<!-- SIP Port Change Workflow Card -->
|
| 190 |
+
<div class="workflow-card bg-white rounded-lg shadow overflow-hidden">
|
| 191 |
+
<div class="bg-purple-600 px-4 py-3 flex items-center">
|
| 192 |
+
<i class="fas fa-network-wired text-white mr-3"></i>
|
| 193 |
+
<h3 class="text-lg font-medium text-white">SIP Port Change</h3>
|
| 194 |
+
</div>
|
| 195 |
+
<div class="p-6">
|
| 196 |
+
<div class="flex items-center mb-4">
|
| 197 |
+
<div class="flex-1">
|
| 198 |
+
<p class="text-sm text-gray-500">Last Run</p>
|
| 199 |
+
<p class="font-medium">15 min ago</p>
|
| 200 |
+
</div>
|
| 201 |
+
<div class="flex-1">
|
| 202 |
+
<p class="text-sm text-gray-500">Current Port</p>
|
| 203 |
+
<p class="font-medium">50601</p>
|
| 204 |
+
</div>
|
| 205 |
+
</div>
|
| 206 |
+
<div class="space-y-3">
|
| 207 |
+
<div class="flex items-center">
|
| 208 |
+
<div class="w-2 h-2 bg-purple-500 rounded-full mr-2"></div>
|
| 209 |
+
<p class="text-sm">Web UI automation</p>
|
| 210 |
+
</div>
|
| 211 |
+
<div class="flex items-center">
|
| 212 |
+
<div class="w-2 h-2 bg-purple-500 rounded-full mr-2"></div>
|
| 213 |
+
<p class="text-sm">Toggles between 5060/50601</p>
|
| 214 |
+
</div>
|
| 215 |
+
<div class="flex items-center">
|
| 216 |
+
<div class="w-2 h-2 bg-purple-500 rounded-full mr-2"></div>
|
| 217 |
+
<p class="text-sm">Requires admin credentials</p>
|
| 218 |
+
</div>
|
| 219 |
+
</div>
|
| 220 |
+
<div class="mt-6 pt-4 border-t border-gray-200">
|
| 221 |
+
<button class="w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded-md transition">
|
| 222 |
+
<i class="fas fa-exchange-alt mr-2"></i>Toggle Port Now
|
| 223 |
+
</button>
|
| 224 |
+
</div>
|
| 225 |
+
</div>
|
| 226 |
+
</div>
|
| 227 |
+
</div>
|
| 228 |
+
|
| 229 |
+
<!-- Recent Activity -->
|
| 230 |
+
<div class="bg-white shadow rounded-lg overflow-hidden mb-8">
|
| 231 |
+
<div class="px-6 py-4 border-b border-gray-200">
|
| 232 |
+
<h3 class="text-lg font-medium text-gray-900">Recent Activity</h3>
|
| 233 |
+
</div>
|
| 234 |
+
<div class="divide-y divide-gray-200">
|
| 235 |
+
<div class="p-6">
|
| 236 |
+
<div class="flex items-start">
|
| 237 |
+
<div class="flex-shrink-0">
|
| 238 |
+
<div class="bg-blue-100 p-2 rounded-full">
|
| 239 |
+
<i class="fas fa-envelope text-blue-600"></i>
|
| 240 |
+
</div>
|
| 241 |
+
</div>
|
| 242 |
+
<div class="ml-4 flex-1">
|
| 243 |
+
<div class="flex items-center justify-between">
|
| 244 |
+
<p class="text-sm font-medium text-gray-900">New email processed</p>
|
| 245 |
+
<p class="text-sm text-gray-500">2 minutes ago</p>
|
| 246 |
+
</div>
|
| 247 |
+
<p class="text-sm text-gray-500">From: jsmith@company.com | Subject: Reset password</p>
|
| 248 |
+
<div class="mt-2 log-entry success pl-4 py-2 bg-gray-50 rounded">
|
| 249 |
+
<p class="text-sm">Triggered Password Reset workflow for user 'jsmith'</p>
|
| 250 |
+
</div>
|
| 251 |
+
</div>
|
| 252 |
+
</div>
|
| 253 |
+
</div>
|
| 254 |
+
<div class="p-6">
|
| 255 |
+
<div class="flex items-start">
|
| 256 |
+
<div class="flex-shrink-0">
|
| 257 |
+
<div class="bg-green-100 p-2 rounded-full">
|
| 258 |
+
<i class="fas fa-key text-green-600"></i>
|
| 259 |
+
</div>
|
| 260 |
+
</div>
|
| 261 |
+
<div class="ml-4 flex-1">
|
| 262 |
+
<div class="flex items-center justify-between">
|
| 263 |
+
<p class="text-sm font-medium text-gray-900">Password reset completed</p>
|
| 264 |
+
<p class="text-sm text-gray-500">1 minute ago</p>
|
| 265 |
+
</div>
|
| 266 |
+
<p class="text-sm text-gray-500">User: jsmith | New password: Kx8#pL29!qW4mZ7b</p>
|
| 267 |
+
<div class="mt-2 log-entry pl-4 py-2 bg-gray-50 rounded">
|
| 268 |
+
<p class="text-sm">Reply email sent to jsmith@company.com</p>
|
| 269 |
+
</div>
|
| 270 |
+
</div>
|
| 271 |
+
</div>
|
| 272 |
+
</div>
|
| 273 |
+
<div class="p-6">
|
| 274 |
+
<div class="flex items-start">
|
| 275 |
+
<div class="flex-shrink-0">
|
| 276 |
+
<div class="bg-purple-100 p-2 rounded-full">
|
| 277 |
+
<i class="fas fa-network-wired text-purple-600"></i>
|
| 278 |
+
</div>
|
| 279 |
+
</div>
|
| 280 |
+
<div class="ml-4 flex-1">
|
| 281 |
+
<div class="flex items-center justify-between">
|
| 282 |
+
<p class="text-sm font-medium text-gray-900">SIP Port changed</p>
|
| 283 |
+
<p class="text-sm text-gray-500">15 minutes ago</p>
|
| 284 |
+
</div>
|
| 285 |
+
<p class="text-sm text-gray-500">From: 5060 to 50601 | Initiated by network@company.com</p>
|
| 286 |
+
<div class="mt-2 log-entry pl-4 py-2 bg-gray-50 rounded">
|
| 287 |
+
<p class="text-sm">Web UI automation completed successfully</p>
|
| 288 |
+
</div>
|
| 289 |
+
</div>
|
| 290 |
+
</div>
|
| 291 |
+
</div>
|
| 292 |
+
</div>
|
| 293 |
+
</div>
|
| 294 |
+
|
| 295 |
+
<!-- Configuration Section -->
|
| 296 |
+
<div class="bg-white shadow rounded-lg overflow-hidden">
|
| 297 |
+
<div class="px-6 py-4 border-b border-gray-200">
|
| 298 |
+
<h3 class="text-lg font-medium text-gray-900">Configuration</h3>
|
| 299 |
+
</div>
|
| 300 |
+
<div class="p-6">
|
| 301 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 302 |
+
<div>
|
| 303 |
+
<h4 class="text-md font-medium text-gray-900 mb-4">IMAP Settings</h4>
|
| 304 |
+
<div class="space-y-4">
|
| 305 |
+
<div>
|
| 306 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Server</label>
|
| 307 |
+
<input type="text" value="imap.company.com" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
|
| 308 |
+
</div>
|
| 309 |
+
<div>
|
| 310 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Port</label>
|
| 311 |
+
<input type="number" value="993" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
|
| 312 |
+
</div>
|
| 313 |
+
<div>
|
| 314 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Username</label>
|
| 315 |
+
<input type="text" value="automation@company.com" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
|
| 316 |
+
</div>
|
| 317 |
+
</div>
|
| 318 |
+
</div>
|
| 319 |
+
<div>
|
| 320 |
+
<h4 class="text-md font-medium text-gray-900 mb-4">Active Directory</h4>
|
| 321 |
+
<div class="space-y-4">
|
| 322 |
+
<div>
|
| 323 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Server</label>
|
| 324 |
+
<input type="text" value="dc01.company.com" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
|
| 325 |
+
</div>
|
| 326 |
+
<div>
|
| 327 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Domain</label>
|
| 328 |
+
<input type="text" value="COMPANY" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
|
| 329 |
+
</div>
|
| 330 |
+
<div>
|
| 331 |
+
<label class="block text-sm font-medium text-gray-700 mb-1">Admin Account</label>
|
| 332 |
+
<input type="text" value="automation_admin" class="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-blue-500 focus:border-blue-500">
|
| 333 |
+
</div>
|
| 334 |
+
</div>
|
| 335 |
+
</div>
|
| 336 |
+
</div>
|
| 337 |
+
<div class="mt-6 pt-6 border-t border-gray-200 flex justify-end">
|
| 338 |
+
<button class="bg-gray-100 hover:bg-gray-200 px-4 py-2 rounded-lg text-sm font-medium text-gray-700 transition mr-3">
|
| 339 |
+
Cancel
|
| 340 |
+
</button>
|
| 341 |
+
<button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-lg text-sm font-medium text-white transition">
|
| 342 |
+
Save Changes
|
| 343 |
+
</button>
|
| 344 |
+
</div>
|
| 345 |
+
</div>
|
| 346 |
+
</div>
|
| 347 |
+
</main>
|
| 348 |
+
</div>
|
| 349 |
+
|
| 350 |
+
<script>
|
| 351 |
+
// Simulate real-time updates
|
| 352 |
+
function simulateActivity() {
|
| 353 |
+
const activityLog = document.querySelector('.divide-y');
|
| 354 |
+
const now = new Date();
|
| 355 |
+
const timeString = now.toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'});
|
| 356 |
+
|
| 357 |
+
// Randomly select a workflow to simulate
|
| 358 |
+
const workflows = ['email', 'password', 'sip'];
|
| 359 |
+
const selectedWorkflow = workflows[Math.floor(Math.random() * workflows.length)];
|
| 360 |
+
|
| 361 |
+
let newEntry;
|
| 362 |
+
|
| 363 |
+
if (selectedWorkflow === 'email') {
|
| 364 |
+
const subjects = ['Reset password', 'IP 192.168.1.1', 'Urgent: Need access'];
|
| 365 |
+
const senders = ['asmith@company.com', 'network@company.com', 'jdoe@company.com'];
|
| 366 |
+
const subject = subjects[Math.floor(Math.random() * subjects.length)];
|
| 367 |
+
const sender = senders[Math.floor(Math.random() * senders.length)];
|
| 368 |
+
|
| 369 |
+
newEntry = document.createElement('div');
|
| 370 |
+
newEntry.className = 'p-6';
|
| 371 |
+
newEntry.innerHTML = `
|
| 372 |
+
<div class="flex items-start">
|
| 373 |
+
<div class="flex-shrink-0">
|
| 374 |
+
<div class="bg-blue-100 p-2 rounded-full">
|
| 375 |
+
<i class="fas fa-envelope text-blue-600"></i>
|
| 376 |
+
</div>
|
| 377 |
+
</div>
|
| 378 |
+
<div class="ml-4 flex-1">
|
| 379 |
+
<div class="flex items-center justify-between">
|
| 380 |
+
<p class="text-sm font-medium text-gray-900">New email processed</p>
|
| 381 |
+
<p class="text-sm text-gray-500">${timeString}</p>
|
| 382 |
+
</div>
|
| 383 |
+
<p class="text-sm text-gray-500">From: ${sender} | Subject: ${subject}</p>
|
| 384 |
+
<div class="mt-2 log-entry pl-4 py-2 bg-gray-50 rounded">
|
| 385 |
+
<p class="text-sm">Processing rules for email content...</p>
|
| 386 |
+
</div>
|
| 387 |
+
</div>
|
| 388 |
+
</div>
|
| 389 |
+
`;
|
| 390 |
+
}
|
| 391 |
+
else if (selectedWorkflow === 'password') {
|
| 392 |
+
const users = ['bsmith', 'jwilson', 'kjackson'];
|
| 393 |
+
const passwords = ['Xk9#pL29!qW4mZ7b', 'Pw8$mL29!qX4nZ7c', 'Kx8#pL29!qW4mZ7b'];
|
| 394 |
+
const user = users[Math.floor(Math.random() * users.length)];
|
| 395 |
+
const password = passwords[Math.floor(Math.random() * passwords.length)];
|
| 396 |
+
|
| 397 |
+
newEntry = document.createElement('div');
|
| 398 |
+
newEntry.className = 'p-6';
|
| 399 |
+
newEntry.innerHTML = `
|
| 400 |
+
<div class="flex items-start">
|
| 401 |
+
<div class="flex-shrink-0">
|
| 402 |
+
<div class="bg-green-100 p-2 rounded-full">
|
| 403 |
+
<i class="fas fa-key text-green-600"></i>
|
| 404 |
+
</div>
|
| 405 |
+
</div>
|
| 406 |
+
<div class="ml-4 flex-1">
|
| 407 |
+
<div class="flex items-center justify-between">
|
| 408 |
+
<p class="text-sm font-medium text-gray-900">Password reset completed</p>
|
| 409 |
+
<p class="text-sm text-gray-500">${timeString}</p>
|
| 410 |
+
</div>
|
| 411 |
+
<p class="text-sm text-gray-500">User: ${user} | New password: ${password}</p>
|
| 412 |
+
<div class="mt-2 log-entry success pl-4 py-2 bg-gray-50 rounded">
|
| 413 |
+
<p class="text-sm">Reply email sent to ${user}@company.com</p>
|
| 414 |
+
</div>
|
| 415 |
+
</div>
|
| 416 |
+
</div>
|
| 417 |
+
`;
|
| 418 |
+
}
|
| 419 |
+
else {
|
| 420 |
+
const ports = ['5060', '50601'];
|
| 421 |
+
const currentPort = ports[Math.floor(Math.random() * ports.length)];
|
| 422 |
+
const newPort = currentPort === '5060' ? '50601' : '5060';
|
| 423 |
+
|
| 424 |
+
newEntry = document.createElement('div');
|
| 425 |
+
newEntry.className = 'p-6';
|
| 426 |
+
newEntry.innerHTML = `
|
| 427 |
+
<div class="flex items-start">
|
| 428 |
+
<div class="flex-shrink-0">
|
| 429 |
+
<div class="bg-purple-100 p-2 rounded-full">
|
| 430 |
+
<i class="fas fa-network-wired text-purple-600"></i>
|
| 431 |
+
</div>
|
| 432 |
+
</div>
|
| 433 |
+
<div class="ml-4 flex-1">
|
| 434 |
+
<div class="flex items-center justify-between">
|
| 435 |
+
<p class="text-sm font-medium text-gray-900">SIP Port changed</p>
|
| 436 |
+
<p class="text-sm text-gray-500">${timeString}</p>
|
| 437 |
+
</div>
|
| 438 |
+
<p class="text-sm text-gray-500">From: ${currentPort} to ${newPort} | Initiated by network@company.com</p>
|
| 439 |
+
<div class="mt-2 log-entry pl-4 py-2 bg-gray-50 rounded">
|
| 440 |
+
<p class="text-sm">Web UI automation completed successfully</p>
|
| 441 |
+
</div>
|
| 442 |
+
</div>
|
| 443 |
+
</div>
|
| 444 |
+
`;
|
| 445 |
+
}
|
| 446 |
+
|
| 447 |
+
// Prepend the new entry
|
| 448 |
+
activityLog.prepend(newEntry);
|
| 449 |
+
|
| 450 |
+
// Limit to 10 entries
|
| 451 |
+
if (activityLog.children.length > 10) {
|
| 452 |
+
activityLog.removeChild(activityLog.lastChild);
|
| 453 |
+
}
|
| 454 |
+
}
|
| 455 |
+
|
| 456 |
+
// Simulate activity every 5-15 seconds
|
| 457 |
+
setInterval(simulateActivity, Math.random() * 10000 + 5000);
|
| 458 |
+
|
| 459 |
+
// Add click handlers for buttons
|
| 460 |
+
document.querySelectorAll('.workflow-card button').forEach(button => {
|
| 461 |
+
button.addEventListener('click', function() {
|
| 462 |
+
const card = this.closest('.workflow-card');
|
| 463 |
+
const header = card.querySelector('div:first-child');
|
| 464 |
+
|
| 465 |
+
// Add visual feedback
|
| 466 |
+
card.classList.add('opacity-75');
|
| 467 |
+
setTimeout(() => {
|
| 468 |
+
card.classList.remove('opacity-75');
|
| 469 |
+
}, 1000);
|
| 470 |
+
|
| 471 |
+
// Add to activity log
|
| 472 |
+
const now = new Date();
|
| 473 |
+
const timeString = now.toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'});
|
| 474 |
+
const activityLog = document.querySelector('.divide-y');
|
| 475 |
+
|
| 476 |
+
const newEntry = document.createElement('div');
|
| 477 |
+
newEntry.className = 'p-6';
|
| 478 |
+
newEntry.innerHTML = `
|
| 479 |
+
<div class="flex items-start">
|
| 480 |
+
<div class="flex-shrink-0">
|
| 481 |
+
<div class="bg-yellow-100 p-2 rounded-full">
|
| 482 |
+
<i class="fas fa-bolt text-yellow-600"></i>
|
| 483 |
+
</div>
|
| 484 |
+
</div>
|
| 485 |
+
<div class="ml-4 flex-1">
|
| 486 |
+
<div class="flex items-center justify-between">
|
| 487 |
+
<p class="text-sm font-medium text-gray-900">Manual trigger</p>
|
| 488 |
+
<p class="text-sm text-gray-500">${timeString}</p>
|
| 489 |
+
</div>
|
| 490 |
+
<p class="text-sm text-gray-500">${header.textContent.trim()} workflow initiated manually</p>
|
| 491 |
+
<div class="mt-2 log-entry warning pl-4 py-2 bg-gray-50 rounded">
|
| 492 |
+
<p class="text-sm">Processing workflow steps...</p>
|
| 493 |
+
</div>
|
| 494 |
+
</div>
|
| 495 |
+
</div>
|
| 496 |
+
`;
|
| 497 |
+
|
| 498 |
+
activityLog.prepend(newEntry);
|
| 499 |
+
|
| 500 |
+
// Limit to 10 entries
|
| 501 |
+
if (activityLog.children.length > 10) {
|
| 502 |
+
activityLog.removeChild(activityLog.lastChild);
|
| 503 |
+
}
|
| 504 |
+
});
|
| 505 |
+
});
|
| 506 |
+
</script>
|
| 507 |
+
<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=ricwan/ecta" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 508 |
+
</html>
|
prompts.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Build an automation tool with the following features: 1. Email Listener Monitor a mailbox via IMAP. When an email is received: If subject is "Reset", trigger the Password Reset Workflow. If subject starts with "IP 192.168.", trigger the SIP Port Change Workflow. 2. Password Reset Workflow Extract the username from the sender’s email address. Use RDP or remote PowerShell to access a Windows Server. Open Active Directory, locate the user, and reset their password. Generate a strong password automatically (e.g., 16 characters). Send a reply email to the original sender with the new password. 3. SIP Port Change Workflow Log in to a specified web interface. Navigate to: Settings → SIP → Local SIP Port. Toggle between ports: If port is 5060, update to 50601. If port is 50601, revert to 5060. Save the settings and exit. 4. Tech Stack Use Python 3, with: imaplib for email reading smtplib for sending replies selenium or pyppeteer for web automation pypsrp or winrm for password reset via PowerShell Dockerize the entire solution Store credentials securely using .env and/or encrypted secrets Credentials for RDP and web UI are configured manually in the .env file. The app should run continuously and auto-handle emails as they arrive.
|