Skip to content

Commit

Permalink
fix: disable damned chunked encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
jm33-m0 committed Dec 25, 2024
1 parent 73bdd94 commit b1b0a79
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/cmd/listener/http_stager.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func ServeHTTPStager(stager_enc []byte, port string) {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
log.Printf("Received request from %s", r.RemoteAddr)
w.Header().Set("Content-Type", "application/octet-stream")
w.Header().Set("Content-Length", fmt.Sprintf("%d", len(stager_enc)))
w.Write(stager_enc)
log.Printf("Served encrypted stager to %s", r.RemoteAddr)
})
Expand Down

0 comments on commit b1b0a79

Please sign in to comment.