# Exploit-DB & Google Hacking Database Extractor (`nimbryxo-studio/exploit-db-and-google-hacking-database-extractor`) Actor

Search and browse public exploits, papers, shellcodes, and Google Hacking Database dorks by platform, CVE, author, port, or tag, with full detail pages and optional source code.

- **URL**: https://apify.com/nimbryxo-studio/exploit-db-and-google-hacking-database-extractor.md
- **Developed by:** [Nimbryxo-studio](https://apify.com/nimbryxo-studio) (community)
- **Categories:** Developer tools, Automation, Open source
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Exploit-DB & Google Hacking Database Extractor

OffSec's Exploit Database catalogs public proof-of-concept exploits, security papers, shellcodes, and Google Hacking Database (GHDB) dorks. This actor turns that archive into structured records — search by title, CVE, author, or platform; browse a specific platform's full exploit list; pull an exact EDB-ID with its detail page; or sweep GHDB dorks by category.

### What this actor does

- Searches or browses three collections — exploits, papers, and shellcodes — filtered by platform, exploit type, port, vulnerability tag, CVE, author name, or body text
- Fetches exact records by EDB-ID (or a full exploit-db.com URL) across exploits, shellcodes, papers, and GHDB dorks in one request list, and can attach the raw exploit source code
- Sweeps the Google Hacking Database by dork keyword and category
- Applies a publication-date window and a verified-only / has-vulnerable-app / exclude-Metasploit filter set on top of any search or browse
- Leaves out any field a given entry doesn't have instead of filling it with a placeholder

### Output per record

Every record carries a `recordType` (`exploit`, `paper`, `shellcode`, or `ghdbDork`) and a `scrapedAt` UTC timestamp. Fields present depend on the record type and on how much detail the source page exposes.

**Exploits** (`recordType: "exploit"`)

- `edbId`, `title`
- `cveIds` — associated CVE identifiers
- `osvdbIds`, `otherCodes` — OSVDB numbers and other bulletin references (e.g. `MS03-031`)
- `type`, `typeDisplay` — e.g. `webapps` / `WebApps`
- `platform` — e.g. `php`, `windows`, `multiple`
- `author`, `authorId`
- `publishedDate`, `verified`, `port`
- `tags` — vulnerability tags such as `SQL Injection (SQLi)`
- `appPath`, `appUrl` — the bundled vulnerable application, when the entry ships one
- `screenshotUrl`, `screenshotThumbUrl` — exploit screenshots, present on a minority of entries
- `downloadUrl`, `rawCodeUrl`, `sourceUrl`
- `code` — full exploit source, only present in `byIds` mode with `includeCode: true`

**Papers** (`recordType: "paper"`)

- `paperId`, `title`, `author`, `authorId`, `platform`, `publishedDate`, `language`, `fileType`
- `downloadUrl`, `sourceUrl`

**Shellcodes** (`recordType: "shellcode"`)

- `shellcodeId`, `title`, `author`, `authorId`, `platform`, `publishedDate`, `verified`
- `size` — shellcode size, only present when fetched via `byIds`
- `code` — shellcode source, only present when fetched via `byIds`
- `downloadUrl`, `sourceUrl`

**GHDB dorks** (`recordType: "ghdbDork"`)

- `ghdbId`, `title` — the dork string itself
- `category`, `categoryId`, `categoryDescription`
- `author`, `authorId`, `publishedDate`
- `googleSearchUrl`, `googleSearchTerm`, `dorkDescription`
- `sourceUrl`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search`, `browseByPlatform`, `byIds`, or `ghdbSearch` |
| `searchQuery` | string | `wordpress` | Title keyword to match (mode=search) |
| `collection` | string | `exploits` | `exploits`, `papers`, or `shellcodes` (modes=search, browseByPlatform) |
| `platform` | string | – | Platform filter/browse target, e.g. `windows`, `php`, `linux_x86-64` (77 options) |
| `type` | string | – | Exploit type filter: `dos`, `local`, `remote`, `shellcode`, `papers`, `webapps`, `hardware` (mode=search) |
| `port` | string | – | Affected port filter (mode=search) |
| `tag` | string | – | Vulnerability tag filter, e.g. `SQL Injection` (mode=search) |
| `cveSearch` | string | – | CVE filter, e.g. `2021-44228` (mode=search) |
| `authorName` | string | – | Author name filter, e.g. `rgod` (mode=search) |
| `bodyText` | string | – | Keyword that must appear in the exploit body/code (mode=search) |
| `paperLanguage` | string | – | Language filter when `collection` is `papers` |
| `verifiedOnly` | boolean | `false` | Only emit EDB-verified exploits (mode=search) |
| `hasAppOnly` | boolean | `false` | Only emit exploits that ship a downloadable vulnerable app (mode=search) |
| `excludeMetasploit` | boolean | `false` | Drop Metasploit Framework modules from results (mode=search) |
| `containsKeyword` | string | – | Title must contain this substring (case-insensitive) |
| `dateRangeFrom` | string | – | Only emit records published on or after this date (`YYYY-MM-DD`) |
| `dateRangeTo` | string | – | Only emit records published on or before this date (`YYYY-MM-DD`) |
| `exploitIds` | array | `[]` | EDB-IDs or full URLs to fetch directly (mode=byIds) |
| `includeCode` | boolean | `false` | Also attach the raw exploit/shellcode source code (mode=byIds) |
| `ghdbQuery` | string | – | Keyword the dork title must contain (mode=ghdbSearch) |
| `ghdbCategory` | string | – | GHDB category filter, `1`–`14` (mode=ghdbSearch) |
| `maxItems` | integer | `50` | Maximum number of records to return (1–1000) |
| `proxyConfiguration` | object | off | Optional Apify Proxy configuration; not required for normal use |

#### Example: verified WordPress exploits

```json
{
    "mode": "search",
    "searchQuery": "wordpress",
    "type": "webapps",
    "verifiedOnly": true,
    "maxItems": 20
}
```

#### Example: browse all Windows remote exploits

```json
{
    "mode": "browseByPlatform",
    "platform": "windows",
    "type": "remote",
    "maxItems": 100
}
```

#### Example: fetch specific entries with source code

```json
{
    "mode": "byIds",
    "exploitIds": [
        "50592",
        "https://www.exploit-db.com/shellcodes/14113",
        "https://www.exploit-db.com/ghdb/2",
        "https://www.exploit-db.com/docs/33429"
    ],
    "includeCode": true
}
```

#### Example: Google dorks for exposed passwords

```json
{
    "mode": "ghdbSearch",
    "ghdbQuery": "password",
    "ghdbCategory": "9"
}
```

### Use cases

- **Vulnerability research** — pull every public PoC for a product, CVE, or platform before a patch review
- **Threat-intel enrichment** — key a pipeline on EDB-ID or CVE to flag which disclosed vulnerabilities already have working exploit code
- **Red-team tooling prep** — bulk-fetch verified exploits with source code attached for a target platform
- **Security training material** — collect papers and shellcodes filtered by platform or language for coursework
- **OSINT dork sweeps** — export GHDB entries by category to seed a reconnaissance checklist

### FAQ

**What is an EDB-ID?** It's the unique numeric identifier Exploit-DB assigns to each entry, e.g. `50592` for a well-known Log4Shell proof of concept. Use it directly in `exploitIds` under `byIds` mode.

**Does `byIds` only work for exploits?** No — it accepts exploit, shellcode (`/shellcodes/{id}`), GHDB dork (`/ghdb/{id}`), and paper (`/docs/{id}`) URLs or bare numeric IDs. A bare ID is tried as an exploit first, then a shellcode, then a GHDB dork.

**Why is `cveIds` missing from some exploits?** Older entries predate CVE tracking. When an entry has no associated CVE, the field is left out rather than sent empty.

**Can I get the full exploit source code?** Yes, set `includeCode: true` while using `byIds` mode and the raw code body is attached to each matching exploit or shellcode record.

**Why don't paper records have a title when fetched via `byIds`?** If a paper's detail page can't be reached directly, the record falls back to just `paperId`, `sourceUrl`, and `downloadUrl`; richer paper metadata (title, author, language) is only available from `search` or `browseByPlatform`.

**Why does `ghdbQuery` sometimes return dorks that don't look like an exact match?** The GHDB listing doesn't support server-side text search, so `ghdbQuery` filters the already-paginated dork titles on the client side; `ghdbCategory` is applied before that and is more exact.

**What happens if `dateRangeFrom` is after `dateRangeTo`?** That's an impossible range, so the actor stops immediately with a status message instead of scanning the whole archive for nothing.

**Are screenshots available for every exploit?** No — only a minority of entries ship a screenshot. `screenshotUrl` and `screenshotThumbUrl` are only present when the source page includes one.

**Is this affiliated with Exploit-DB or OffSec?** No. This actor reads Exploit-DB's publicly available pages and is not affiliated with, endorsed by, or sponsored by OffSec.

# Actor input Schema

## `mode` (type: `string`):

What to fetch.

## `searchQuery` (type: `string`):

Title keyword — matches against the exploit/paper/shellcode title (mode=search).

## `collection` (type: `string`):

Which Exploit-DB collection to search or browse (modes=search, browseByPlatform).

## `platform` (type: `string`):

Platform to filter/browse by (mode=browseByPlatform, or filter in mode=search).

## `type` (type: `string`):

Exploit type filter (mode=search).

## `port` (type: `string`):

Filter by affected port number (mode=search).

## `tag` (type: `string`):

Filter by vulnerability tag, e.g. SQL Injection or Buffer Overflow (mode=search).

## `cveSearch` (type: `string`):

Filter by CVE identifier, e.g. `2021-44228` (mode=search).

## `authorName` (type: `string`):

Filter by exploit author name, e.g. `rgod` (mode=search).

## `bodyText` (type: `string`):

Keyword that must appear in the exploit body/code content (mode=search).

## `paperLanguage` (type: `string`):

Language filter when collection=papers (modes=search, browseByPlatform).

## `verifiedOnly` (type: `boolean`):

Only emit EDB-verified exploits (mode=search).

## `hasAppOnly` (type: `boolean`):

Only emit exploits that ship a downloadable vulnerable app (mode=search).

## `excludeMetasploit` (type: `boolean`):

Drop Metasploit Framework (MSF) modules from results (mode=search).

## `containsKeyword` (type: `string`):

Client-side filter — title must contain this substring (case-insensitive).

## `dateRangeFrom` (type: `string`):

Only emit records published on or after this date.

## `dateRangeTo` (type: `string`):

Only emit records published on or before this date.

## `exploitIds` (type: `array`):

EDB-IDs or full URLs. Accepts exploits (`50592`, `.../exploits/50592`), shellcodes (`.../shellcodes/14113`), Google dorks (`.../ghdb/2`) and papers (`.../docs/33429`). Bare numeric IDs try the exploit detail page first, then shellcode, then GHDB.

## `includeCode` (type: `boolean`):

Also fetch and attach the raw exploit code body (mode=byIds).

## `ghdbQuery` (type: `string`):

Keyword the Google dork title must contain, e.g. `inurl`, `intitle`, `password` (the GHDB table ignores server-side text search, so this filters client-side).

## `ghdbCategory` (type: `string`):

GHDB category filter (mode=ghdbSearch).

## `maxItems` (type: `integer`):

Hard cap on emitted records.

## `proxyConfiguration` (type: `object`):

Optional Apify proxy. Only engaged automatically if Exploit-DB returns 403/429 on the default connection.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "wordpress",
  "collection": "exploits",
  "verifiedOnly": false,
  "hasAppOnly": false,
  "excludeMetasploit": false,
  "exploitIds": [],
  "includeCode": false,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `exploits` (type: `string`):

Dataset containing all scraped Exploit-DB records.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "search",
    "searchQuery": "wordpress",
    "collection": "exploits",
    "verifiedOnly": false,
    "hasAppOnly": false,
    "excludeMetasploit": false,
    "exploitIds": [],
    "includeCode": false,
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nimbryxo-studio/exploit-db-and-google-hacking-database-extractor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "search",
    "searchQuery": "wordpress",
    "collection": "exploits",
    "verifiedOnly": False,
    "hasAppOnly": False,
    "excludeMetasploit": False,
    "exploitIds": [],
    "includeCode": False,
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("nimbryxo-studio/exploit-db-and-google-hacking-database-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "search",
  "searchQuery": "wordpress",
  "collection": "exploits",
  "verifiedOnly": false,
  "hasAppOnly": false,
  "excludeMetasploit": false,
  "exploitIds": [],
  "includeCode": false,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call nimbryxo-studio/exploit-db-and-google-hacking-database-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nimbryxo-studio/exploit-db-and-google-hacking-database-extractor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/JAEJDup7qIMlBj4Ma/builds/NbTml09UouPAGc8lm/openapi.json
