-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (35 loc) · 899 Bytes
/
Makefile
File metadata and controls
44 lines (35 loc) · 899 Bytes
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
.PHONY: run_exploit
run_exploit:
sudo echo "let's clean, build, and run the exploit!"
make clean
make exploit
sudo ./build/exploit 2>>std.err | tee -a std.out
all: build
$(MAKE) kvm_leak
$(MAKE) victim
$(MAKE) hypercall
$(MAKE) kvm_assist
$(MAKE) pteditor.ko
.PHONY: load_modules
load_modules: hypercall pteditor.ko
sudo insmod deps/PTEditor/module/pteditor.ko
sudo insmod build/hypercall/hypercall.ko
.PHONY: unload_modules
unload_modules:
sudo rmmod pteditor
sudo rmmod hypercall
.PHONY: load_kvm_assist
load_kvm_assist: kvm_assist
sudo insmod build/kvm_assist/kvm_assist.ko
.PHONY: unload_kvm_assist
unload_kvm_assist:
sudo rmmod kvm_assist
deps/PTEditor/ptedit_header.h:
git submodule update --init --recursive
build: CMakeLists.txt deps/PTEditor/ptedit_header.h
mkdir -p build && cd build && cmake ..
.PHONY: clean
clean:
$(RM) -r build
%: build
$(MAKE) -C build $@