lukebaggett / dnscat2-powershell

A Powershell client for dnscat2, an encrypted DNS command and control tool.
https://github.com/iagox86/dnscat2
392 stars 120 forks source link

Respond to server kill command. #1

Closed curi0usJack closed 7 years ago

curi0usJack commented 8 years ago

Current code doesn't respond to "Session Killed: REASON" command from server, causing the server to get stuck in a loop with the following message being thrown back to the screen:

Session X killed (again): No reason given

This basically renders the server unusable. The fix simply kills powershell if it receives a session killed command.

lukebaggett commented 7 years ago

Thanks for the contribution! This should be fixed with the most recent update.