Skip to content

Commit

Permalink
Merge pull request #703 from ScribblerCoder/docker-nginx-proxy
Browse files Browse the repository at this point in the history
add dockerized version of nginx proxy with ajp
  • Loading branch information
carlospolop authored Sep 11, 2023
2 parents be59e80 + 640dac4 commit 85f1578
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ Module options (exploit/multi/http/tomcat_mgr_deploy):

### Nginx Reverse Proxy & AJP

[Checkout the Dockerized version](#Dockerized-version)

When we come across an open AJP proxy port (8009 TCP), we can use Nginx with the `ajp_module` to access the "hidden" Tomcat Manager. This can be done by compiling the Nginx source code and adding the required module, as follows:

* Download the Nginx source code
Expand Down Expand Up @@ -182,6 +184,19 @@ curl http://127.0.0.1:80
<SNIP>
```

### Dockerized-version

```bash
git clone https://github.com/ScribblerCoder/nginx-ajp-docker
cd nginx-ajp-docker
```
Replace `TARGET-IP` in `nginx.conf` witg AJP IP then build and run
``` bash
docker build . -t nginx-ajp-proxy
docker run -it --rm -p 80:80 nginx-ajp-proxy
```


## References

* [https://academy.hackthebox.com/module/145/section/1295](https://academy.hackthebox.com/module/145/section/1295)
Expand Down

0 comments on commit 85f1578

Please sign in to comment.