MythicAgents / Apollo

A .NET Framework 4.0 Windows Agent
BSD 3-Clause "New" or "Revised" License
439 stars 89 forks source link

Fix to make agent work with TLS 1.2 #8

Closed thiagomayllart closed 3 years ago

thiagomayllart commented 3 years ago

The agent does not seem to work when using redirectors/HTTPS with TLS 1.2. The agent hangs in line 167:

Stream reqStream = request.GetRequestStream();

The piece of code fix the issue:

ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072 | SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls;

djhohnstein commented 3 years ago

Thanks for the PR. I'll get to this soon.