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.
On kali you have to install it inside an venv, for example:
| # 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:
| import tuoni
tuoni_server = tuoni.TuoniC2()
tuoni_server.login("https://localhost:8443", "username", "password")
|
or
| 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
| 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")
|