API
This document provides an overview and documentation for the API implemented in the provided code. The API allows clients to interact with a server for managing agents and uploading files.
Base URL
The API create its own nodejs server at this address http://localhost:5000/
Endpoints
Create a New Agent URL: /api/agent/new Method: POST Description: Create a new agent and sto...
Database Connection
The API connects to a MySQL database for storing agent information. The database connection detai...
User Folder Creation
The API creates a folder named /CTHULHU/users if it doesn't already exist. Additionally, for each...
RSA Key Pair Generation and Storage
For each agent created, the API generates an RSA key pair consisting of a public key and a privat...