Skip to content

Commit

Permalink
Fix c2 selection for File Format
Browse files Browse the repository at this point in the history
  • Loading branch information
j-baines committed Jul 30, 2024
1 parent fa8cc6f commit 6b94c10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/commandline.go
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ func FormatFileCmdLineParse(conf *config.Config) bool {
}

// must be validate (to set default for payload gen) and then check third party c2
if validateC2Selection(c2Selection, conf) && !conf.ThirdPartyC2Server {
if !validateC2Selection(c2Selection, conf) && !conf.ThirdPartyC2Server {
return false
}
if !conf.ThirdPartyC2Server && (conf.Lport == 0 || len(conf.Lhost) == 0) {
Expand Down Expand Up @@ -723,7 +723,7 @@ func LocalCmdLineParse(conf *config.Config) bool {
flag.Parse()

// must be validate (to set default for payload gen) and then check third party c2
if validateC2Selection(c2Selection, conf) && !conf.ThirdPartyC2Server {
if !validateC2Selection(c2Selection, conf) && !conf.ThirdPartyC2Server {
return false
}

Expand Down

0 comments on commit 6b94c10

Please sign in to comment.