Tomcat background exploitation skills

Source: Internet
Author: User

Text/ninty

Everything is built on the ability to log on to the background ..

If the password cannot be found in the/manager/html background, try/admin background. If the/admin background exists and the weak password is entered. (The default/admin background does not exist from TOMCAT5 (it should be 5, but the specific version is forgotten .)
In the/admin background, you can view the account and password of the manager background. After obtaining the password, log on directly, or manually add the manager User Group and add an account of the manager group, you can log on to the/manager/html background.

The/admin background displays all the configuration information of TOMCAT, which may find the database connection string ..
Or you may see how many applications are deployed.

If the/manager/html background is logged in, the war file cannot be uploaded for some reason.
Use the above deploy directory or war file located on server function
Context path write/fuckfuck
War or directory url write c:

Then access
Http: // ip/fuckfuck
The directory in drive C may be listed, which is related to TOMCAT configuration. If the directory cannot be listed, just guess the file.
Here is just an example. It is better not to write it as a c: d: root directory .. Otherwise, TOMCAT copies all the files on these disks.

Or write c: WINDOWSepair in war or directory url.

Then directly access http: // ip/fuckfuck/sam
You can download the sam and system files back to crack the password ..

In addition, if there are other projects on TOMCAT, if you can guess the project directory, such
D: omcat 5.5 webappsaaa.

Use the above function war or directory url to write d: omcat 5.5webappsaaaweb-inf

Then you can directly access http: // ip/fuckfuck/web. xml to see the configuration file of the aaa project,
Read Other data based on the content in the configuration file. Generally, you can read the database connection string.

Use it by yourself ..

In another case, war files can be uploaded, but jsp files cannot be compiled. Generally, no compiler is configured or jar packages are lost ..
In this case, convert jsp into servlet, compress it into war, and then upload it directly, so that no compilation is required ..


 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.