t94j0 / satellite

easy-to-use payload hosting
MIT License
264 stars 33 forks source link

Gzip body issue (amazon.profile) #4

Closed t94j0 closed 5 years ago

t94j0 commented 5 years ago

On the Amazon malleable C2 profile, a gzip encoding in the proxy doesn't work since the body isn't valid gzip.

The issue is that the Golang ReverseProxy handler attempts to unwrap the body shown here.

t94j0 commented 5 years ago

Fixed by translating gzip in net/http. Could be an issue when trying to interpret gzip encoding in an API or something. Not a great fix, but as good as I could do.