Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
'download-file' seems to lock files after completion #38
Using 4.7, if I run
Sometimes I can shake this off by running other PoshC2 commands, but not always.
And yeah, it was a small text file. File size doesn't seem to have any correlation to the issue. The only thing that seemed to remove the lock was to download another file, or sometimes to issue certain types of commands to the Implant, like changing directories.
I'll have a look at master and let you know soon.
I can confirm that this is still the case on master, on Windows 10 Pro hosts running 1803. I tested on a Server 2008 system, and the problem didn't occur.
Windows 10 Pro host:
Windows Server 2008 host: