Exploit databaseDownload repository ZIP
GH-0df2999edde528e5ef2cd5ceb422166d
teyhouse/cve-2024-3094
Sources for CVE-2024-3094
52 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files5
teyhouse/cve-2024-3094Revision 01e46ad7f547
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
check_docker.sh
Shell · 574 bytes#!/bin/bash
containers=$(sudo docker ps | awk '{if(NR>1) print $NF}')
host=$(hostname)
for container in $containers; do
path="$(ldd $(which sshd) | grep liblzma | grep -o '/[^ ]*')"
if [ "$path" == "" ]; then
echo -e "\033[0mlib not found"
continue
fi
if hexdump -ve '1/1 "%.2x"' "$path" | grep -q f30f1efa554889f54c89ce5389fb81e7000000804883ec28488954241848894c2410; then
echo -e "\e[1m\e[91mpotential vulnerable Version of xz in Docker Container $container"
else
echo -e "\033[0mDocker Container $container probably not vulnerable"
fi
done