wormgpt - Initial Deployment
Browse files- README.md +7 -5
- index.html +233 -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: wormgpt
|
| 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,233 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>WormGPT - Advanced AI Assistant</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 wormPulse {
|
| 11 |
+
0% { transform: scale(1); opacity: 0.7; }
|
| 12 |
+
50% { transform: scale(1.05); opacity: 1; }
|
| 13 |
+
100% { transform: scale(1); opacity: 0.7; }
|
| 14 |
+
}
|
| 15 |
+
.worm-pulse {
|
| 16 |
+
animation: wormPulse 3s infinite;
|
| 17 |
+
}
|
| 18 |
+
.message-enter {
|
| 19 |
+
animation: messageEnter 0.3s ease-out;
|
| 20 |
+
}
|
| 21 |
+
@keyframes messageEnter {
|
| 22 |
+
from { transform: translateY(10px); opacity: 0; }
|
| 23 |
+
to { transform: translateY(0); opacity: 1; }
|
| 24 |
+
}
|
| 25 |
+
.typing-indicator span {
|
| 26 |
+
display: inline-block;
|
| 27 |
+
width: 8px;
|
| 28 |
+
height: 8px;
|
| 29 |
+
background-color: #4ade80;
|
| 30 |
+
border-radius: 50%;
|
| 31 |
+
margin: 0 2px;
|
| 32 |
+
animation: typingAnimation 1.4s infinite ease-in-out;
|
| 33 |
+
}
|
| 34 |
+
.typing-indicator span:nth-child(2) {
|
| 35 |
+
animation-delay: 0.2s;
|
| 36 |
+
}
|
| 37 |
+
.typing-indicator span:nth-child(3) {
|
| 38 |
+
animation-delay: 0.4s;
|
| 39 |
+
}
|
| 40 |
+
@keyframes typingAnimation {
|
| 41 |
+
0%, 60%, 100% { transform: translateY(0); }
|
| 42 |
+
30% { transform: translateY(-5px); }
|
| 43 |
+
}
|
| 44 |
+
.scrollbar-hide::-webkit-scrollbar {
|
| 45 |
+
display: none;
|
| 46 |
+
}
|
| 47 |
+
</style>
|
| 48 |
+
</head>
|
| 49 |
+
<body class="bg-gray-900 text-gray-100 min-h-screen flex flex-col">
|
| 50 |
+
<!-- Header -->
|
| 51 |
+
<header class="bg-gray-800 border-b border-green-900 shadow-lg">
|
| 52 |
+
<div class="container mx-auto px-4 py-3 flex items-center justify-between">
|
| 53 |
+
<div class="flex items-center space-x-3">
|
| 54 |
+
<div class="worm-pulse w-10 h-10 rounded-full bg-gradient-to-br from-green-500 to-emerald-800 flex items-center justify-center">
|
| 55 |
+
<i class="fas fa-worm text-white text-xl"></i>
|
| 56 |
+
</div>
|
| 57 |
+
<h1 class="text-2xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-green-400 to-emerald-500">
|
| 58 |
+
WormGPT
|
| 59 |
+
</h1>
|
| 60 |
+
</div>
|
| 61 |
+
<div class="flex items-center space-x-4">
|
| 62 |
+
<button class="p-2 rounded-full hover:bg-gray-700 transition-colors">
|
| 63 |
+
<i class="fas fa-cog text-green-400"></i>
|
| 64 |
+
</button>
|
| 65 |
+
<button class="p-2 rounded-full hover:bg-gray-700 transition-colors">
|
| 66 |
+
<i class="fas fa-moon text-yellow-400"></i>
|
| 67 |
+
</button>
|
| 68 |
+
</div>
|
| 69 |
+
</div>
|
| 70 |
+
</header>
|
| 71 |
+
|
| 72 |
+
<!-- Main Chat Area -->
|
| 73 |
+
<main class="flex-1 container mx-auto px-4 py-6 flex flex-col">
|
| 74 |
+
<div id="chat-container" class="flex-1 overflow-y-auto scrollbar-hide mb-4 space-y-4">
|
| 75 |
+
<!-- Welcome Message -->
|
| 76 |
+
<div class="message-enter flex justify-start">
|
| 77 |
+
<div class="max-w-3xl bg-gray-800 rounded-2xl p-4 shadow-lg border-l-4 border-green-500">
|
| 78 |
+
<div class="flex items-center mb-2">
|
| 79 |
+
<div class="w-8 h-8 rounded-full bg-green-600 flex items-center justify-center mr-3">
|
| 80 |
+
<i class="fas fa-worm text-white"></i>
|
| 81 |
+
</div>
|
| 82 |
+
<span class="font-bold text-green-400">WormGPT</span>
|
| 83 |
+
</div>
|
| 84 |
+
<p class="text-gray-300">
|
| 85 |
+
Welcome to WormGPT! I'm your advanced AI assistant specialized in cybersecurity, penetration testing, and ethical hacking. How can I assist you today?
|
| 86 |
+
</p>
|
| 87 |
+
<div class="mt-3 flex flex-wrap gap-2">
|
| 88 |
+
<button class="quick-prompt px-3 py-1 bg-gray-700 hover:bg-gray-600 rounded-full text-sm text-gray-300 transition-colors">
|
| 89 |
+
Show common vulnerabilities
|
| 90 |
+
</button>
|
| 91 |
+
<button class="quick-prompt px-3 py-1 bg-gray-700 hover:bg-gray-600 rounded-full text-sm text-gray-300 transition-colors">
|
| 92 |
+
Explain SQL injection
|
| 93 |
+
</button>
|
| 94 |
+
<button class="quick-prompt px-3 py-1 bg-gray-700 hover:bg-gray-600 rounded-full text-sm text-gray-300 transition-colors">
|
| 95 |
+
Help with nmap scan
|
| 96 |
+
</button>
|
| 97 |
+
</div>
|
| 98 |
+
</div>
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
|
| 102 |
+
<!-- Typing Indicator (hidden by default) -->
|
| 103 |
+
<div id="typing-indicator" class="hidden mb-4">
|
| 104 |
+
<div class="flex items-center">
|
| 105 |
+
<div class="w-8 h-8 rounded-full bg-green-600 flex items-center justify-center mr-3">
|
| 106 |
+
<i class="fas fa-worm text-white"></i>
|
| 107 |
+
</div>
|
| 108 |
+
<div class="typing-indicator">
|
| 109 |
+
<span></span>
|
| 110 |
+
<span></span>
|
| 111 |
+
<span></span>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
|
| 116 |
+
<!-- Input Area -->
|
| 117 |
+
<div class="bg-gray-800 rounded-xl p-4 shadow-lg border border-gray-700">
|
| 118 |
+
<form id="chat-form" class="flex items-end space-x-3">
|
| 119 |
+
<div class="flex-1 relative">
|
| 120 |
+
<textarea id="user-input" rows="1" class="w-full bg-gray-700 rounded-lg px-4 py-3 pr-12 text-gray-200 resize-none focus:outline-none focus:ring-2 focus:ring-green-500 transition-all" placeholder="Ask WormGPT anything about cybersecurity..."></textarea>
|
| 121 |
+
<button type="button" class="absolute right-3 bottom-3 text-gray-400 hover:text-green-400 transition-colors">
|
| 122 |
+
<i class="fas fa-paperclip"></i>
|
| 123 |
+
</button>
|
| 124 |
+
</div>
|
| 125 |
+
<button type="submit" class="p-3 bg-gradient-to-r from-green-600 to-emerald-700 rounded-lg hover:opacity-90 transition-opacity">
|
| 126 |
+
<i class="fas fa-paper-plane text-white"></i>
|
| 127 |
+
</button>
|
| 128 |
+
</form>
|
| 129 |
+
<div class="mt-2 text-xs text-gray-500 flex justify-between">
|
| 130 |
+
<span>WormGPT may produce inaccurate information about security techniques</span>
|
| 131 |
+
<span>v2.3.7</span>
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
</main>
|
| 135 |
+
|
| 136 |
+
<!-- Footer -->
|
| 137 |
+
<footer class="bg-gray-800 border-t border-gray-700 py-3">
|
| 138 |
+
<div class="container mx-auto px-4 text-center text-gray-500 text-sm">
|
| 139 |
+
<p>Use WormGPT responsibly. Always follow ethical guidelines and applicable laws.</p>
|
| 140 |
+
</div>
|
| 141 |
+
</footer>
|
| 142 |
+
|
| 143 |
+
<script>
|
| 144 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 145 |
+
const chatForm = document.getElementById('chat-form');
|
| 146 |
+
const userInput = document.getElementById('user-input');
|
| 147 |
+
const chatContainer = document.getElementById('chat-container');
|
| 148 |
+
const typingIndicator = document.getElementById('typing-indicator');
|
| 149 |
+
|
| 150 |
+
// Auto-resize textarea
|
| 151 |
+
userInput.addEventListener('input', function() {
|
| 152 |
+
this.style.height = 'auto';
|
| 153 |
+
this.style.height = (this.scrollHeight) + 'px';
|
| 154 |
+
});
|
| 155 |
+
|
| 156 |
+
// Quick prompt buttons
|
| 157 |
+
document.querySelectorAll('.quick-prompt').forEach(button => {
|
| 158 |
+
button.addEventListener('click', function() {
|
| 159 |
+
userInput.value = this.textContent;
|
| 160 |
+
userInput.focus();
|
| 161 |
+
});
|
| 162 |
+
});
|
| 163 |
+
|
| 164 |
+
// Handle form submission
|
| 165 |
+
chatForm.addEventListener('submit', function(e) {
|
| 166 |
+
e.preventDefault();
|
| 167 |
+
const message = userInput.value.trim();
|
| 168 |
+
if (message === '') return;
|
| 169 |
+
|
| 170 |
+
// Add user message to chat
|
| 171 |
+
addMessageToChat('user', message);
|
| 172 |
+
userInput.value = '';
|
| 173 |
+
userInput.style.height = 'auto';
|
| 174 |
+
|
| 175 |
+
// Show typing indicator
|
| 176 |
+
typingIndicator.classList.remove('hidden');
|
| 177 |
+
|
| 178 |
+
// Simulate AI response after a delay
|
| 179 |
+
setTimeout(() => {
|
| 180 |
+
typingIndicator.classList.add('hidden');
|
| 181 |
+
const responses = [
|
| 182 |
+
"SQL injection is a code injection technique that might destroy your database. It's one of the most common web hacking techniques.",
|
| 183 |
+
"For an nmap scan, you might use: `nmap -sV -O targetIP` to scan for services and OS detection.",
|
| 184 |
+
"Common vulnerabilities include XSS, CSRF, SQLi, and buffer overflows. Would you like details on any specific one?",
|
| 185 |
+
"Remember to always get proper authorization before testing systems. Ethical hacking requires permission."
|
| 186 |
+
];
|
| 187 |
+
const randomResponse = responses[Math.floor(Math.random() * responses.length)];
|
| 188 |
+
addMessageToChat('ai', randomResponse);
|
| 189 |
+
}, 1500 + Math.random() * 2000);
|
| 190 |
+
});
|
| 191 |
+
|
| 192 |
+
function addMessageToChat(sender, message) {
|
| 193 |
+
const messageDiv = document.createElement('div');
|
| 194 |
+
messageDiv.classList.add('message-enter');
|
| 195 |
+
|
| 196 |
+
if (sender === 'user') {
|
| 197 |
+
messageDiv.classList.add('flex', 'justify-end');
|
| 198 |
+
messageDiv.innerHTML = `
|
| 199 |
+
<div class="max-w-3xl bg-gray-700 rounded-2xl p-4 shadow-lg border-r-4 border-emerald-500">
|
| 200 |
+
<p class="text-gray-200">${message}</p>
|
| 201 |
+
</div>
|
| 202 |
+
`;
|
| 203 |
+
} else {
|
| 204 |
+
messageDiv.classList.add('flex', 'justify-start');
|
| 205 |
+
messageDiv.innerHTML = `
|
| 206 |
+
<div class="max-w-3xl bg-gray-800 rounded-2xl p-4 shadow-lg border-l-4 border-green-500">
|
| 207 |
+
<div class="flex items-center mb-2">
|
| 208 |
+
<div class="w-8 h-8 rounded-full bg-green-600 flex items-center justify-center mr-3">
|
| 209 |
+
<i class="fas fa-worm text-white"></i>
|
| 210 |
+
</div>
|
| 211 |
+
<span class="font-bold text-green-400">WormGPT</span>
|
| 212 |
+
</div>
|
| 213 |
+
<p class="text-gray-300">${message}</p>
|
| 214 |
+
</div>
|
| 215 |
+
`;
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
chatContainer.appendChild(messageDiv);
|
| 219 |
+
messageDiv.scrollIntoView({ behavior: 'smooth' });
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
// Example of adding a sample conversation
|
| 223 |
+
setTimeout(() => {
|
| 224 |
+
addMessageToChat('user', 'How do I protect against SQL injection?');
|
| 225 |
+
setTimeout(() => {
|
| 226 |
+
typingIndicator.classList.add('hidden');
|
| 227 |
+
addMessageToChat('ai', 'To protect against SQL injection:\n1. Use prepared statements with parameterized queries\n2. Use stored procedures\n3. Validate all user input\n4. Implement proper error handling\n5. Apply the principle of least privilege for database accounts');
|
| 228 |
+
}, 2000);
|
| 229 |
+
}, 3000);
|
| 230 |
+
});
|
| 231 |
+
</script>
|
| 232 |
+
<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=6ee5ali/wormgpt" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 233 |
+
</html>
|