File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -769,10 +769,11 @@ func FormatFileCmdLineParse(conf *config.Config) bool {
769
769
}
770
770
771
771
// must be validate (to set default for payload gen) and then check third party c2
772
- if ! conf . ThirdPartyC2Server && ! validateC2Selection (c2Selection , conf ) {
772
+ if ! validateC2Selection (c2Selection , conf ) {
773
773
return false
774
774
}
775
- if ! conf .ThirdPartyC2Server && (conf .Lport == 0 || len (conf .Lhost ) == 0 ) {
775
+
776
+ if conf .Lport == 0 || len (conf .Lhost ) == 0 {
776
777
output .PrintFrameworkError ("Missing exploitation options (-Lhost or -Lport)" )
777
778
778
779
return false
Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ func (conf *Config) GetBoolFlag(name string) bool {
315
315
// Some C2 (ShellTunnel) don't actually care how the payload is generated, but
316
316
// the underlying C2 might be implied depending on how the individual exploit
317
317
// has been developed. It is certainly not a requirement to call this function
318
- // but it can help simplify the handling of secure shell vs insecure
318
+ // but it can help simplify the handling of secure shell vs insecure.
319
319
func (conf * Config ) ResolveC2Payload () c2.Impl {
320
320
if conf .C2Type != c2 .ShellTunnel {
321
321
return conf .C2Type
You can’t perform that action at this time.
0 commit comments