Summary
Generate a new payload, drop it to a temp location, execute it with osascript as a background process, and then delete the file. Automatically reports back the temp file it created.- Needs Admin: False
- Version: 1
- Author: @its_a_feature_
Arguments
template
- Description: apfell agent to use as template to generate a new payload
- Required Value: True
- Default Value: None
Usage
Detailed Summary
This function takes theapfell payload indicated by template, generates a new instance of it, writes it to a random filename in /temp, starts its execution as a backgrounded processes, waits three seconds, and removes the file. The file can be removed from disk because once the osascript binary kicks off with the JavaScript code, it’s all being executed and compiled (JIT) in memory, so the file on disk is no longer needed.
The temporary file created is reported back as an artifact automatically.