-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Velocidex:master' into ETWCaptureState
- Loading branch information
Showing
3 changed files
with
83 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Admin.Client.Upgrade.Debian | ||
description: | | ||
Remotely push new client updates to Debian hosts. | ||
NOTE: This artifact requires that you supply a client Debian package using the | ||
tools interface or using the "debian client" command. Simply click on the tool | ||
in the GUI and upload a package. | ||
tools: | ||
- name: VelociraptorDebian | ||
|
||
parameters: | ||
- name: SleepDuration | ||
default: "600" | ||
type: int | ||
description: | | ||
The package is typically large and we do not want to | ||
overwhelm the server so we stagger the download over this many | ||
seconds. | ||
sources: | ||
- precondition: | ||
SELECT OS From info() where OS = 'Linux' | ||
|
||
query: | | ||
// Force the file to be copied to the real temp directory since | ||
// we are just about to remove the Tools directory. | ||
LET bin <= SELECT copy(filename=OSPath, | ||
dest=expand(path="/tmp/") + basename(path=OSPath)) AS Dest | ||
FROM Artifact.Generic.Utils.FetchBinary( | ||
ToolName="VelociraptorLinux", IsExecutable=FALSE, | ||
SleepDuration=SleepDuration) | ||
// Call the binary and return all its output in a single row. | ||
// If we fail to download the binary we do not run the command. | ||
SELECT * FROM foreach(row=bin, | ||
query={ | ||
SELECT * FROM execve( | ||
argv=["dpkg", "-i", Dest], | ||
length=10000000) | ||
}) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Admin.Client.Upgrade.RedHat | ||
description: | | ||
Remotely push new client updates to Red Hat hosts. | ||
NOTE: This artifact requires that you supply a client Red Hat package using the | ||
tools interface or using the "rpm client" command. Simply click on the tool | ||
in the GUI and upload a package. | ||
tools: | ||
- name: VelociraptorRedHat | ||
|
||
parameters: | ||
- name: SleepDuration | ||
default: "600" | ||
type: int | ||
description: | | ||
The package is typically large and we do not want to | ||
overwhelm the server so we stagger the download over this many | ||
seconds. | ||
sources: | ||
- precondition: | ||
SELECT OS From info() where OS = 'Linux' | ||
|
||
query: | | ||
// Force the file to be copied to the real temp directory since | ||
// we are just about to remove the Tools directory. | ||
LET bin <= SELECT copy(filename=OSPath, | ||
dest=expand(path="/tmp/") + basename(path=OSPath)) AS Dest | ||
FROM Artifact.Generic.Utils.FetchBinary( | ||
ToolName="VelociraptorRedHat", IsExecutable=FALSE, | ||
SleepDuration=SleepDuration) | ||
// Call the binary and return all its output in a single row. | ||
// If we fail to download the binary we do not run the command. | ||
SELECT * FROM foreach(row=bin, | ||
query={ | ||
SELECT * FROM execve( | ||
argv=["rpm", "-U", Dest], | ||
length=10000000) | ||
}) |
2 changes: 1 addition & 1 deletion
2
...cts/definitions/Admin/Client/Upgrade.yaml → ...nitions/Admin/Client/Upgrade/Windows.yaml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Admin.Client.Upgrade | ||
name: Admin.Client.Upgrade.Windows | ||
description: | | ||
Remotely push new client updates. | ||
|