Files
Snigdha-OS.github.io/assets/Features-BdejuIrn.js
eshanized ebd5d37f52 Updates
2024-12-25 05:06:23 +05:30

7 lines
4.0 KiB
JavaScript

import{c as m,j as e,r as i}from"./index-DqLTW_kH.js";import{m as n}from"./proxy-Bjl3UtPz.js";import{T as p}from"./terminal-CkxkZsAR.js";/**
* @license lucide-react v0.344.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const x=m("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);function u({value:t,onChange:o}){return e.jsxs("div",{className:"relative",children:[e.jsx(x,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-5 w-5 text-gray-400"}),e.jsx("input",{type:"text",value:t,onChange:o,placeholder:"Search tools...",className:"w-full pl-10 pr-4 py-2 bg-white/80 backdrop-blur-sm border border-gray-200 rounded-lg focus:ring-2 focus:ring-cornflower-blue focus:border-transparent outline-none"})]})}function h({categories:t,selectedCategory:o,onSelect:a}){return e.jsx("div",{className:"flex flex-wrap gap-2",children:t.map(r=>e.jsx(n.button,{whileHover:{scale:1.05},whileTap:{scale:.95},onClick:()=>a(r),className:`px-4 py-2 rounded-full text-sm font-medium transition-colors ${o===r?"bg-cornflower-blue text-white":"bg-white/80 text-gray-600 hover:bg-gray-100"}`,children:r},r))})}function g({name:t,description:o,category:a,command:r}){return e.jsxs(n.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},whileHover:{y:-5},className:"bg-white/80 backdrop-blur-sm p-6 rounded-lg shadow-sm border border-gray-100",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx(p,{className:"h-5 w-5 text-cornflower-blue"}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:t})]}),e.jsx("p",{className:"text-gray-600 mb-4",children:o}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"text-sm font-medium text-cornflower-blue",children:a}),e.jsx("code",{className:"text-sm bg-gray-100 px-2 py-1 rounded",children:r})]})]})}const y=[{id:"1",name:"Nmap",description:"Network exploration tool and security scanner",category:"Information Gathering",command:"nmap"},{id:"2",name:"Wireshark",description:"Network protocol analyzer for real-time packet capture",category:"Sniffing & Spoofing",command:"wireshark"},{id:"3",name:"Metasploit",description:"Penetration testing framework",category:"Exploitation Tools",command:"msfconsole"},{id:"4",name:"Burp Suite",description:"Web vulnerability scanner and proxy tool",category:"Web Applications",command:"burpsuite"},{id:"5",name:"Aircrack-ng",description:"Complete suite for wireless network security assessment",category:"Wireless Attacks",command:"aircrack-ng"},{id:"6",name:"John the Ripper",description:"Password cracker and hash analyzer",category:"Password Attacks",command:"john"}],f=["All","Information Gathering","Sniffing & Spoofing","Exploitation Tools","Web Applications","Wireless Attacks","Password Attacks"];function N(){const[t,o]=i.useState(""),[a,r]=i.useState("All"),c=i.useMemo(()=>y.filter(s=>{const l=s.name.toLowerCase().includes(t.toLowerCase())||s.description.toLowerCase().includes(t.toLowerCase()),d=a==="All"||s.category===a;return l&&d}),[t,a]);return e.jsx("div",{className:"py-12",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs(n.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[e.jsx("h1",{className:"text-4xl font-bold text-gray-900",children:"Snigdha OS Tools"}),e.jsx("p",{className:"mt-4 text-lg text-gray-600",children:"Explore our comprehensive collection of security and penetration testing tools"})]}),e.jsxs("div",{className:"space-y-8",children:[e.jsx("div",{className:"max-w-xl mx-auto",children:e.jsx(u,{value:t,onChange:s=>o(s.target.value)})}),e.jsx(h,{categories:f,selectedCategory:a,onSelect:r}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:c.map(s=>e.jsx(g,{...s},s.id))}),c.length===0&&e.jsx("div",{className:"text-center py-12",children:e.jsx("p",{className:"text-gray-500",children:"No tools found matching your criteria"})})]})]})})}export{N as default};