Skip to content

Commit

Permalink
Create FTKImager.yaml (Velocidex#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardomcm authored Jun 25, 2021
1 parent d4bbf14 commit 49a94e7
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions content/exchange/artifacts/FTKImager.yaml
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])

0 comments on commit 49a94e7

Please sign in to comment.