[BUG] download-file command via PBind-Sharp pivot is broken
WildcardTheory opened this issue · comments
Description
Using the "download-file" command inside of an active PBind-connect csharp pivot results in an assembly-load error.
Execution Environment:
Full Posh version | PoshC2 v8.1 (5179034 2022-08-01 10:09:15)
OS & version | Any windows OS
Using | Standard git branch
Implant Info
C# - PBind
- How was the implant created?
Default, Shellcode and custom, same results.
Defensive Technologies
- Is the target environment running any particular defensive products?
No, this is a lab without any AV.
To Reproduce
Steps to reproduce the behavior:
- Fire up a csharp posh payload on HOST 1 & wait for callback.
- Fire up a PBind payload on target HOST 2.
- On host 1 use pbind-connect HOST 2.
- Receive PBIND pivot and verify that it's connected properly.
- Finally, inside the PBIND pivot download any file using "download-file". The error will immediately be apparent.
Expected behavior
The "download-file" command should commence the file download in the same way as the daisy and dropper payloads.