# carlospolop/legion

Automatic Enumeration Tool based in Open Source tools

Repository: https://github.com/carlospolop/legion
Canonical: https://ross.abutalabs.com/products/carlospolop-legion
Homepage: https://book.hacktricks.xyz/pentesting-methodology
Language: Python
License: MIT
License Family: permissive
Topics: nmap, nmap-scripts, msf, hydra, bruteforce, legion, vulnerabilty-scanner, enumeration, scanner
Last push: 2026-07-11T08:58:38+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 92, release rhythm 35, longevity 100
- inputs: {"age_days": 2643, "days_push": 53, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1032, forks 164 (observed 2026-08-28T04:03:18.190138+00:00)

## What it is
Legion is a Python-based automatic enumeration tool that orchestrates well-known open-source pentesting tools (nmap, hydra, metasploit) to extract information from network services. It supports automatic, semi-automatic, and manual scanning modes plus brute-forcing of common protocols.

## Use cases
- automatically enumerate services on a pentest target
- brute force ssh and other protocols with hydra
- scan open ports and extract service info without typing commands manually
- run sqlmap and other tools against discovered http services
- run a pentesting methodology scan inside docker

## When to choose
- you want automated service enumeration during authorized pentests
- you want one interface wrapping nmap, hydra, and metasploit
- you follow the HackTricks pentesting methodology

## When to avoid
- you need a GUI vulnerability scanner
- you lack authorization to test target systems
- you need stealthy or low-noise scanning

## Facets
- artifact type: cli-tool
- maturity: active
- function: penetration-testing, security, vulnerability-scanning, cli
- domain: security, penetration-testing
- platform: python, cli
- tags: enumeration, nmap, hydra, metasploit, brute-force, pentesting, reconnaissance, service-scanning, command-line, linux, docker

## Member repositories
- carlospolop/legion (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:18.190138+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:06:44.325226+00:00, confidence not recorded.
  - readme: https://github.com/carlospolop/legion (fetched 2026-08-28T04:03:18.190138+00:00, sha e2620fadd314)
  - homepage: https://book.hacktricks.xyz/pentesting-methodology (fetched 2026-08-29T13:06:46.410500+00:00, sha e4b79d683252)
- Data as of 2026-08-30T08:39:29.467469+00:00.
