mirror of
https://github.com/arthepsy/CVE-2021-4034.git
synced 2025-02-05 10:59:11 +00:00
22 lines
486 B
Makefile
22 lines
486 B
Makefile
|
define do_strip
|
||
|
strip -R ".jcr" \
|
||
|
-R ".comment" \
|
||
|
-R ".eh_frame" \
|
||
|
-R ".eh_frame_hdr" \
|
||
|
-R ".note.gnu.build-id" \
|
||
|
--strip-debug \
|
||
|
--strip-unneeded $(1)
|
||
|
endef
|
||
|
|
||
|
exploit: FORCE
|
||
|
gcc pwnkit.c -o pwnkit.so -shared -fPIC
|
||
|
@$(call do_strip,pwnkit.so)
|
||
|
xxd -i pwnkit.so >pwnkit.so.inc
|
||
|
gcc cve-2021-4034-poc.c -o exploit
|
||
|
@$(call do_strip,exploit)
|
||
|
|
||
|
clean:
|
||
|
rm -f pwnkit.so pwnkit.so.inc exploit
|
||
|
|
||
|
FORCE:
|