-
Notifications
You must be signed in to change notification settings - Fork 15
Data Service Usage
The Data Service is the equivalent of Metasploit's Data Service: A HTTP service listening for requests, and transmitting them to a Database for processing.
Requests made to the service will add/delete/update entities such as
- workspaces,
- hosts, and soon...
- services,
- credentials,
- etc...
For this reason, the Data Service is needed in order to run the C2 Server and the Console. This is why it is placed in this order in the documentation.
They are two ways to start the Data Service: as a systemd unit, or by executing the binary from the command line.
Everything that follows applies to both methods.
When running the Data Service for the first time, it will:
- Create a subdirectory
data-service
in the~/.wiregost
root directory (and this one if needed) - Create a default config file in this directory.
- Create a
wiregost_db
PostgreSQL database, awiregost
user with passwordwiregost
. - Create a Certificate/Key Pair in the
certs/
subdirectory. (Used for the HTTP Service) - Migrate all DB Schemas to this
wiregost_db
database. (Automatic migration at each startup).
So, unless problems arise, you should just run the Data Service binary to setup everything.
Then, the service is listening on (default) port 8001, which you can change in the config file.
If ran from the command line, all DB transactions are logged to the screen. With Systemd, run
journalctl -f -u wiregost-data.service