-
Notifications
You must be signed in to change notification settings - Fork 189
/
run_tests.sh
executable file
·69 lines (55 loc) · 3.65 KB
/
run_tests.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/usr/bin/env bash
NGPU=0;
SINGLE_BLOCK="-t 1 -b 1 -g $NGPU";
mkdir -p test_hash
printf "\n\n************ Extract BitLocker hash from encrypted memory units ************\n\n"
#Image encrypted with Windows 8.1 Enterprise
./build/bitcracker_hash -o test_hash -i ./Images/imgWin8
mv ./test_hash/hash_user_pass.txt test_hash/imgWin8_user_password.txt
mv ./test_hash/hash_recv_pass.txt test_hash/imgWin8_recovery_password.txt
printf "\n\n"
#Image encrypted with Windows 7 Pro
./build/bitcracker_hash -o test_hash -i ./Images/imgWin7
mv test_hash/hash_user_pass.txt test_hash/imgWin7_user_password.txt
mv test_hash/hash_recv_pass.txt test_hash/imgWin7_recovery_password.txt
printf "\n\n"
#Image encrypted with Windows 10 Enteprise using BitLocker Compatible Mode
./build/bitcracker_hash -o test_hash -i ./Images/imgWin10Compat.vhd
mv test_hash/hash_user_pass.txt test_hash/imgWin10Compat_user_password.txt
mv test_hash/hash_recv_pass.txt test_hash/imgWin10Compat_recovery_password.txt
printf "\n\n"
#Image encrypted with Windows 10 Enteprise using BitLocker Not Compatible Mode
./build/bitcracker_hash -o test_hash -i ./Images/imgWin10NotCompat.vhd
mv test_hash/hash_user_pass.txt test_hash/imgWin10NotCompat_user_password.txt
mv test_hash/hash_recv_pass.txt test_hash/imgWin10NotCompat_recovery_password.txt
printf "\n\n"
#Image encrypted with Windows 10 Enteprise using BitLocker Not Compatible Mode and a very long password
./build/bitcracker_hash -o test_hash -i ./Images/imgWin10NotCompatLongPsw.vhd
mv test_hash/hash_user_pass.txt test_hash/imgWin10NotCompatLong_user_password.txt
mv test_hash/hash_recv_pass.txt test_hash/imgWin10NotCompatLong_recovery_password.txt
printf "\n\n"
printf "\n\n************ Testing BitCracker CUDA version ************\n\n"
#Print help
./build/bitcracker_cuda -h
set -x
#Windows 8.1
./build/bitcracker_cuda -f ./test_hash/imgWin8_user_password.txt -d ./Dictionary/user_passwords.txt $SINGLE_BLOCK -u
#Same test with MAC verification
./build/bitcracker_cuda -f ./test_hash/imgWin8_user_password.txt -d ./Dictionary/user_passwords.txt $SINGLE_BLOCK -m -u
#Windows 7
./build/bitcracker_cuda -f ./test_hash/imgWin7_user_password.txt -d ./Dictionary/user_passwords.txt $SINGLE_BLOCK -u
#Windows 10 Compatible Mode
./build/bitcracker_cuda -f ./test_hash/imgWin10Compat_user_password.txt -d ./Dictionary/user_passwords.txt $SINGLE_BLOCK -u
./build/bitcracker_cuda -f ./test_hash/imgWin10Compat_recovery_password.txt -d ./Dictionary/recovery_passwords.txt $SINGLE_BLOCK -r
#Same test with MAC verification
./build/bitcracker_cuda -f ./test_hash/imgWin10Compat_recovery_password.txt -d ./Dictionary/recovery_passwords.txt $SINGLE_BLOCK -r -m
#Windows 10 Not Compatible Mode
./build/bitcracker_cuda -f ./test_hash/imgWin10NotCompat_user_password.txt -d ./Dictionary/user_passwords.txt $SINGLE_BLOCK -u
./build/bitcracker_cuda -f ./test_hash/imgWin10NotCompat_recovery_password.txt -d ./Dictionary/recovery_passwords.txt $SINGLE_BLOCK -r
#Same test with MAC verification
./build/bitcracker_cuda -f ./test_hash/imgWin10NotCompat_recovery_password.txt -d ./Dictionary/recovery_passwords.txt $SINGLE_BLOCK -r -m
#Windows 10 Not Compatible Mode long password
./build/bitcracker_cuda -f ./test_hash/imgWin10NotCompatLong_user_password.txt -d ./Dictionary/user_passwords.txt $SINGLE_BLOCK -u
./build/bitcracker_cuda -f ./test_hash/imgWin10NotCompatLong_user_password.txt -d ./Dictionary/user_passwords.txt $SINGLE_BLOCK -u -m
./build/bitcracker_cuda -f ./test_hash/imgWin10NotCompatLong_recovery_password.txt -d ./Dictionary/recovery_passwords.txt $SINGLE_BLOCK -r
./build/bitcracker_cuda -f ./test_hash/imgWin10NotCompatLong_recovery_password.txt -d ./Dictionary/recovery_passwords.txt $SINGLE_BLOCK -r -m