2018-10-07 12:08:00 +00:00
|
|
|
# out-of-tree called make with four arguments:
|
|
|
|
# - KERNEL: kernel headers path
|
2018-10-07 17:35:23 +00:00
|
|
|
# - TARGET: name of exploit binary that MUST be produced by makefile.
|
|
|
|
# - $(TARGET)_test: name of test binary that MUST be produced by makefile
|
2019-08-21 06:14:58 +00:00
|
|
|
# and it's will be runned on a LPE stage. TARGET_TEST MUST accept two argument:
|
2018-10-07 12:08:00 +00:00
|
|
|
# - Path to exploit binary
|
|
|
|
# - File that MUST be created with exploit. It uses for test that exploit works
|
|
|
|
# correctly.
|
|
|
|
#
|
|
|
|
# e.g.:
|
|
|
|
# make KERNEL=/lib/modules/4.8.0-58-generic/build \
|
2018-10-07 17:30:13 +00:00
|
|
|
# TARGET=nyan-exploit \
|
2018-10-07 12:08:00 +00:00
|
|
|
|
2018-10-07 21:15:34 +00:00
|
|
|
TARGET := CVE-2017-16995
|
2018-10-07 12:08:00 +00:00
|
|
|
|
|
|
|
all:
|
2018-10-07 21:15:34 +00:00
|
|
|
gcc CVE-2017-16995.c -o $(TARGET)
|
|
|
|
cp test.sh $(TARGET)_test
|
2018-10-07 12:08:00 +00:00
|
|
|
|
|
|
|
clean:
|
2018-10-07 17:30:13 +00:00
|
|
|
rm -f $(TARGET) $(TARGET)_test
|