Skip to content

Python library install

The full documentation for the Python library is available at python.shelldot.com.

There is nothing easier than installing a Python library with pip.

pip install tuoni

On kali you have to install it inside an venv, for example:

1
2
3
4
5
6
7
8
# Install a new venv
python -m venv ~/.tuoni.venv

# Activate it
source ~/.tuoni.venv/bin/activate

# and in activated venv, install the tuoni lib
pip install tuoni

After installing, to use it:

1
2
3
import tuoni
tuoni_server = tuoni.TuoniC2()
tuoni_server.login("https://localhost:8443", "username", "password")

or

1
2
3
from tuoni import *
tuoni_server = TuoniC2()
tuoni_server.login("https://localhost:8443", "username", "password")

If you are using Self Signed Certificates for the API (Default) you might want to suppress the HTTPS warnings

1
2
3
4
5
6
7
8
9
import tuoni
# ... other imports
import warnings
from urllib3.exceptions import InsecureRequestWarning
warnings.filterwarnings("ignore", category=InsecureRequestWarning)

# ... other code
tuoni_server = tuoni.TuoniC2()
tuoni_server.login("https://localhost:8443", "username", "password")