Skip to content

Commit

Permalink
v0.0.2.54
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Jan 19, 2024
1 parent 8c91af3 commit cc08e7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Mythic_CLI/src/cmd/internal/installservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 2 additions & 6 deletions Mythic_CLI/src/cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cc08e7e

Please sign in to comment.