|
1 | 1 | @echo off |
2 | | -::Created by QXJ6YW4gRWxjaGlkYW5h |
| 2 | +::Created by Base64-Encode -> QXJ6YW4gRWxjaGlkYW5h |
| 3 | +::Special thanks Mihir Kabani |
3 | 4 | ::Acquisition using FTK_Imager_CLI_V3.1.1 (Aug 20 2012) |
4 | | -::Version 3.4 |
| 5 | +::Version 4.1 |
5 | 6 | @echo off |
6 | 7 | net session >nul 2>&1 |
7 | 8 | echo Checking if script is run with Administrator privileges |
@@ -141,8 +142,12 @@ del /F /Q BitLock_Details.txt |
141 | 142 | :: Acquisition begins |
142 | 143 | echo ---Start of disk acquisition--- >> %1\%computername%\%computername%-log.txt |
143 | 144 | 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# |
144 | 150 | ftkimager.exe --list-drives |
145 | | - |
146 | 151 | echo Enter number for the drive to be imaged e.g. 0 for PhysicalDrive0 or 1 for PhysicalDrive1 |
147 | 152 | echo Enter 0 or 1 or 2 for the drive to be acquired |
148 | 153 | set /p DriveSel= |
@@ -187,6 +192,54 @@ echo ---Acquisition Process Completed, safely unmount the drive--- |
187 | 192 | echo ---Acquisition Process Completed, safely unmount the drive--- >> %1\%computername%\%computername%-log.txt |
188 | 193 | echo %date% %time% - Disk-Image\%computername%-drive%DriveSel% >> %1\%computername%\%computername%-log.txt |
189 | 194 | 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 | + |
190 | 243 | :1endA |
191 | 244 | echo Ensure CMD is runas Administrator |
192 | 245 | :ENDF |
0 commit comments