Skip to content

Commit

Permalink
C2 http uri lowercased. Fixes #1126
Browse files Browse the repository at this point in the history
  • Loading branch information
svl committed Mar 26, 2023
1 parent 749f71d commit 99c76c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/command/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,10 +488,9 @@ func ParseHTTPc2(args string) ([]*clientpb.ImplantC2, error) {
return c2s, nil
}
for index, arg := range strings.Split(args, ",") {
arg = strings.ToLower(arg)
var uri *url.URL
var err error
if strings.HasPrefix(arg, "http://") || strings.HasPrefix(arg, "https://") {
if cmp := strings.ToLower(arg); strings.HasPrefix(cmp, "http://") || strings.HasPrefix(cmp, "https://") {
uri, err = url.Parse(arg)
if err != nil {
return nil, err
Expand Down

0 comments on commit 99c76c2

Please sign in to comment.