name: exploitdb
category: exploit
description: Offline archive of exploits and shellcodes from Exploit-DB.
keywords:
  - exploit
  - database
  - cve
  - vulnerability
  - shellcode
  - poc

parameters:
  search:
    type: string
    required: true
    description: Search term

  case_sensitive:
    type: boolean
    flag: "-c"
    description: Case-sensitive search

  exact:
    type: boolean
    flag: "-e"
    description: Exact match

  title:
    type: boolean
    flag: "-t"
    description: Search titles only

  path:
    type: boolean
    flag: "-p"
    description: Show full path

  json:
    type: boolean
    flag: "-j"
    description: JSON output

  mirror:
    type: string
    flag: "-m"
    description: Mirror exploit to current directory

  examine:
    type: string
    flag: "-x"
    description: Examine exploit

  www:
    type: boolean
    flag: "-w"
    description: Show Exploit-DB URL

  overflow:
    type: boolean
    flag: "--overflow"
    description: Only buffer overflow exploits

  id:
    type: boolean
    flag: "--id"
    description: Display EDB-ID

requires_root: false
timeout: 30

command_template: "searchsploit {case_sensitive?} {exact?} {title?} {path?} {json?} {overflow?} {id?} {www?} {search}"

examples:
  - "searchsploit apache 2.4"
  - "searchsploit -e 'Windows 10'"
  - "searchsploit -t wordpress plugin"
  - "searchsploit -p -w linux kernel"
  - "searchsploit -m 12345"
  - "searchsploit -x /usr/share/exploitdb/exploits/linux/local/12345.c"

notes: |
  Database location:
  /usr/share/exploitdb/

  Update database:
  searchsploit -u

  Search tips:
  - Use quotes for exact phrases
  - -t for title-only search
  - -e for exact version match

  Copy exploit:
  searchsploit -m [EDB-ID]

  Common searches:
  - Product name + version
  - CVE number
  - Vulnerability type

  Exploit types:
  - Remote code execution
  - Local privilege escalation
  - DoS
  - SQL injection
  - XSS
