Display console link name as display name
This commit is contained in:
@ -70,10 +70,10 @@ func (cc *ClientConfig) PrintCommand() string {
|
||||
exesuffix = ".exe"
|
||||
}
|
||||
if cc.Command == nil || *cc.Command == "" {
|
||||
return fmt.Sprintf("clientApp.0.args=%s%s%s -shellservice.name \"%s\" -shellservice.displayname \"%s\" %s\n", CIP, *cc.Command, exesuffix, *cc.ClientDisplayName, *cc.ClientName, cc.PrintCommandArgs())
|
||||
return fmt.Sprintf("clientApp.0.args=%s%s%s -shellservice.name \"%s\" -shellservice.displayname \"%s\" %s\n", CIP, *cc.Command, exesuffix, *cc.ClientName, *cc.ClientDisplayName, *cc.ClientName, cc.PrintCommandArgs())
|
||||
}
|
||||
name := strings.Split(*cc.Command, " ")[0]
|
||||
return fmt.Sprintf("clientApp.0.args=%s%s%s -shellservice.name \"%s\" -shellservice.displayname \"%s\" %s\n", CIP, name, exesuffix, exesuffix, *cc.ClientDisplayName, cc.PrintCommandArgs())
|
||||
return fmt.Sprintf("clientApp.0.args=%s%s%s -shellservice.name \"%s\" -shellservice.displayname \"%s\" %s\n", CIP, name, exesuffix, *cc.ClientName, *cc.ClientDisplayName, cc.PrintCommandArgs())
|
||||
}
|
||||
|
||||
func (cc *ClientConfig) PrintStop() string {
|
||||
|
Reference in New Issue
Block a user