mbechler / marshalsec

MIT License
3.39k stars 680 forks source link

Why can't execute commands? #3

Closed bsmali4 closed 6 years ago

bsmali4 commented 6 years ago

java -cp marshalsec-0.0.1-SNAPSHOT-all.jar marshalsec.JsonIO -t Groovy whoami

Running gadget Groovy: Had execution of whoami

mbechler commented 6 years ago

Test mode (-t) is running with a SecurityManager that just checks whether a command execution occurs and prevents it. Does that answer your question? Do you have the need for a mode that would execute it?