monkey icon indicating copy to clipboard operation
monkey copied to clipboard

PowerShell exploiter's file copy needs a timeout

Open shreyamalviya opened this issue 2 years ago • 2 comments

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

shreyamalviya avatar Dec 01 '23 13:12 shreyamalviya

We have to be careful with file copy timeouts. Networks may be slow and we don't want to prematurely abort an upload.

mssalvatore avatar Dec 01 '23 13:12 mssalvatore

https://github.com/jborean93/pypsrp/issues/182

shreyamalviya avatar Dec 14 '23 07:12 shreyamalviya

Moved to guardicode/powershell-exploiter#1

cakekoa avatar Aug 01 '24 19:08 cakekoa