Skip to content

Commit

Permalink
Fix flag parsing for implant name
Browse files Browse the repository at this point in the history
  • Loading branch information
rkervella committed Jul 10, 2022
1 parent ad312b5 commit f5646d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/command/generate/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func nameOfOutputFormat(value clientpb.OutputFormat) string {
// Shared function that extracts the compile flags from the grumble context
func parseCompileFlags(ctx *grumble.Context, con *console.SliverConsoleClient) *clientpb.ImplantConfig {
var name string
if ctx.Flags["name"] != nil {
if ctx.Flags.String("name") != "" {
name = strings.ToLower(ctx.Flags.String("name"))

if err := util.AllowedName(name); err != nil {
Expand Down

0 comments on commit f5646d9

Please sign in to comment.