diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 585b5b5d0..859906519 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.2.18-rc6] - 2024-02-19 + +### Changed + +- Added another check for parsing paths for when a parent_path for the file browser is reported as "path\path" + ## [3.2.18-rc5] - 2024-02-16 ### Changed diff --git a/VERSION b/VERSION index 15098efe9..21011f888 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.2.18-rc5 \ No newline at end of file +3.2.18-rc6 \ No newline at end of file diff --git a/mythic-docker/src/utils/utils.go b/mythic-docker/src/utils/utils.go index afc365163..31ba354e3 100644 --- a/mythic-docker/src/utils/utils.go +++ b/mythic-docker/src/utils/utils.go @@ -85,12 +85,14 @@ func SplitFilePathGetHost(parentPath string, currentPath string, additionalPaths } else if strings.Contains(currentPath, "/") { returnedPathInfo.PathSeparator = "/" } else { - // unable to determine, so assuming parent path is windodws + // unable to determine, so assuming parent path is windows returnedPathInfo.PathSeparator = "\\" } } else { - err := errors.New(fmt.Sprintf("invalid absolute path format: %s", parentPath)) - return returnedPathInfo, err + // treat this as if this is a windows path with this being the name of an unknown share + returnedPathInfo.PathSeparator = "\\" + stringSplit := strings.Split(parentPath, "\\") + returnedPathInfo.PathPieces = append(stringSplit[:], returnedPathInfo.PathPieces...) } // remove potential blank spots from pathPieces if SliceContains(returnedPathInfo.PathPieces, "") {