One nice thing about the Cobaltract team server
is that you only need to configure your listeners once,
and then every time you restart the team server,
it will automatically, you know,
come up with all of the listeners that you had configured.
This information is stored in data,
within listeners.
So when the team server starts, it will it will read,
these files and then repopulate itself so you can pretty much
just pick up where you left off.
Now we can configure the team server to start as as a service
when the Linux VM boots up,
and that saves us the manual task of having to come
into the Linux VM, CD into the directory,
and then run this command to start the team server so that
when the lab starts up, we can just launch the client,
and the team server will already be ready, listening.
So the way to do that is just to create a, a new text file,
in etc,
system d,
and system.
And then you can call the service file whatever you want.
So I'll just call it team server,
dot service.
And then I'm just gonna go ahead and,
paste this text in.
So this is taken directly from the,
course.
And most of it is fairly straightforward.
We
are configuring this to start as the root user.
We're setting the working directory to be
the cobalt strike directory.
And then the exec start is pretty much just the exact
same thing that we ran on the command line.
The only difference is is that we're using,
the a full path to the team server script.
Other than that, everything is, like, the same, really.
So let's, save that.
And we need to reload the,
the system d manager.
So that would be sudo systemctl,
daemon reload.
And then we can get the status of our new service.
So if I start typing, team
and then hit tab, it's now tab completable.
And, of course,
the service is dead.
If we start the service,
wait a couple of seconds,
and then get its status again,
we can see that it's running.
And you can see some of the console output that it,
typically,
does.
So now we can take the client,
and we can connect to it.
Okay.
We're in, and our listeners are here,
And all is good.
The one thing we want to do is set this service to start on boot up.
So we will do that with, enable.
And that's all we need to do.