Skip to main content
Always use a virtualenv. Save yourself the hassle.

Prerequisites

Before installing RelayKing, ensure the following are available on your system:
  • Python 3.8+ — RelayKing requires Python 3.8 or later.
  • git — Used to clone the repository.
  • virtualenv — Used to create an isolated Python environment.

Installation Steps

1

Clone the repository

Clone the RelayKing repository from GitHub:
git clone https://github.com/depthsecurity/RelayKing-Depth.git
2

Navigate into the cloned directory

cd RelayKing-Depth/
3

Create a virtual environment

Use virtualenv to create an isolated Python 3 environment inside the project directory. This prevents dependency conflicts with system packages.
virtualenv --python=python3 .
4

Activate the virtual environment

source bin/activate
Your shell prompt should now be prefixed with the environment name, confirming the venv is active.
5

Install dependencies

Install all required Python packages from requirements.txt:
pip3 install -r requirements.txt
6

Verify the installation

Confirm RelayKing launches correctly by printing the help menu:
python3 relayking.py -h
You should see the full argument reference output.
7

Optional: Run the verification script

For a deeper check, run the bundled verify_installation.py script. It validates your Python version, all dependency imports, RelayKing’s internal modules, and the syntax of every .py file in the project:
python3 verify_installation.py
A successful run ends with:
[+] All checks passed! RelayKing is ready to use.
If any check fails, install the missing packages:
pip install -r requirements.txt

Dependencies

The following packages are installed from requirements.txt:
PackageMinimum VersionPurpose
impacket>=0.11.0SMB, LDAP, MSSQL protocol implementations
requests>=2.28.0HTTP/HTTPS scanning
requests-ntlm>=1.2.0NTLM authentication over HTTP
dnspython>=2.3.0DNS resolution for hostname lookups
ldap3>=2.9.1LDAP operations and AD enumeration
pyasn1>=0.4.8ASN.1 encoding (Kerberos/LDAP)
urllib3>=1.26.0HTTP client internals

Build docs developers (and LLMs) love