monkey
monkey copied to clipboard
PowerShell exploiter's file copy needs a timeout
Description
PowerShell exploiter's file copy functionality may hang indefinitely.
See agent_2023-11-30_23-47-49_10.2.2.14.log. "ExploiterThread-02" attempts PowerShell on 10.2.2.15 and hangs at the copy file stage (line 1189 of the file). There are no other logs from that thread.
This is racey, and hard to reproduce.
Tasks
- [ ] Add a timeout to the code in the PowerShell exploiter plugin that attempts to copy the file to the victim machine
We have to be careful with file copy timeouts. Networks may be slow and we don't want to prematurely abort an upload.
https://github.com/jborean93/pypsrp/issues/182
Moved to guardicode/powershell-exploiter#1