Skip to content

Commit

Permalink
updating to add mythic header for file requests
Browse files Browse the repository at this point in the history
  • Loading branch information
its-a-feature committed Sep 5, 2024
1 parent 8d8980e commit 936c6f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions C2_Profiles/httpx/httpx/c2_code/webserver/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ func setRoutes(r *gin.Engine, configInstance instanceConfig) {
req.URL.Host = fmt.Sprintf("%s:%d", mythicConfig.MythicConfig.MythicServerHost, mythicConfig.MythicConfig.MythicServerPort)
req.Host = fmt.Sprintf("%s:%d", mythicConfig.MythicConfig.MythicServerHost, mythicConfig.MythicConfig.MythicServerPort)
req.URL.Path = fmt.Sprintf("/direct/download/%s", localVal)
req.Header.Add("mythic", "httpx")
}
proxyForFiles := httputil.ReverseProxy{Director: directorForFiles,
Transport: &http.Transport{
Expand Down

0 comments on commit 936c6f9

Please sign in to comment.