forked from Velocidex/velociraptor-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create FTKImager.yaml (Velocidex#18)
- Loading branch information
1 parent
d4bbf14
commit 49a94e7
Showing
1 changed file
with
47 additions
and
0 deletions.
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,47 @@ | ||
name: Windows.Applications.FTKImager | ||
description: | | ||
Create an E01 Image of the C drive using FTK Imager (Command Line Version) | ||
SourceDriveToImage usually will be 0 (as in \\.\PHYSICALDRIVE0) for the C: drive, on a Windows system. | ||
If you intend to image the secondary drive, use, for example, SourceDriveToImage = 1, for \\.\PHYSICALDRIVE1 | ||
author: Eduardo Mattos - @eduardfir | ||
|
||
reference: | ||
- https://accessdata.com/products-services/forensic-toolkit-ftk/ftkimager | ||
|
||
type: CLIENT | ||
|
||
tools: | ||
- name: FTKImager | ||
url: https://ad-zip.s3.amazonaws.com/FTKImager.3.1.1_win32.zip | ||
|
||
precondition: SELECT OS From info() where OS = 'windows' | ||
|
||
parameters: | ||
- name: SourceDriveToImage | ||
default: "0" | ||
|
||
- name: OutputPath | ||
default: "D:\\E01" | ||
|
||
sources: | ||
- query: | | ||
-- get context on target binary | ||
LET bin <= SELECT * FROM Artifact.Generic.Utils.FetchBinary( | ||
ToolName="FTKImager") | ||
LET tmpdir <= tempdir() | ||
LET zip_file <= SELECT * | ||
FROM unzip(filename=bin[0].FullPath, | ||
output_directory=tmpdir) | ||
WHERE OriginalPath =~ "ftkimager.exe" | ||
-- execute payload | ||
SELECT Stdout, Stderr | ||
FROM execve(argv=[ | ||
zip_file.NewPath[0], | ||
"\\\\.\\PHYSICALDRIVE" + SourceDriveToImage, | ||
OutputPath]) |