Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for manual triggering of C2 startup #300

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

terrorbyte
Copy link
Collaborator

Had a few instances where the C2 should not have been started until an exploit prerequisites are met. This would allow explicitly disabling the C2 from starting by default with config.DisableC2Start() and then adds the exploit.StartC2 for the manual invocation.

@terrorbyte terrorbyte added the enhancement New feature or request label Jan 10, 2025
@terrorbyte terrorbyte requested review from wvu and j-baines January 10, 2025 20:02
@terrorbyte terrorbyte self-assigned this Jan 10, 2025
@@ -312,6 +316,12 @@ func (conf *Config) GetBoolFlag(name string) bool {
return *value
}

// Disable automatic start of c2 servers. Manually starting is required after
// this function is called.
func (conf *Config) DisableC2Start() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worthwhile to call out where you should call this from. Likely your exploit main? Also might be worth pointing out that "Manually starting" is just calling exploit.StartC2

Copy link
Contributor

@j-baines j-baines left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment on... comments. Otherwise, looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants