An open API service indexing awesome lists of open source software.

https://github.com/freelabz/secator

secator - the pentester's swiss knife
https://github.com/freelabz/secator

automation cybersecurity hacking osint pentesting reconnaissance secator security security-audit security-tools vulnerability vulnerability-scanners

Last synced: 25 days ago
JSON representation

secator - the pentester's swiss knife

Awesome Lists containing this project

README

        



The pentester's swiss knife.







Features
Supported commands
Installation
Usage
Documentation

`secator` is a task and workflow runner used for security assessments. It supports dozens of well-known security tools
and it is designed to improve productivity for pentesters and security researchers.

# Features

![](images/demo.gif)

* **Curated list of commands**

* **Unified input options**

* **Unified output schema**

* **CLI and library usage**

* **Distributed options with Celery**

* **Complexity from simple tasks to complex workflows**

* **Customizable**

## Supported tools

`secator` integrates the following tools:

| Name | Description | Category |
|---------------------------------------------------------------|--------------------------------------------------------------------------------|-----------------|
| [httpx](https://github.com/projectdiscovery/httpx) | Fast HTTP prober. | `http` |
| [cariddi](https://github.com/edoardottt/cariddi) | Fast crawler and endpoint secrets / api keys / tokens matcher. | `http/crawler` |
| [gau](https://github.com/lc/gau) | Offline URL crawler (Alien Vault, The Wayback Machine, Common Crawl, URLScan). | `http/crawler` |
| [gospider](https://github.com/jaeles-project/gospider) | Fast web spider written in Go. | `http/crawler` |
| [katana](https://github.com/projectdiscovery/katana) | Next-generation crawling and spidering framework. | `http/crawler` |
| [dirsearch](https://github.com/maurosoria/dirsearch) | Web path discovery. | `http/fuzzer` |
| [feroxbuster](https://github.com/epi052/feroxbuster) | Simple, fast, recursive content discovery tool written in Rust. | `http/fuzzer` |
| [ffuf](https://github.com/ffuf/ffuf) | Fast web fuzzer written in Go. | `http/fuzzer` |
| [h8mail](https://github.com/khast3x/h8mail) | Email OSINT and breach hunting tool. | `osint` |
| [dnsx](https://github.com/projectdiscovery/dnsx) | Fast and multi-purpose DNS toolkit. | `recon/dns` |
| [dnsxbrute](https://github.com/projectdiscovery/dnsx) | Fast and multi-purpose DNS toolkit (bruteforce mode). | `recon/dns` |
| [subfinder](https://github.com/projectdiscovery/subfinder) | Fast subdomain finder. | `recon/dns` |
| [fping](https://fping.org/) | Find alive hosts on local networks. | `recon/ip` |
| [mapcidr](https://github.com/projectdiscovery/mapcidr) | Expand CIDR ranges into IPs. | `recon/ip` |
| [naabu](https://github.com/projectdiscovery/naabu) | Fast port discovery tool. | `recon/port` |
| [maigret](https://github.com/soxoj/maigret) | Hunt for user accounts across many websites. | `recon/user` |
| [gf](https://github.com/tomnomnom/gf) | A wrapper around grep to avoid typing common patterns. | `tagger` |
| [grype](https://github.com/anchore/grype) | A vulnerability scanner for container images and filesystems. | `vuln/code` |
| [dalfox](https://github.com/hahwul/dalfox) | Powerful XSS scanning tool and parameter analyzer. | `vuln/http` |
| [msfconsole](https://docs.rapid7.com/metasploit/msf-overview) | CLI to access and work with the Metasploit Framework. | `vuln/http` |
| [wpscan](https://github.com/wpscanteam/wpscan) | WordPress Security Scanner | `vuln/multi` |
| [nmap](https://github.com/nmap/nmap) | Vulnerability scanner using NSE scripts. | `vuln/multi` |
| [nuclei](https://github.com/projectdiscovery/nuclei) | Fast and customisable vulnerability scanner based on simple YAML based DSL. | `vuln/multi` |
| [bbot](https://github.com/blacklanternsecurity/bbot) | Multipurpose scanner. | `multi` |
| [searchsploit](https://gitlab.com/exploit-database/exploitdb) | Exploit searcher based on ExploitDB. | `exploit/search`|
| [bup](https://github.com/laluka/bypass-url-parser) | 40X bypasser. | `http` |

Feel free to request new tools to be added by opening an issue, but please
check that the tool complies with our selection criterias before doing so. If it doesn't but you still want to integrate it into `secator`, you can plug it in (see the [dev guide](https://docs.freelabz.com/for-developers/writing-custom-tasks)).

## Installation

### Installing secator

Pipx

```sh
pipx install secator
```
***Note:** Make sure to have [pipx](https://pipx.pypa.io/stable/installation/) installed.*

Pip

```sh
pip install secator
```

Bash (uses apt)

```sh
wget -O - https://raw.githubusercontent.com/freelabz/secator/main/scripts/install.sh | sh
```

Docker

```sh
docker run -it --rm --net=host -v ~/.secator:/root/.secator freelabz/secator --help
```

The volume mount -v is necessary to save all secator reports to your host machine, and--net=host is recommended to grant full access to the host network.

You can alias this command to run it easier:
```sh
alias secator="docker run -it --rm --net=host -v ~/.secator:/root/.secator freelabz/secator"
```

Now you can run secator like if it was installed on baremetal:
```
secator --help
```

Docker Compose

```sh
git clone https://github.com/freelabz/secator
cd secator
docker-compose up -d
docker-compose exec secator-client secator --help
```

***Note:*** If you chose the Bash, Docker or Docker Compose installation methods, you can skip the next sections and go straight to [Usage](#usage).

### Installing languages

`secator` uses external tools, so you might need to install languages used by those tools assuming they are not already installed on your system.

We provide utilities to install required languages if you don't manage them externally:

Go

```sh
secator install langs go
```

Ruby

```sh
secator install langs ruby
```

### Installing tools

`secator` does not install any of the external tools it supports by default.

We provide utilities to install or update each supported tool which should work on all systems supporting `apt`:

All tools

```sh
secator install tools
```

Specific tools

```sh
secator install tools
```

For instance, to install `httpx`, use:

```sh
secator install tools httpx
```

Please make sure you are using the latest available versions for each tool before you run secator or you might run into parsing / formatting issues.

### Installing addons

`secator` comes installed with the minimum amount of dependencies.

There are several addons available for `secator`:

worker

Add support for Celery workers (see [Distributed runs with Celery](https://docs.freelabz.com/in-depth/distributed-runs-with-celery)).
```sh
secator install addons worker
```

gdrive

Add support for Google Drive exporter (`-o gdrive`).

```sh
secator install addons gdrive
```

gcs

Add support for Google Cloud Storage driver (`-driver gcs`).

```sh
secator install addons gcs
```

mongodb

Add support for MongoDB driver (`-driver mongodb`).
```sh
secator install addons mongodb
```

redis

Add support for Redis backend (Celery).

```sh
secator install addons redis
```

dev

Add development tools like `coverage` and `flake8` required for running tests.

```sh
secator install addons dev
```

trace

Add tracing tools like `memray` and `pyinstrument` required for tracing functions.

```sh
secator install addons trace
```

build

Add `hatch` for building and publishing the PyPI package.

```sh
secator install addons build
```

### Checking installation health

To figure out which languages or tools are installed on your system (along with their version):
```sh
secator health
```

## Usage
```sh
secator --help
```
![](images/help.png)

### Usage examples

Run a fuzzing task (`ffuf`):

```sh
secator x ffuf http://testphp.vulnweb.com/FUZZ
```

Run a url crawl workflow:

```sh
secator w url_crawl http://testphp.vulnweb.com
```

Run a host scan:

```sh
secator s host mydomain.com
```

and more... to list all tasks / workflows / scans that you can use:
```sh
secator x --help
secator w --help
secator s --help
```

## Learn more

To go deeper with `secator`, check out:
* Our complete [documentation](https://docs.freelabz.com)
* Our getting started [tutorial video](https://youtu.be/-JmUTNWQDTQ?si=qpAClDWMXo2zwUK7)
* Our [Medium post](https://medium.com/p/09333f3d3682)
* Follow us on social media: [@freelabz](https://twitter.com/freelabz) on Twitter and [@FreeLabz](https://youtube.com/@FreeLabz) on YouTube

## Stats





Star History Chart