-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathbootstrap
executable file
·73 lines (66 loc) · 2.04 KB
/
bootstrap
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
70
71
72
73
#!/bin/bash
#
# BitLeaker
# ------------
# Subverting Microsoft's BitLocker with One Vulnerability
#
# Copyright (C) 2019 Seunghun Han
# at the Affiliated Institute of ETRI
# Project link: https://github.com/kkamagui/bitleaker
#
echo "====================================="
echo "Install packages to build BitLeaker."
echo "====================================="
sudo apt install git libtool m4 automake pkg-config autoconf-archive libcurl4-openssl-dev libssl-dev bison flex python cmake libfuse-dev ruby-dev libmbedtls-dev build-essential
echo ""
echo "========================================="
echo "Clone TPM2-TSS repository and build it."
echo "========================================="
git clone https://github.com/kkamagui/TPM2.0-TSS.git
cd TPM2.0-TSS
./bootstrap
./configure --prefix=/usr
make -j
sudo make install
cd ..
echo ""
echo "========================================="
echo "Clone TPM2-tools repository and build it."
echo "========================================="
git clone https://github.com/kkamagui/tpm2-tools.git
cd tpm2-tools
./bootstrap
./configure
make -j
sudo make install
cd ..
echo ""
echo "===================================================="
echo "Clone customized Dislocker repository and build it."
echo "===================================================="
git clone https://github.com/kkamagui/dislocker.git
cd dislocker
cmake .
make -j
sudo make install
cd ..
echo ""
echo "==================================================="
echo "Clone BitLeaker Bootloader repository and build it."
echo "==================================================="
git clone https://github.com/kkamagui/bitleaker-grub.git
cd bitleaker-grub
sudo ln -s /usr/include/locale.h /usr/include/xlocale.h
./autogen.sh
./configure --target=x86_64 --with-platform=efi
./build.sh
sudo ./install.sh
cd ..
echo ""
echo "==============================="
echo "Build BitLeaker kernel module."
echo "==============================="
cd bitleaker-kernel-module
make -j
cd ..
echo "Finished."