Created
June 27, 2020 14:12
-
-
Save ecapuano/327d1a1488426d1d7aec7486ae600d8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Custom.CapsSysmon.Deploy | |
description: | | |
A quick and dirty way to download and install sysmon via Velociraptor | |
# Can be CLIENT, CLIENT_EVENT, SERVER, SERVER_EVENT | |
type: CLIENT | |
parameters: | |
- name: sysmonURL | |
default: http://url.to/sysmon8_64.exe | |
- name: binPath | |
default: C:\sysmon.exe | |
- name: configURL | |
default: http://url.to/sysmon.xml | |
- name: configPath | |
default: C:\sysmon.xml | |
sources: | |
- queries: | |
- LET download_binary <= SELECT hash(path=Content) as Hash, Filename AS Name, "Downloaded" AS DownloadStatus, copy(filename=Content, dest=binPath) AS FullPath FROM http_client(url=sysmonURL, tempfile_extension=".exe", remove_last=TRUE) | |
- LET download_config <= SELECT hash(path=Content) as Hash, Filename AS Name, "Downloaded" AS DownloadStatus, copy(filename=Content, dest=configPath) AS FullPath FROM http_client(url=configURL, tempfile_extension=".xml", remove_last=TRUE) | |
- LET out = SELECT Stdout FROM execve(argv=[binPath, "-accepteula", "-i", configPath]) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment