Skip to content

Commit 2d69e1d

Browse files
committed
Update D-Acquisition.bat
Additional modifications on code
1 parent b1936d4 commit 2d69e1d

File tree

1 file changed

+56
-3
lines changed

1 file changed

+56
-3
lines changed

D-Acquisition.bat

Lines changed: 56 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
@echo off
2-
::Created by QXJ6YW4gRWxjaGlkYW5h
2+
::Created by Base64-Encode -> QXJ6YW4gRWxjaGlkYW5h
3+
::Special thanks Mihir Kabani
34
::Acquisition using FTK_Imager_CLI_V3.1.1 (Aug 20 2012)
4-
::Version 3.4
5+
::Version 4.1
56
@echo off
67
net session >nul 2>&1
78
echo Checking if script is run with Administrator privileges
@@ -141,8 +142,12 @@ del /F /Q BitLock_Details.txt
141142
:: Acquisition begins
142143
echo ---Start of disk acquisition--- >> %1\%computername%\%computername%-log.txt
143144
echo %date% %time% - Disk-Image\%computername%-driveImage >> %1\%computername%\%computername%-log.txt
145+
echo Enter "a" to perform verification post imaging or "b" to only perform imaging without verification
146+
set /p Verify=
147+
if %Verify%==a Goto LabelA#
148+
if %Verify%==b Goto LabelB#
149+
:LabelA#
144150
ftkimager.exe --list-drives
145-
146151
echo Enter number for the drive to be imaged e.g. 0 for PhysicalDrive0 or 1 for PhysicalDrive1
147152
echo Enter 0 or 1 or 2 for the drive to be acquired
148153
set /p DriveSel=
@@ -187,6 +192,54 @@ echo ---Acquisition Process Completed, safely unmount the drive---
187192
echo ---Acquisition Process Completed, safely unmount the drive--- >> %1\%computername%\%computername%-log.txt
188193
echo %date% %time% - Disk-Image\%computername%-drive%DriveSel% >> %1\%computername%\%computername%-log.txt
189194
goto :ENDF
195+
196+
:LabelB#
197+
ftkimager.exe --list-drives
198+
echo Enter number for the drive to be imaged e.g. 0 for PhysicalDrive0 or 1 for PhysicalDrive1
199+
echo Enter 0 or 1 or 2 for the drive to be acquired
200+
set /p DriveSel=
201+
echo ---Imaging process without verification begins--- >> %1\%computername%\%computername%-log.txt
202+
echo %date% %time% - Disk-Image\%computername%-drive%DriveSel% >> %1\%computername%\%computername%-log.txt
203+
if %DriveSel%==0 Goto Label0
204+
if %DriveSel%==1 Goto Label1
205+
if %DriveSel%==2 Goto Label2
206+
if %DriveSel%==3 Goto Label3
207+
if %DriveSel%==4 Goto Label4
208+
if %DriveSel%==5 Goto Label5
209+
210+
:Label0
211+
ftkimager.exe \\.\PHYSICALDRIVE0 "%UserInputPath1%\%caseno%" --e01 --frag 2G --compress 5 --case-number "%caseno%" --evidence-number "%caseno%" --description "%caseno%" --examiner "%Inv%" --notes "%notes%"
212+
goto :END
213+
214+
:Label1
215+
ftkimager.exe \\.\PHYSICALDRIVE1 "%UserInputPath1%\%caseno%" --e01 --frag 2G --compress 5 --case-number "%caseno%" --evidence-number "%caseno%" --description "%caseno%" --examiner "%Inv%" --notes "%notes%"
216+
goto :END
217+
218+
:Label2
219+
ftkimager.exe \\.\PHYSICALDRIVE2 "%UserInputPath1%\%caseno%" --e01 --frag 2G --compress 5 --case-number "%caseno%" --evidence-number "%caseno%" --description "%caseno%" --examiner "%Inv%" --notes "%notes%"
220+
goto :END
221+
222+
:Label3
223+
ftkimager.exe \\.\PHYSICALDRIVE3 "%UserInputPath1%\%caseno%" --e01 --frag 2G --compress 5 --case-number "%caseno%" --evidence-number "%caseno%" --description "%caseno%" --examiner "%Inv%" --notes "%notes%"
224+
goto :END
225+
226+
:Label4
227+
ftkimager.exe \\.\PHYSICALDRIVE4 "%UserInputPath1%\%caseno%" --e01 --frag 2G --compress 5 --case-number "%caseno%" --evidence-number "%caseno%" --description "%caseno%" --examiner "%Inv%" --notes "%notes%"
228+
goto :END
229+
230+
:Label5
231+
ftkimager.exe \\.\PHYSICALDRIVE5 "%UserInputPath1%\%caseno%" --e01 --frag 2G --compress 5 --case-number "%caseno%" --evidence-number "%caseno%" --description "%caseno%" --examiner "%Inv%" --notes "%notes%"
232+
goto :END
233+
:END
234+
echo ---Imaging process completed without verification---
235+
echo ---Imaging process completed without verification--- >> %1\%computername%\%computername%-log.txt
236+
echo %date% %time% - Disk-Image\%computername%-drive%DriveSel% >> %1\%computername%\%computername%-log.txt
237+
::Script completed
238+
echo ---Acquisition Process Completed, safely unmount the drive---
239+
echo ---Acquisition Process Completed, safely unmount the drive--- >> %1\%computername%\%computername%-log.txt
240+
echo %date% %time% - Disk-Image\%computername%-drive%DriveSel% >> %1\%computername%\%computername%-log.txt
241+
goto :ENDF
242+
190243
:1endA
191244
echo Ensure CMD is runas Administrator
192245
:ENDF

0 commit comments

Comments
 (0)