Skip to content
KitploitKITPLOIT
ToolsBlog
Log in
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
legion — Legion is an open source, easy-to-use, super-extensible and semi-automated network penetration testing tool that aids in discovery, reconnaissance and exploitation of information systems. | Kitploit
Tools/GitHubGitHub/abacus-group-rto/legion
ReconnaissanceVulnerability ScannersWeb Vulnerability ScannersContainer SecurityPassword AttacksPort ScanningExploitationIDS/IPS EvasionInformation GatheringNetwork SecurityPenetration TestingArchived
1.1k188161 year agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
GitHubabacus-group-rto/legion

legion

Legion is an open source, easy-to-use, super-extensible and semi-automated network penetration testing tool that aids in discovery, reconnaissance and exploitation of information systems.

View Repository
Share

NOTICE

The Legion repository is moving to https://github.com/hackman238/legion. All future releases, updates, etc will occur from there. Big improvements on the way! This repo under this organiztion will no longer be maintained.

alt tag

✨ About

Legion, a fork of SECFORCE's Sparta, is an open source, easy-to-use, super-extensible, and semi-automated network penetration testing framework that aids in discovery, reconnaissance, and exploitation of information systems.

Fix NMAP 7.92 Sefgaults under Kali

Install NMAP 7.93 using the following:

sudo apt install snapd -y
sudo systemctl enable --now snapd.apparmor
sudo systemctl start snapd
sudo snap install nmap
sudo mv /usr/bin/nmap /usr/bin/nmap-7.92
sudo ln -s /snap/bin/nmap /usr/bin/nmap

Then verify the version is 7.93 with: nmap -v

Update the apparmor profile: vi /var/lib/snapd/apparmor/profiles/snap.nmap.nmap

Goto line 300, create new line and add in:

owner @{HOME}/.local/share/legion/tmp/** rw,
/etc/ssl/kali.cnf r,

Reboot

🍿 Features

  • Automatic recon and scanning with NMAP, whataweb, nikto, Vulners, Hydra, SMBenum, dirbuster, sslyzer, webslayer and more (with almost 100 auto-scheduled scripts).
  • Easy to use graphical interface with rich context menus and panels that allow pentesters to quickly find and exploit attack vectors on hosts.
  • Modular functionality allows users to easily customize Legion and automatically call their own scripts/tools.
  • Multiple custom scan configurations ideal for testing different environments of various size and complexity.
  • Highly customizable stage scanning for ninja-like IPS evasion.
  • Automatic detection of CPEs (Common Platform Enumeration) and CVEs (Common Vulnerabilities and Exposures).
  • Ties CVEs to Exploits as detailed in Exploit-Database.
  • Realtime auto-saving of project results and tasks.

Notable changes from Sparta

  • Refactored from Python 2.7 to Python 3.8+ and the elimination of deprecated and unmaintained libraries.
  • Upgraded to PyQT6, increased responsiveness, less buggy, more intuitive GUI that includes features like:
    • Task completion estimates
    • 1-Click scan lists of ips, hostnames and CIDR subnets
    • Ability to purge results, rescan hosts and delete hosts
    • Granular NMAP scanning options
  • Support for hostname resolution and scanning of vhosts/sni hosts.
  • Revise process queuing and execution routines for increased app reliability and performance.
  • Simplification of installation with dependency resolution and installation routines.
  • Realtime project auto-saving so in the event some goes wrong, you will not lose any progress!
  • Docker container deployment option.
  • Supported by a highly active development team.

🌉 Supported Distributions

Docker runIt script support

RunIt script (docker/runIt.sh) supports:

  • Ubuntu 20.04+
  • Kali 2022+

It is possible to run the docker image on any Linux distribution, however, different distributions have different hoops to jump through to get a docker app to be able to connect to the X server. Everyone is welcome to try to figure those hoops out and create a PR for runIt.

Traditional installation support

We can only promise correct operation on Ubuntu 20.04 using the traditional installation at this time. While it should work on ParrotOS, Kali, and others, until we have Legion packaged and placed into the repos for each of these distros, it is musical chairs in regard to platform updates changing and breaking dependencies. Native a native package exists and is included by default on Kali.

💻 Installation

Two installation methods available:

  • Docker method
  • Traditional installation method

It is preferable to use the Docker method over a traditional installation. This is because of all the dependency requirements and the complications that occur in environments which differ from a clean, non-default installation.

NOTE: Docker versions of Legion are unlikely to work when run as root or under a root X!

Docker method

Docker method includes support for various environments, choose the one that works for you.

  • Linux with local X11
  • Linux with remote X11
  • Windows under WSL
  • ⚠️ Windows without WSL
  • ⚠️ OSX using XQuartz

Linux with local X11

Assumes Docker and X11 are installed and set up (including running Docker commands as a non-root user).

It is critical to follow all the instructions for running as a non-root user. Skipping any of them will result in complications getting Docker to communicate with the X server.

See detailed instructions to set up Docker here and enable running containers as non-root users and granting Docker group SSH rights here.

Within Terminal:

git clone https://github.com/GoVanguard/legion.git
cd legion/docker
chmod +x runIt.sh
./runIt.sh

Linux with remote X11

Assumes Docker and X11 are installed and set up.

Replace X.X.X.X with the IP address of the remote running X11.

Within Terminal:

git clone https://github.com/GoVanguard/legion.git
cd legion/docker
chmod +x runIt.sh
./runIt.sh X.X.X.X

Windows under WSL using Xming and Docker Desktop

Assumes:

  • Xming is installed in Windows.
  • Docker Desktop is installed in Windows
  • Docker Desktop is running in Linux containers mode
  • Docker Desktop is connected to WSL.

See detailed Docker instructions here

Replace X.X.X.X with the IP address with which Xming has registered itself. Right click Xming in system tray -> View log and see IP next to "XdmcpRegisterConnection: newAddress"

Within Terminal:

git clone https://github.com/GoVanguard/legion.git
cd legion/docker
sudo chmod +x runIt.sh
sudo ./runIt.sh X.X.X.X

Windows using Xming and Docker Desktop without WSL

Why? Don't do this. :)

OSX using XQuartz

Not yet in runIt.sh script. Possible to set up using socat. See instructions here

Configuring Docker

Setting up Docker on Linux

To install Docker components typically needed and add set up the environment for Docker, under a term, run:

sudo apt-get update
sudo apt-get install -y docker.io python3-pip -y
sudo groupadd docker
pip install --user docker-compose

Setup Docker to allow non-root users

To enable non-root users to run Docker commands, under a term, run:

sudo usermod -aG docker $USER
sudo chmod 666 /var/run/docker.sock
sudo xhost +local:docker

Setup Hyper-V, Docker Desktop, Xming and WSL

The order is important for port reservation reasons. If you have WSL, HyperV, or Docker Desktop installed then please uninstall those features before proceeding.

Download Tool