Jump to content

C2 run as a service


Recommended Posts

What do you mean "no way to get C2 to run as a service"? It's no different than any other executable. Setting it to run as a service will depend on your OS.

On Windows you probably want to use sc.exe

On Linux you've got a variety of options, be it rc.local, crontab, init.d, systemctl - it really just depends on your environment.

I'm sure there's a similar option for MacOS – but I've never used it as a server.

Link to comment
Share on other sites

On 10/22/2019 at 11:48 PM, jcpolo said:

I remember playing with this when it first came out and we decided to not use it going forward because there was no way to get c2 to run as a service or after a reboot of the machine. Has that been remedied?

I use immortal from https://immortal.run/

Make an immortaldir script and your service will never die and is autostarted when the server comes online. 

Edited by Predator
Spelling like a donkey 😁
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...