Kintun is a Restful API for scanning network vulnerabilities and exporting results to a specified system. It is designed to work seamlessly with various scanning tools and services.
- NGEN: (https://github.com/CERTUNLP/ngen)
- Python 3: Ensure you have Python 3.x installed.
- Flask: Web framework required for running the API.
- MongoDB: A database for storing scan results (configured in
config.json
). - Nmap: Network scanner for vulnerability scanning.
- SSL Support: For running the app with SSL encryption.
- Expect: For handling scripted interactions with external services.
- Shelldap: LDAP client for specialized tasks.
- Other dependencies: Check the
requirements.txt
file for Python dependencies.
To set up Kintun, follow the steps below depending on whether you want to use Docker or run the app locally.
Ensure your system has the necessary tools installed:
- Python 3 and pip for Python package management.
- MongoDB for storing scan results.
- Docker (optional for Docker-based installation).
For local installation, run the following commands to install system dependencies and Python packages:
$ sudo apt update
$ sudo apt install -y python3 python3-pip python3-dev libssl-dev libffi-dev expect shelldap nmap mongodb
$ python3 -m venv env
$ source env/bin/activate
$ pip3 install -r requirements.txt
If you wish to run the app with SSL, you can generate a self-signed certificate using the following Python command:
$ python3
>>> from werkzeug.serving import make_ssl_devcert
>>> make_ssl_devcert('ssl/key', host='localhost')
- Copy the example configuration file:
$ cp config.json.example config.json
- Open the config.json file and modify the MongoDB connection settings as needed (e.g., host, port, authentication).
To make it easier to start Kintun, use the provided start_kintun.sh script. This script checks for Docker, installs requirements if necessary, and prompts you to choose between running Kintun with Docker or locally (if wanted to run locally remember to use virtualenv). To run Kintun:
$ ./start_kintun.sh
This script will guide you through the setup process and start the Kintun app accordingly, either with Docker or directly on your local machine.
This application is under the GPL v3.0 license. See the complete license in the application: LICENSE