Skip to content

Commit

Permalink
updated mythic-cli for remote agent installs
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Jan 20, 2024
1 parent f64e45e commit e7b31cd
Show file tree
Hide file tree
Showing 4 changed files with 291 additions and 251 deletions.
10 changes: 10 additions & 0 deletions Mythic_CLI/src/cmd/config/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,21 @@ func SetConfigStrings(key string, value string) {
if err != nil {
log.Fatalf("[!] bad regex: %v", err)
}
found := false
for _, setting := range allSettings {
if searchRegex.MatchString(setting) {
mythicEnv.Set(setting, value)
found = true
}
}
if !found {
log.Printf("[-] Failed to find any matching keys")
return
}
writeMythicEnvironmentVariables()
}
func SetNewConfigStrings(key string, value string) {
mythicEnv.Set(key, value)
writeMythicEnvironmentVariables()
}
func GetBuildArguments() []string {
Expand Down
Loading

0 comments on commit e7b31cd

Please sign in to comment.