Skip to content

Trying to configure HTTPS Support error - "There is no current event loop in thread 'Thread-1'.** #25

@kpomeroy1979

Description

@kpomeroy1979

Hi guys,

I just started to test out TrevorC2 and i'm having an issue setting up HTTPS.

I am able to run the Powershell agent and get a connection back to my server. I can run commands and most of the time the output is displayed in the console (sometimes it seems to hang though when I run commands like netstat or arp -a so not sure what may be happening there)... anyway

When I edit the trevorc2_server.py and set the following two options:

Turn to True for SSL support

SSL = True
CERT_FILE = ("/opt/trevorc2/fullchain1.pem") # Your Certificate for SSL

Save and then launch the server I get the following error.

./trevorc2_server

revorC2 - Legitimate Website Covert Channel
Written by: David Kennedy (@HackingDave)
https://www.trustedsec.com
[] Cloning website: https://www.google.com
[
] Site cloned successfully.
[] Starting Trevor C2 Server...
[
] Next, enter the command you want the victim to execute.
[] Client uses random intervals, this may take a few.
[
] Type help for usage. Example commands, list, interact.

trevorc2>[!] Something went wrong, printing error message here: There is no current event loop in thread 'Thread-1'.

Any ideas as to what this might be? I placed what I THINK is my SSL certificate file in /opt/trevorc2/ and made sure the permissions we set so they can be read by the application.

I'm wondering if this functionality hasn't been implemented yet or is there something I'm doing wrong? Is there an easy way to test the SSL functionality?

Thanks for taking the time to read
Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions