From cc08e7e78eaf0bad0d89ceb02be1ebdcc323f844 Mon Sep 17 00:00:00 2001 From: its-a-feature Date: Fri, 19 Jan 2024 16:13:39 -0600 Subject: [PATCH] v0.0.2.54 --- Mythic_CLI/src/cmd/internal/installservice.go | 4 ++-- Mythic_CLI/src/cmd/update.go | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Mythic_CLI/src/cmd/internal/installservice.go b/Mythic_CLI/src/cmd/internal/installservice.go index 50d1490ba..0e8d699f0 100644 --- a/Mythic_CLI/src/cmd/internal/installservice.go +++ b/Mythic_CLI/src/cmd/internal/installservice.go @@ -484,10 +484,10 @@ func InstallMythicSync(url string, branch string) error { } if branch == "" { log.Printf("[*] Cloning %s\n", url) - err = runGitClone([]string{"-c", "http.sslVerify=false", "clone", "--depth 1", "--recurse-submodules", "--single-branch", url, filepath.Join(workingPath, "tmp")}) + err = runGitClone([]string{"-c", "http.sslVerify=false", "clone", "--depth", "1", "--recurse-submodules", "--single-branch", url, filepath.Join(workingPath, "tmp")}) } else { log.Printf("[*] Cloning branch \"%s\" from %s\n", branch, url) - err = runGitClone([]string{"-c", "http.sslVerify=false", "clone", "--depth 1", "--recurse-submodules", "--single-branch", "--branch", branch, url, filepath.Join(workingPath, "tmp")}) + err = runGitClone([]string{"-c", "http.sslVerify=false", "clone", "--depth", "1", "--recurse-submodules", "--single-branch", "--branch", branch, url, filepath.Join(workingPath, "tmp")}) } if err != nil { log.Printf("[-] Failed to clone down repository: %v\n", err) diff --git a/Mythic_CLI/src/cmd/update.go b/Mythic_CLI/src/cmd/update.go index 38a5e9b66..7ee1af3e9 100644 --- a/Mythic_CLI/src/cmd/update.go +++ b/Mythic_CLI/src/cmd/update.go @@ -108,14 +108,10 @@ func checkMythicVersion(client *http.Client, urlBase string) (needsUpdate bool, fmt.Printf("This will require a completely new clone of Mythic\n") } else if semver.MajorMinor(localVersion) != semver.MajorMinor(remoteVersion) { fmt.Printf("[!] Minor version update available. This means there has been some database updates, but not a major change to how Mythic operates.\n") - fmt.Printf("This will require deleting your current database (you will lose ALL data in your database). Please backup your database first.\n") - fmt.Printf("Use the following steps to update:\n") - fmt.Printf("1. ./mythic-cli database reset\n") - fmt.Printf("2. ./mythic-cli rabbitmq reset\n") - fmt.Printf("3. git pull\n") - fmt.Printf("4. ./mythic-cli start\n") + fmt.Printf("This will require doing a 'git pull' and making a new 'mythic-cli' via 'sudo make'. Then restart Mythic\n") } else { fmt.Printf("[+] A patch is available. This means no database schema has changed and only bug fixes applied. This is safe to update now.\n") + fmt.Printf("This will require doing a 'git pull' and making a new 'mythic-cli' via 'sudo make'. Then restart Mythic\n") } return true, nil } else {