Skip to content

Instantly share code, notes, and snippets.

View paulwaldmann's full-sized avatar
🐒
Highly Trained Monkey

Paul Waldmann paulwaldmann

🐒
Highly Trained Monkey
View GitHub Profile
@paulwaldmann
paulwaldmann / CVE-2024-3094.sh
Last active April 9, 2024 05:33
The script will check if the system is vulnerable to the CVE-2024-3094 vulnerability.
#!/bin/bash
if ! command -v xz &> /dev/null; then
echo "xz package not installed. You're safe from this CVE."
exit 1
fi
xz_version=$(xz --version | awk 'NR==1{print $4}')
vulnerable_versions=("5.6.0" "5.6.1")
@paulwaldmann
paulwaldmann / website_benchmark.sh
Last active November 3, 2023 10:49
Simple website benchmark testing script
#!/bin/bash
url="https://example.com"
total_requests=100
output_file="results.txt"
perform_request() {
local status_code
status_code=$(curl -o /dev/null -s -w "%{http_code}\n" -I "$url")
echo "$status_code"