Skip to main content
Glama

Run Searchsploit

run_searchsploit

Search a local Exploit-DB database for exploits and shellcodes by keyword, CVE, or Nmap service results, then inspect or retrieve matching files for penetration testing.

Instructions

Search for exploits and shellcodes in the local Exploit-DB database. Tags: security, exploitation, pentest, vulnerability, exploit-db, reconnaissance, enumeration

Usage Guide:

  • Basic Search (mode="search"): Search for exploits using keywords in query. Use title_only to ignore file paths, exact_match for precise title strings, or case_sensitive for specific product names.

  • CVE Search: Use the cve_id parameter to find exploits linked to specific vulnerability identifiers.

  • Filtering: Use exclude_pattern to remove unwanted results (e.g., DoS or PoC files) from your search.

  • File Operations: Use mode="mirror" to copy an exploit via edb_id, mode="examine" to view source code, or mode="path" to get the absolute file system path.

  • Automation: Use nmap_xml_file to automatically find exploits for services detected in an Nmap scan.

  • Maintenance: Set update_db=True to update the local exploit database repository.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_searchsploit"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoOperation mode: "search" (default), "mirror", "examine", "path".search
queryNoSearch keywords or terms (used in search mode).
cve_idNoCommon Vulnerabilities and Exposures ID (e.g., 2021-44228).2021-44228
edb_idNoThe Exploit-DB ID number (required for mirror, examine, and path modes).
show_urlsNoDisplay Exploit-DB web URLs instead of local paths.
update_dbNoUpdate the local exploit database.
title_onlyNoSearch only the exploit title (ignores path).
exact_matchNoPerform an exact, order-sensitive match on the title.
json_outputNoReturn results in JSON format for parsing.
nmap_xml_fileNoPath to an Nmap XML output file for automated version matching.
case_sensitiveNoPerform a case-sensitive search.
exclude_patternNoRegex pattern of terms to remove from results.(PoC)|/dos/

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden, and it does disclose the important side effects: mode="mirror" copies an exploit file, and update_db=True mutates the local exploit database repository. What it omits is any statement of prerequisites (searchsploit and its database must be installed locally) or error behavior when the DB is missing, which matters for a tool advertised as querying a 'local' database.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in one sentence and the rest is a scannable bulleted guide, appropriately sized for a 12-parameter tool. The 'Tags:' line adds little for an agent already reading the name and purpose sentence, which is minor waste but the only real padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

All twelve parameters are covered by the schema, an output schema exists so return values need no explanation, and the description supplies the mode-driven workflow that the schema alone cannot convey. The only missing element, local-install prerequisites, is minor relative to the overall coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description genuinely adds usage-level meaning: it ties edb_id to the three modes that require it, gives a concrete exclude_pattern rationale (removing DoS/PoC noise), and frames nmap_xml_file as feeding an Nmap scan into version matching. The one gap is that mode-specific mutual exclusivity is implied rather than stated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — searching exploits and shellcodes in the local Exploit-DB database — which is unambiguous and clearly distinct from sibling tools like run_nmap or run_nuclei. The name plus the first sentence are enough for an agent to route correctly without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The Usage Guide enumerates every mode with the condition that selects it (search vs mirror vs examine vs path), explains when to use cve_id, nmap_xml_file, exclude_pattern, and update_db, and even distinguishes title_only from exact_match. Nothing is left to inference about which parameters to combine for a given goal.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.